Commit Graph

29021 Commits

Author SHA1 Message Date
Dan Halbert
4fb1a6a950
Merge pull request #7001 from dhalbert/dotenv-spaces-fix
Allow spaces before = in dotenv
2022-10-05 17:40:23 -04:00
Dan Halbert
91079279da Allow spaces before = in dotenv 2022-10-05 15:50:53 -04:00
MicroDev
18cee2ee8b
Merge pull request #6997 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-10-05 20:00:20 +05:30
Bill Sideris
e064500411
Translated using Weblate (Greek)
Currently translated at 18.5% (185 of 1000 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/el/
2022-10-05 14:23:42 +02:00
Dan Halbert
b3ca6fd011
Merge pull request #6995 from dhalbert/missing-support-matrix-modules
add missing native modules to support matrix
2022-10-04 20:49:29 -04:00
Dan Halbert
ed87579a65 add missing native modules to support matrix 2022-10-04 19:22:18 -04:00
Dan Halbert
9292af57c0
Merge pull request #6991 from jepler/dotenv-test
Refactor dotenv module so that it can be tested on host (test fails)
2022-10-04 13:21:33 -04:00
Jeff Epler
718b8e706e
disable test e15 for now 2022-10-04 10:54:22 -05:00
Jeff Epler
52bca95208
Refactor dotenv module so that it can be tested on host
.. it needs to operate on a FILE* rather than FIL depending on
the build.

Note that this is comparing output to expected, not to cpython dotenv
package. Because run-tests.py starts the CPython interpreter with the
'-S' (skip site initialization) flag, pip-installed packages are
not available for import inside a test file. Instead, the exp
file is generated manually:
```
circuitpython/tests$ python3 circuitpython/dotenv_test.py > circuitpython/dotenv_test.py.exp
```

Unfortunately, the test fails on test e15:
```diff
FAILURE /home/jepler/src/circuitpython/tests/results/circuitpython_dotenv_test.py
--- /home/jepler/src/circuitpython/tests/results/circuitpython_dotenv_test.py.exp	2022-10-04 09:48:16.307703128 -0500
+++ /home/jepler/src/circuitpython/tests/results/circuitpython_dotenv_test.py.out	2022-10-04 09:48:16.307703128 -0500
@@ -14,7 +14,7 @@
 line
 e13 e13value
 e14 None
-e15 e15value
+e15 None
 e16 #
 e17 def
 e18 #has a hash
```
2022-10-04 09:51:27 -05:00
Dan Halbert
b62f8b35e6
Merge pull request #6986 from dhalbert/ai-thinker-creation-ids-plus-misc-fixes
fix ai-thinker creation ids; fix some typos elsewhere
2022-10-04 09:40:00 -04:00
Dan Halbert
1c2d2c9be4
Merge pull request #6980 from MicroDev1/supervisor
Implement certain supervisor functions as properties
2022-10-04 08:54:11 -04:00
Dan Halbert
1fd09cb6da
Merge pull request #6987 from dhalbert/dotenv-fixes
fix some dotenv parsing
2022-10-04 00:07:19 -04:00
MicroDev
4fd15acf77
implement suggested change
pass brightness value directly

Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-10-04 08:28:48 +05:30
Dan Halbert
6dc03ae3ce fix some dotenv parsing 2022-10-03 21:56:11 -04:00
Dan Halbert
7f72280693
Merge pull request #6982 from electronerdian/webworkflow_times
Fix mask for minutes field when computing modified_ns
2022-10-03 21:34:01 -04:00
Jeff Epler
abd02287e6
Merge pull request #6985 from PaulskPt/i2ctarget_doc_text_mod
I2ctarget doc function request: a) mods to doc text & function signature. b) small mod of the code
2022-10-03 15:08:21 -05:00
Jeff Epler
b1106b8f2f
restore pyboard symlink
This item is a UNIX symbolic link, and (except in the unlikely case
where the symlink is to a pathname that ends with a newline character!)
doesn't contain a newline.

It appears some well-intentioned tool failed to correctly handle this
file, and added a trailing newline as though it was a text file.
2022-10-03 15:05:30 -05:00
Dan Halbert
90f6096955 fix ai-thinker creation ids; fix some typos elsewhere 2022-10-03 15:29:03 -04:00
Paulus H.J. Schulinck
0f86f01515 Updates by local pre-commit
Pre-commit adjusted some line/file endings
2022-10-03 19:28:43 +01:00
Dan Halbert
e3054b3e55
Merge pull request #6984 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-10-03 11:00:21 -04:00
Bill Sideris
a599e66c33
Translated using Weblate (Greek)
Currently translated at 8.2% (82 of 1000 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/el/
2022-10-03 15:20:50 +02:00
Paulus H.J. Schulinck
a5d7dbd116 Update .gitignore
I made an error. I deleted too much at the end of this file. Correction made. It is now (the Uncrustify formatting) as in branch 'main'
2022-10-03 13:29:29 +01:00
Paulus H.J. Schulinck
1e98f9125f Update .gitisnore
Removed the -# Uncrustify formatting for file
ports/broadcom/firmware

I don't know how it came into there. I didn't put it.
It is not my intention to change anything else than this branch to make 2 changes in  shared_bindings/I2CTarget module
2022-10-03 13:25:12 +01:00
Paulus H.J. Schulinck
89e0601a39 Update I2CTarget.c
Correction of the timeout value range needed to set the timeout to 'forever'.
The line 162 checks timeout for a value of 0 while the function definition defaults timeout to -1. In the current version of the code timeout is only checked for a value of 0 or in the 'else if' part for a value of > 0. So, values of <0 will not be taken in to account.  That is the reason of my modification.
2022-10-03 13:09:40 +01:00
Jonathan Myers
db28605add Fix mask for minutes field when computing modified_ns 2022-10-02 18:29:07 -07:00
Paulus H.J. Schulinck
041766351c Update I2CTarget.c
Correction in function request() doc function signature.
(after speaking with @jepler on Discord).

(@jepler: 'Circuitpython always has floats enabled')
2022-10-01 22:23:17 +01:00
Paulus H.J. Schulinck
d66eeaab26 Update I2CTarget.c
Modification of the doc text of function request().

1) The timout parameter is a keyword-only argument; so Added '*,' in the function signature;
2) for parameter timeout an integer is expected, not a float.
2022-10-01 21:56:07 +01:00
Paulus H.J. Schulinck
6f5ffd80e1 I did not make changes in ports-broadcom-firmware
I made a fresh fork of circuitpython. Using Github Desktop app, created a local clone of this fork. Then Desktop app confronted me we a change in ports\broadcom\firmware -Subproject commit .nr.... and +Subproject commit same nr-dirty.
2022-10-01 21:34:12 +01:00
microDev
17ed2a6898
implement certain supervisor functions as properties
- disable_ble_workflow
- set_next_stack_limit
- set_rgb_status_brightness
2022-10-01 23:44:22 +05:30
Dan Halbert
ad79f595a5
Merge pull request #6974 from MicroDev1/patch
Couple Minor Fixes
2022-10-01 13:12:01 -04:00
Dan Halbert
c518d6809e
Merge pull request #6976 from jepler/picow-pm
Set "disabled" PM at reset, provide PM constants and better documentation
2022-10-01 12:03:46 -04:00
Dan Halbert
7bb90dbf45 remove redundant port/*/.gitignore; cleanup others 2022-10-01 11:52:36 -04:00
Jeff Epler
40c2de833d
doc improvements 2022-10-01 10:09:33 -05:00
Jeff Epler
d3e85d165e
Set cyw43 power management as needed, default to disabled
.. the value actually needs to be enforced each time the STA or AP
is enabled, because internally there's a call to cyw43_wifi_pm with the
library's defaut power management value, not ours.

Add a getter, though it only returns our idea of what the power
management register is set to, it doesn't read out from the actual
hardware, sadly.
2022-10-01 08:20:34 -05:00
Jeff Epler
943b992bfc
Improve cyw43.set_power_management documentation
.. and provide 4 preset values
2022-10-01 07:52:08 -05:00
microDev
7eaeca4eb3
update espressif port's .gitignore 2022-10-01 09:14:48 +05:30
Dan Halbert
f9e655da47
Merge pull request #6962 from dhalbert/espressif-deep-sleep-hold-pins
Espressif: do not hold pins during deep sleep if not necessary
2022-09-30 22:20:44 -04:00
Dan Halbert
1086052d82
Merge pull request #6971 from dhalbert/8.0.0-beta.1-frozen-libraries
update frozen libraries for 8.0.0-beta.1
2022-09-30 22:19:10 -04:00
Dan Halbert
bced76887e
Merge pull request #6973 from jepler/rp2040-fix-warnings
Rp2040 fix warnings
2022-09-30 16:21:31 -04:00
Dan Halbert
9f8a68fa84
Merge pull request #6972 from jepler/blacken-bindings2
Tweak black_bindings
2022-09-30 16:19:22 -04:00
microDev
f64be33d4b
add esp32 in readme port status 2022-09-30 23:24:59 +05:30
Jeff Epler
c02602ace1
Enable strict-overflow diagnostic 2022-09-30 11:19:23 -05:00
Jeff Epler
afc1c0e3bb
Fix unused variable diagnostics, make it a fatal error 2022-09-30 11:19:22 -05:00
Jeff Epler
37620d4eb0
Fix several classes of compiler diagnostic & make fatal
* -Wno-nested-externs
 * -Wno-strict-prototypes
 * -Wno-double-promotion
 * -Wno-sign-compare
2022-09-30 11:19:22 -05:00
Jeff Epler
c6eef3931f
Enable warning for unused static functions 2022-09-30 11:19:22 -05:00
Jeff Epler
2c9c6fc80e
Remove unused static functions 2022-09-30 11:19:21 -05:00
Jeff Epler
907c5d387f
Tweak black_bindings
Originally, black_bindings found each contiguous "//|" block and sent
it to black independently. This was slower than it needed to be.

Instead, swap the comment prefix: when running black, take off
"//|" prefixes and put "##|" prefixes on all un-prefixed lines.
Then, after black is run, do the opposite operation

This more than doubles the overall speed of "pre-commit run --all",
from 3m20s to 55s CPU time on my local machine (32.5s to under 10s
"elapsed" time)

It also causes a small amount of churn in the bindings, because
black now sees enough context to know whether one 'def' follows another
or ends the 'def's in a 'class'. In the latter case, it adds an extra
newline, which becomes a "//|" line.

I'm less sure why a trailing comma was omitted before down in
rp2pio/StateMachine.c but let's roll with it.
2022-09-30 11:18:13 -05:00
Jeff Epler
fcf7cfe838
Merge pull request #6960 from jepler/picow-server
Pico W: implement more things
2022-09-30 11:15:37 -05:00
Dan Halbert
63c9d9234f update frozen libraries for 8.0.0-beta.1 2022-09-30 11:15:32 -04:00
Jeff Epler
0912889106
raspberrypi: statically allocate storage for hostname 2022-09-30 10:05:11 -05:00