CDario
be07722bbc
Added board M5Stack Atom Lite
2022-10-26 19:57:23 +00:00
Dan Halbert
ca25016b52
Merge pull request #7119 from jepler/picow-reuseaddr
...
Enable, use SOF_REUSEADDR
2022-10-26 15:25:50 -04:00
Dan Halbert
5ebdf281cb
Merge pull request #7125 from dhalbert/esp-pin-alarm-fix
...
Fix setup of Espressif PinAlarms
2022-10-26 15:24:58 -04:00
Jeff Epler
7545e02a8e
add feather rp2040 scorpio
2022-10-26 10:05:37 -05:00
Jeff Epler
366cf4a048
Merge pull request #7113 from CDarius/m5stack_core_fire
...
Added M5Stack Core Fire board
2022-10-26 09:10:50 -05:00
Jeff Epler
0bc986ea7a
Merge pull request #7124 from piit79/frood
...
Adds support for the 42. Keebs Frood RP2040 board
2022-10-26 09:09:42 -05:00
Jeff Epler
76ed0445bb
Merge pull request #7120 from CDarius/m5stack_core_basic
...
Added M5Stack Core Basic board
2022-10-26 09:09:11 -05:00
Dan Halbert
56d8b9451f
don't wait for pulls in PinAlarm
2022-10-25 20:42:08 -04:00
Dan Halbert
e49cd00d60
fix debug UART pins on Metro ESP32-S2
2022-10-25 20:41:08 -04:00
Georg Bøe
032bf63f2d
Raise error with positive code in recv_into for espressif
2022-10-25 22:53:01 +02:00
Jeff Epler
0cf096dda1
pico w: implement sslsocket bind, listen, accept
2022-10-25 14:46:41 -05:00
CDario
f6e2369bbd
Removed not available UART in board
2022-10-25 16:53:42 +00:00
CDario
f9983ff556
Added M5Stack Core Basic board
2022-10-25 16:42:14 +00:00
Jeff Epler
f997d0053d
Enable, use SOF_REUSEADDR
...
This is the lwip no-os version of SO_REUSEADDR, which is set on all
listening sockets in the espressif port; do so here as well,
it makes running servers easier. The "address in use" error does
not occur.
2022-10-25 10:09:16 -05:00
Petr Sedlacek
bd7f0e23d7
Adds support for the 42. Keebs Frood RP2040 board
...
https://github.com/piit79/Frood
2022-10-25 16:40:32 +02:00
CDario
c8191e8830
Better pins definitions
2022-10-25 11:41:39 +00:00
Kattni Rembor
5ea8b75e17
Add STEMMA_I2C() object to Picos for Cowbells.
2022-10-24 16:27:32 -04:00
CDario
5fa67548ea
Added missing sdkconfig file
2022-10-24 20:03:06 +00:00
CDario
39171d7626
Removed unnecessary compiler flags
2022-10-24 19:21:26 +00:00
CDario
beab76c325
Added M5Stack Core Fire board
2022-10-24 18:38:30 +00:00
MicroDev
773bb99c96
Merge pull request #7099 from Neradoc/add-m5stampc3-board
...
Add M5Stack Stamp C3 Board
2022-10-23 00:05:44 +05:30
Neradoc
3c5bf4e852
Update ports/espressif/boards/m5stack_stamp_c3/mpconfigboard.mk
...
Co-authored-by: MicroDev <70126934+MicroDev1@users.noreply.github.com>
2022-10-22 16:23:27 +02:00
microDev
8f0a674a1b
coproc module enhancements
...
- add light and pretend-to-deep sleep support
- check coproc running status
2022-10-22 19:08:49 +05:30
microDev
83b54d003d
implement more checks in coproc module
...
- check memory address range
- check firmware size at an earlier stage
2022-10-22 19:05:48 +05:30
Bill Sideris
7a50beb67e
PicoW more ap work
2022-10-22 11:58:44 +03:00
askpatrickw
d147712522
Add M5 Stamp C3 board
2022-10-22 00:45:54 +02:00
Dan Halbert
da7edf80e0
Merge pull request #7091 from MicroDev1/corpoc
...
Add `CoprocAlarm`
2022-10-21 13:36:01 -04:00
microDev
5b2728bd65
reorganize espressif mpconfigport.mk
2022-10-21 17:35:59 +05:30
microDev
2285dd1838
update espressif risc-v build configuration
...
- use optimization level O2
- explicitly state risc-v arch
2022-10-21 17:11:56 +05:30
Bill Sideris
8cc536bb7f
PicoW start_ap()
2022-10-21 13:20:16 +03:00
microDev
b33a2b45dc
add coproc alarm
2022-10-20 18:38:20 +05:30
MicroDev
b5b649801b
Merge pull request #6902 from MicroDev1/coproc
...
Add `coproc` module
2022-10-20 12:51:59 +05:30
microDev
5232e3f6c3
add coproc module
2022-10-20 09:09:44 +05:30
Dan Halbert
7015b7396e
Merge pull request #7089 from jepler/picow-gpio-number
...
pico w: Disentangle "TOTAL_GPIO_COUNT", it's complicated
2022-10-19 22:42:16 -04:00
Jeff Epler
576a1ac700
pico w: Disentangle "TOTAL_GPIO_COUNT", it's complicated
...
You might wonder how this fixes a problem with PulseIn, when the
changes aren't to any of those files! PulseIn is implemented in terms of
StateMachine, which had some assumptions about the relation between
the index of a pin object in mcu_pin_global_dict_table and its "pin
number". This was true, until some pins were removed from the
microcontroller module on Pico W.
Closes : #7078
2022-10-19 21:09:50 -05:00
Jeff Epler
8bef4282c0
pico w: implement static configuration methods in wifi.Radio
2022-10-19 20:54:53 -05:00
Dan Halbert
31d7c91c85
Merge pull request #7059 from jepler/asyncio-tests-dogfood
...
asyncio: we should dogfood our own asyncio implementation during automated tests
2022-10-19 15:11:04 -04:00
Dan Halbert
08e1cdb282
Merge pull request #7079 from jepler/picow-2xmss
...
Pico W grab bag
2022-10-19 15:03:00 -04:00
Dan Halbert
607e917363
Merge pull request #7073 from MicroDev1/patch
...
Fix 2/4MB Partition Tables & Makefile
2022-10-17 22:29:16 -04:00
Jeff Epler
6e350a65cf
Merge pull request #7076 from bill88t/early-wifi
...
Implement async wifi connection on picow
2022-10-17 19:54:58 -05:00
Jeff Epler
3b7feccd9b
picow: Implement stop_station
...
Weirdly we have to stop the AP too (which we never started),
or cyw43_tcpip_link_status still reports that STA is connected.
As long as AP mode isn't implemented, this doesn't matter and
we can just do it.
2022-10-17 19:42:10 -05:00
Jeff Epler
57756863ef
picow: depending on memory pressure, may only be able to write 1 MSS
...
Foamyguy discovered that trying to send >2920 bytes at once consistently
failed. I further discovered that sometimes trying to send >1460 bytes
would fail too. By "fail", I mean that it would take a very long time
(around 200 * 50ms) before erroneously reporting that all bytes were
written.
In my testing, this change causes larger writes to successfully
send either 2920 or 1460 bytes (possibly after doing some 50ms waits
for a previous packet to clear).
The documentation of socket.send always stated that it COULD send fewer
bytes than requested, but adafruit_httpserver assumed that the number
of requested bytes were always sent, so after this change alone,
adafruit_httpserver will still not work properly.
Closes : #7077 (albeit fixes are needed in adafruit_httpserver too)
2022-10-17 19:42:07 -05:00
Jeff Epler
861b22730e
picow: if initial write fails, write at most 1 TCP MSS of data
2022-10-17 19:28:02 -05:00
Jeff Epler
1975742d9f
picow: fix formatting numbers in lwip debug output
2022-10-17 19:28:02 -05:00
Jeff Epler
6128f4e5af
picow: add resolution of ".local" names
2022-10-17 19:28:01 -05:00
microDev
fb91c2f436
cleanup sdkconfig-esp32.defaults
...
- remove log level: set by -opt or -debug sdkconfig
- remove lwip hostname: set by board specific sdkconfig
2022-10-17 22:05:20 +05:30
Bill Sideris
47c373e67e
Use cyw43_tcpip_link_status
instead
2022-10-17 18:33:32 +03:00
Bill Sideris
bce024f59e
Implement async wifi connection on picow
2022-10-17 18:17:14 +03:00
Jeff Epler
47541afc7c
picow: ask at a lower level if the interface is up
...
Closes : #7072
```
Adafruit CircuitPython 8.0.0-beta.2-9-g5192082e64-dirty on 2022-10-17; Raspberry Pi Pico W with rp2040
>>> import wifi
>>> print(wifi.radio.ipv4_address)
None
>>> import os
>>> wifi.radio.connect(os.getenv('WIFI_SSID'), os.getenv('WIFI_PASSWORD'))
>>> print(wifi.radio.ipv4_address)
10.0.2.94
```
2022-10-17 10:08:50 -05:00
microDev
434c6d5604
fix uf2 bootloader condition in makefile
2022-10-17 19:45:48 +05:30
microDev
5114ae7a31
fix 2MB-no-uf2
partition table
2022-10-17 19:44:08 +05:30
microDev
f86377e0f1
fix 4MB-no-uf2
partition table
2022-10-17 19:42:41 +05:30
Jeff Epler
d4b1d4d430
Fix GPIO state when initializing CYW43 pin
...
Closes : #7063
2022-10-15 13:10:22 -05:00
microDev
e7b25dbf73
improve dualbank
errors
2022-10-15 13:20:10 +05:30
Jeff Epler
6a8bc738ec
Make it easy to test just a subset of tests
...
with e.g., 'make TEST_EXTRA="extmod/uasyncio*.py" test'
2022-10-14 17:07:27 -05:00
Jeff Epler
963a51487a
unix Makefile: easy wait to print test failures as diffs
2022-10-14 14:44:52 -05:00
Dan Halbert
0ce84b27e8
Merge pull request #7053 from CytronTechnologies/add-pin-definitions-maker-feather-aiot-s3
...
Added Pin Definitions for Cytron Maker Feather AIoT S3
2022-10-14 11:31:53 -04:00
Dan Halbert
062d63ee3a
Merge pull request #7050 from jepler/picow-wirelsess-off-in-deep-sleep
...
picow: Turn off wifi co-processor regulator when entering deep sleep
2022-10-14 08:17:16 -04:00
Dan Halbert
8caafd9079
Merge pull request #7051 from jepler/picow-hashlib
...
implement hashlib for picow
2022-10-14 08:14:41 -04:00
Kong Wai Weng
fc00a6675e
Added some pin definitions to match with the Arduino core.
2022-10-14 17:25:24 +08:00
microDev
66b539d768
fix espressif log level
2022-10-14 11:33:10 +05:30
Jeff Epler
3b3fe44174
implement hashlib for picow
2022-10-13 20:42:50 -05:00
Jeff Epler
0c5fd55c16
picow: Turn off wifi co-processor regulator when entering deep sleep
...
This reduces power consumption during true deep sleep.
In my measurements with ppk2 and a program that _irrevocably_ entered
deep sleep (no time alarm or pin alarm), power usage as measured on a
ppk2 decreased from ~10mA to ~1mA.
2022-10-13 20:10:10 -05:00
Dan Halbert
bb3e04a078
Merge pull request #7048 from georgboe/fix-recvinto-errno
...
Return correct errno in raspberrypi's Socket.c
2022-10-13 18:19:02 -04:00
Georg Bøe
e768b9ebb3
Return correct errno
2022-10-13 21:00:51 +02:00
Dan Halbert
de7a9c38fc
Merge remote-tracking branch 'adafruit/main' into add-os-utime-function
2022-10-13 14:15:13 -04:00
Dan Halbert
1569c7ed33
Merge pull request #7045 from jepler/smaller-microcontroller-temperature-samd
...
samd: Size-optimize the temperature code with an 0.5 to 2.0 degree relative additional error
2022-10-13 14:02:51 -04:00
Dan Halbert
7e4b2a09eb
Merge pull request #7000 from MicroDev1/storage-extend
...
Add Storage Extension Support
2022-10-13 10:05:55 -04:00
microDev
728fea4ca4
add storage extension python api
2022-10-13 09:53:33 +05:30
Jeff Epler
f7d39ceae4
comment on the revised algorithm
2022-10-12 16:25:09 -05:00
Jeff Epler
a943167d69
samd: Reduce a further 48 bytes for non-full builds
...
Another reduction of -48 bytes can be had if the fine calculation
step is skipped. The worst difference compared to the old reference
code with my calibration values in the 0° to 60° was 2°C,
and the difference at 25°C is 1°C.
The final size decrease for non-full builds like Trinket M0 is 268
bytes.
2022-10-12 15:53:44 -05:00
Jeff Epler
b251e78ac5
samd: size-optimize microcontroller temp calc
...
Perform most arithmetic with scaled integer values.
For my calibration values
```
const uint32_t NVMCTRL_TEMP_LOG[]={0xfc05511e, 0xcc7ac0f7};
```
the maximum difference between the old and new calculation is 0.50°C.
The difference is smallest (0.13°) at 25.87°C in the old scale.
This reduces mcu_processor_get_temperature from 568 bytes to 348 bytes
(-220 bytes)
2022-10-12 15:44:14 -05:00
Jeff Epler
874ddd67bf
Pico W: ssl: factor out do_handshake
2022-10-12 11:38:30 -05:00
Jeff Epler
1641a7c002
Pico W: ssl: Correctly handle errors in send/recv
...
The prefixed versions raise Python exceptions, the un-prefixed return
negative error values. We don't want to raise an exception from here,
it leaves the SSL stack in an undefined state.
2022-10-12 11:38:30 -05:00
Jeff Epler
7c849fdadb
Pico W: ssl: Raise MemoryError for allocation errors
2022-10-12 11:38:29 -05:00
Jeff Epler
b1f7940297
Pico W: Correctly treat empty cadata= as disabling host checking
2022-10-12 11:38:29 -05:00
Jeff Epler
ca9523b814
Pico w: socket: Correctly return negative error code from recv_into
2022-10-12 11:38:29 -05:00
Jeff Epler
62cbd3bcd8
Pico w: socket: correctly track sockets generated by accept()
2022-10-12 11:38:26 -05:00
MicroDev
ab22d5a8cd
Merge pull request #7024 from flom84/stm-include-headers-fixes
...
Remove redundant header files in STM port
2022-10-12 10:22:29 +05:30
Dan Halbert
822e806f03
Merge pull request #7031 from BPI-STEAM/CircuitPython-main-bpi-picow-dev
...
Add BananaPi BPI-PicoW-S3 .
2022-10-11 22:53:37 -04:00
Wind-stormger
376df8ec7e
Add BananaPi BPI-PicoW-S3 .
...
Adds support for the BananaPi BPI-PicoW-S3 Boards.
Based on esp32s3 chip.
With one WS2812 LED, one monochrome LED, one ceramic antenna.
Support double-reset to tinyUF2.
2022-10-12 09:11:25 +08:00
Dan Halbert
e19abef57e
forgot to add these!
2022-10-11 13:12:43 -04:00
Dan Halbert
851f8a188d
Merge remote-tracking branch 'adafruit/main' into HEAD
2022-10-11 12:21:59 -04:00
Dan Halbert
4cd370ecf8
Merge remote-tracking branch 'adafruit/main' into add-os-utime-function
2022-10-10 17:51:59 -04:00
Jeff Epler
0c8b261ec9
picow: Add support of self-signed certificates.
...
## Testing self-signed certificates and `load_verify_locations`
Obtain the badssl "self-signed" certificate in the correct form:
```sh
openssl s_client -servername self-signed.badssl.com -connect untrusted-root.badssl.com:443 < /dev/null | openssl x509 > self-signed.pem
```
Copy it and the script to CIRCUITPY:
```python
import os
import wifi
import socketpool
import ssl
import adafruit_requests
TEXT_URL = "https://self-signed.badssl.com/ "
if not wifi.radio.ipv4_address:
wifi.radio.connect(os.getenv('WIFI_SSID'), os.getenv('WIFI_PASSWORD'))
pool = socketpool.SocketPool(wifi.radio)
context = ssl.create_default_context()
requests = adafruit_requests.Session(pool, context)
print(f"Fetching from {TEXT_URL} without certificate (should fail)")
try:
response = requests.get(TEXT_URL)
except Exception as e:
print(f"Failed: {e}")
else:
print(f"{response.status_code=}, should have failed with exception")
print("Loading server certificate")
with open("/self-signed.pem", "rb") as certfile:
context.load_verify_locations(cadata=certfile.read())
requests = adafruit_requests.Session(pool, context)
print(f"Fetching from {TEXT_URL} with certificate (should succeed)")
try:
response = requests.get(TEXT_URL)
except Exception as e:
print(f"Unexpected exception: {e}")
else:
print(f"{response.status_code=}, should be 200 OK")
```
2022-10-10 15:53:56 -05:00
Jeff Epler
c98174eea5
Add support for SSL client certificate (load_cert_chain)
...
Tested with badssl.com:
1. Get client certificates from https://badssl.com/download/
2. Convert public portion with `openssl x509 -in badssl.com-client.pem -out CIRCUITPY/cert.pem`
3. Convert private portion with `openssl rsa -in badssl.com-client.pem -out CIRCUITPY/privkey.pem` and the password `badssl.com`
4. Put wifi settings in CIRCUITPY/.env
5. Run the below Python script:
```py
import os
import wifi
import socketpool
import ssl
import adafruit_requests
TEXT_URL = "https://client.badssl.com/ "
wifi.radio.connect(os.getenv('WIFI_SSID'), os.getenv('WIFI_PASSWORD'))
pool = socketpool.SocketPool(wifi.radio)
context = ssl.create_default_context()
requests = adafruit_requests.Session(pool, context)
print(f"Fetching from {TEXT_URL} without certificate (should fail)")
response = requests.get(TEXT_URL)
print(f"{response.status_code=}, should be 400 Bad Request")
input("hit enter to continue\r")
print("Loading client certificate")
context.load_cert_chain("/cert.pem", "privkey.pem")
requests = adafruit_requests.Session(pool, context)
print(f"Fetching from {TEXT_URL} with certificate (should succeed)")
response = requests.get(TEXT_URL)
print(f"{response.status_code=}, should be 200 OK")
```
2022-10-10 15:10:53 -05:00
flom84
81d227de73
Use types from circuitpython.
2022-10-10 20:55:44 +02:00
Florin Maticu
ab1de66dd3
Remove redundant header files.
2022-10-10 20:37:31 +02:00
Dan Halbert
14c9028c1f
Merge pull request #7026 from dhalbert/minor-space-savings
...
save about 112 bytes
2022-10-10 13:55:56 -04:00
Dan Halbert
de95463deb
Merge pull request #7023 from dhalbert/wifi-scanning-fixes
...
update esp-idf; allow start/stop channels in wifi scanning
2022-10-10 13:54:54 -04:00
Dan Halbert
8d344459cd
Merge pull request #7021 from jepler/pico-w-vbus-sense
...
pico w: pins improvements
2022-10-10 11:56:30 -04:00
Dan Halbert
86a0f9a861
save about 112 bytes
2022-10-09 19:22:39 -04:00
Dan Halbert
987030e706
Merge branch 'main' into add-os-utime-function
2022-10-07 22:45:51 -04:00
Dan Halbert
b097c0736a
shrink some small builds
2022-10-07 22:44:06 -04:00
Dan Halbert
747dc7746d
handle scan channel bounds but note they do nothing for RP2040 CYW43
2022-10-07 16:22:17 -04:00
Dan Halbert
21c0c4c1a6
update esp-idf; allow start/stop channels in wifi scanning
2022-10-07 15:29:09 -04:00
MicroDev
fc549fe345
Merge pull request #7014 from jepler/restore-nvm-module
...
restore nvm module
2022-10-08 00:12:41 +05:30
Dan Halbert
78b278e091
disable rainbowio on arduino_zero
2022-10-07 10:39:30 -04:00
Jeff Epler
f882571366
pico w: pins improvements
...
Closes : #7017
* Remove the 'GP23' alias for CYW1
* Remove the 'CYW0' alias for CYW0
* Switch VBUS_SENSE to CYW2, remove 'GP24' alias
Code that wants to use SMPS_MODE, VBUS_SENSE and LED while being
portable to the W and non-W variants should use those names, not alias
names.
* Remove A3 / VOLTAGE_MONITOR
Right now this cannot be used. The ability to check the voltage monitor
should be added back in some fashion in the future.
2022-10-07 08:48:36 -05:00
Dan Halbert
041885da1b
Merge pull request #7011 from jepler/pico-w-resize-circuitpy-again
...
switch flash split to leave 512kB for CIRCUITPY
2022-10-07 08:32:18 -04:00
Neradoc
3a6382d1ea
cyw43.CywPin should be the class, not a string
2022-10-07 02:11:05 +02:00
Jeff Epler
644d293641
Fix CIRCUITPY drive offset in flash correctly, accounting for NVM
...
.. and fix nvm to read/right the correct area.
.. putting a comment in link.ld to explain it all
Closes #7012
2022-10-06 12:39:46 -05:00
Jeff Epler
07cd2ff065
restore 4kB gap pending resolution of #7011
2022-10-06 11:20:48 -05:00
Dan Halbert
8d82e4ba5f
Merge pull request #7008 from MicroDev1/patch
...
Cleanup `mpconfigboard.mk` of espressif boards
2022-10-06 11:20:11 -04:00
Jeff Epler
6e2c24083a
switch flash split to leave 512kB for CIRCUITPY
2022-10-06 10:12:22 -05:00
Dan Halbert
e0517c7379
Merge pull request #6999 from jepler/picow-ssl
...
pico_w: implement ssl with caveats
2022-10-06 10:51:36 -04:00
microDev
4f753251db
cleanup mpconfigboard.mk
of espressif boards
...
- move `INTERNAL_FLASH_FILESYSTEM` to `mpconfigport.mk`
- move `LONGINT_IMPL` to `mpconfigport.mk`
- move `CFG_TUD_TASK_QUEUE_SZ` to `Makefile`
2022-10-06 16:15:01 +05:30
microDev
b0ef35d50b
update storage extension implementation
2022-10-06 09:19:56 +05:30
Dan Halbert
296960dd89
shorten board.c
2022-10-05 20:23:19 -04:00
Neradoc
d31acdef6c
we don't use AUTORESET_DELAY_MS
2022-10-06 02:19:48 +02:00
Jeff Epler
2dc283f578
close underlying socket object when closing ssl socket
2022-10-05 15:10:14 -05:00
Jeff Epler
4a9389d347
remove debug message
2022-10-05 14:57:04 -05:00
Jeff Epler
14f2309b6f
Enable more key exchange methods
...
This is intended (but not entirely verified) to match our esp32 builds.
It does fix accessing https://circuitpython.org , which failed before with
"MBEDTLS_ERR_SSL_FATAL_ALERT_MESSAGE".
It still doesn't work on a personal website of mine with valid letsencrypt
certificate but I haven't verified whether it works on esp32s2 with CP.
That site only allows TLS 1.3, while this mbedtls only supports up to
1.2.
The version of mbedtls we adopted based on micropython's use has no
TLS 1.3 support, but the one in espressif esp-idf does.
2022-10-05 14:56:27 -05:00
Jeff Epler
fabfdcf6fe
More ssl work
2022-10-05 14:56:26 -05:00
Jeff Epler
944d388158
copy esp_crt_bundle.c from esp-idf@d51f7d8821
2022-10-05 14:56:26 -05:00
Jeff Epler
a64c1a11c5
move nina-fw certificates so it can be shared with other ports
2022-10-05 14:56:25 -05:00
Jeff Epler
09023abcd2
Update espressif function prototype to match
2022-10-05 14:56:25 -05:00
Kyle Mohr
dd5f9411c8
Merge branch 'adafruit:main' into main
2022-10-05 13:44:12 -05:00
Jeff Epler
dcb650c513
pico w: add ssl module
...
Note: at this time, the ssl module on pico_w never verifies the server
certificate. This means it does not actually provide a higher security
level than regular socket / http protocols.
2022-10-05 13:12:43 -04:00
Jeff Epler
2bd50673b6
Finish adapting flash storage size
...
Before this, CIRCUITPY would start at 1MB anyway. This appeared to work
only because I hadn't checked the actual size of the CIRCUITPY drive,
and because until now the flash hadn't actually crossed that 1MB
boundary into CIRCUITPY storage.
WARNING: on pico_w, upgrading/downgrading CircuitPython across this commit
boundary will erase the CIRCUITPY filesystem. After this commit,
switching between pico and pico_w firmware will erase the CIRCUITPY
filesystem
2022-10-05 10:02:38 -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
microDev
2618e11002
use next update partition
2022-10-04 19:42:48 +05:30
microDev
9fe7308b88
conditionally add storage extension
2022-10-04 17:26:28 +05:30
microDev
7d8ff20dac
add initial storage extension support
2022-10-04 17:25:48 +05:30
Kyle Mohr
02e115cbc2
Update mpconfigboard.mk
2022-10-04 00:03:59 -05:00
Kyle Mohr
330b96726a
add newlines to end of files
2022-10-04 04:56:31 +00:00
Kyle Mohr
5268ef01c9
Utilize VID/PID from native USB port
2022-10-03 23:45:28 -05:00
Kyle Mohr
cffc1bfcab
sdkconfig didn't get committed for some reason...
2022-10-03 22:54:31 -05:00
Kyle Mohr
a948dc399b
add esp32-s2-devkitc-1-n8r2 variant
2022-10-04 03:51:51 +00:00
Dan Halbert
90f6096955
fix ai-thinker creation ids; fix some typos elsewhere
2022-10-03 15:29:03 -04:00
Dan Halbert
ad79f595a5
Merge pull request #6974 from MicroDev1/patch
...
Couple Minor Fixes
2022-10-01 13:12:01 -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
bced76887e
Merge pull request #6973 from jepler/rp2040-fix-warnings
...
Rp2040 fix warnings
2022-09-30 16:21:31 -04:00
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
Jeff Epler
0912889106
raspberrypi: statically allocate storage for hostname
2022-09-30 10:05:11 -05:00
Jeff Epler
84c7ac4a81
Make cyw43.set_power_management() be a function as intended
2022-09-30 07:56:59 -05:00
Jeff Epler
3281e14be1
fix reference to board module
2022-09-29 21:37:34 -05:00
Jeff Epler
4de9487820
It turns out you CAN have too many GPIO
2022-09-29 20:10:33 -05:00
Dan Halbert
9d1b12066d
Espressif: do not hold pins during deep sleep if not necessary
2022-09-29 20:11:48 -04:00
flom84
7af8a23ddf
Use macro for computing size of array.
2022-09-29 22:10:21 +02:00
flom84
3609c29b27
Update STM DFU mode software implementation.
...
- fix for sizeof array calculation.
- follow ARM recommendation to turn off interruptions with NVIC.
2022-09-29 21:15:51 +02:00
Jeff Epler
510bd11f58
Enable reading back value of cyw43 pin
...
Now, `led.value = not led.value` works as a way to toggle the LED state.
Closes : #6959
2022-09-29 11:06:11 -05:00
Jeff Epler
a3bcfd6911
Add pin_CYW1 for SMPS_MODE
2022-09-29 10:54:06 -05:00
Jeff Epler
72b06021c0
fix doc formatting
2022-09-29 10:27:13 -05:00
Jeff Epler
74cdf42ece
pico w: implement bind, listen, accept
...
this works with some simple tcp & udp echo service code
2022-09-29 10:02:20 -05:00
Jeff Epler
12ea04ca70
Add cyw43.set_power_management
2022-09-29 10:02:20 -05:00
Jeff Epler
91f1266db5
Document CywPin
2022-09-29 10:02:19 -05:00
Jeff Epler
56f9f0d136
add tx power get/set
2022-09-29 10:02:19 -05:00
Jeff Epler
71a00157ba
Add hostname setting
2022-09-29 10:02:19 -05:00
Jeff Epler
c6d3163841
remove comment about something the Makefile does now
2022-09-29 10:02:18 -05:00
Dan Halbert
db065a299f
Merge pull request #6933 from jepler/ 🥧 🐮
...
Implement a useful subset of `wifi` and `socketpool` modules on 🥧 🐮
2022-09-28 18:09:24 -04:00
Jeff Epler
2dd6df9d93
better to explain why this file has no useful content
2022-09-28 15:19:06 -05:00
Jeff Epler
72bce51ce3
restore submodule commits
2022-09-28 14:48:54 -05:00
Jeff Epler
3d76aa00f5
implementations not needed
2022-09-28 14:38:13 -05:00
Jeff Epler
09d4fbc557
Remove FIXME
...
this was verbatim-copied from micropython
2022-09-28 14:38:13 -05:00
Jeff Epler
6189156a0b
Add missing NotImplementedErrors
2022-09-28 14:38:12 -05:00
Jeff Epler
edf1efd728
Add CYW43 guards to more things
2022-09-28 14:38:12 -05:00
Jeff Epler
e100981d90
revert CFLAGS change
2022-09-28 14:38:12 -05:00
Jeff Epler
4380292848
comment why not actually reset wifi
2022-09-28 14:38:11 -05:00
Jeff Epler
ff7731491e
Implement enough of socketpool to do ntp and non-https requests
2022-09-28 10:06:34 -05:00
Jeff Epler
a7a1bd7880
Implement DNS resolution
...
```
>>> s = socketpool.SocketPool(wifi.radio)
>>> s.getaddrinfo("google.com", 80)
[(0, 0, 0, '', ('142.250.81.206', 80))]
```
2022-09-28 10:06:33 -05:00
Jeff Epler
6c3cdceb45
Implement scan, connect, ping
...
My pings go out, and then they come back
```py
import os
import wifi
import ipaddress
wifi.radio.connect(os.getenv('WIFI_SSID'), os.getenv('WIFI_PASSWORD'))
ipv4 = ipaddress.ip_address("8.8.4.4")
print("Ping google.com: %f ms" % (wifi.radio.ping(ipv4)*1000))
```
2022-09-28 10:06:33 -05:00
Jeff Epler
346fff2e7c
cyw43 basic gpio support, hwaddr in boot_out
2022-09-28 10:06:33 -05:00
Jeff Epler
22b04aef22
Reindent a block
2022-09-28 10:05:53 -05:00
Jeff Epler
9caa65cf28
allow a board to override link.ld
2022-09-28 10:05:53 -05:00
Jeff Epler
77fcb8a5a3
disable rainbowio on this arduino_nano_33_iot
...
The gpio changes took away enough code space that it doesn't fit.
2022-09-28 10:05:32 -05:00
Dan Halbert
39492b3403
Merge pull request #6951 from jepler/black-bindings
...
Black bindings
2022-09-27 17:57:07 -04:00
Jeff Epler
b2cc8d2aad
run black_bindings across all bindings
2022-09-27 15:21:42 -05:00
Jeff Epler
4e96667d50
Manual fix for oddball cases
2022-09-27 15:19:32 -05:00
Kattni Rembor
ea5e4b20b0
Add more spacing for aliased pins.
2022-09-27 15:50:30 -04:00
Kattni Rembor
9c4c7241d0
Update pin order to match silk.
2022-09-27 15:24:07 -04:00
flom_84
96a83ecbfe
Update mpconfigboard.h
2022-09-26 19:58:33 +02:00
flom84
e626502fd2
Add USB VID and PID from STM.
2022-09-26 19:45:33 +02:00
flom84
2bd2406d13
Update license info and remove redundant board functions.
2022-09-26 19:39:07 +02:00
Florin Maticu
8754a6ec53
Add circuitpython support for STM Nucleo-F446RE.
2022-09-26 19:12:42 +02:00
Dan Halbert
de80db681f
Merge pull request #6915 from dhalbert/ringbuf-cleanup
...
ringbuf cleanup
2022-09-25 17:50:21 -04:00
Jeff Epler
1c8e12660c
Merge pull request #6944 from Neradoc/doc-fix-usb-cdc
...
docs: usb_cdc.Serial.readinto has no nbytes parameter
2022-09-25 13:35:58 -05:00
Dan Halbert
e25c195b78
fix broadcom UART ringbuf init
2022-09-25 09:12:23 -04:00
Neradoc
5346b89b08
don't use @property in docs, just document as a property
2022-09-25 07:18:18 +02:00
Dan Halbert
d44edc4a0c
Merge pull request #6937 from jepler/issue6839
...
Use new unique ID for this board
2022-09-24 23:55:06 -04:00
Jeff Epler
f12136af7f
esp32-camera: sync doc with code.
...
Closes : #6836
2022-09-23 08:54:00 -05:00
Jeff Epler
5bbbca4d44
lock and unlock i2c bus around any ops that might access it
2022-09-22 17:03:05 -05:00
Jeff Epler
a769beed3f
Use new unique ID for this board
2022-09-22 16:23:38 -05:00
Dan Halbert
ea15a9118a
ringbuf cleanup
2022-09-21 10:03:05 -04:00
Dan Halbert
c567b43441
add CIRCUITPY_USB_IDENTIFICATION to turn off on smallest builds
2022-09-20 14:32:38 -04:00
Florin Maticu
745d83adac
DFU mode implementation for STM32F4 MCU.
2022-09-18 18:24:38 +02:00
Jeff Epler
1091d51af2
Merge pull request #6918 from UnexpectedCircuitPython/main
...
Added support for Unexpected Maker TinyPICO (V2/V3) and TinyPICO Nano
2022-09-17 21:39:17 -04:00
Seon Rozenblum
268b3f0dde
Added support for Unexpected Maker TinyPICO (V2/V3) and TinyPICO Nano boards using ESP32-PICO-D4
2022-09-18 09:49:30 +10:00
Paul Price
b2ffda219a
updated a pin definition
2022-09-17 16:53:24 -04:00
Dan Halbert
8a568d18b5
Merge pull request #6757 from latkinso42/adcdma
...
analogbufio
2022-09-16 08:32:24 -04:00
MicroDev
4a69dfa50c
Merge pull request #6907 from dhalbert/preserve-pins-on-deep-sleep
...
allow preserving pin state during deep sleep
2022-09-16 17:52:04 +05:30
MicroDev
f994b11d52
Merge pull request #6909 from dhalbert/fesp32s2tft-remove-unneeded-code
...
Remove unneeded workaround for Feather ESP32-S2 TFT
2022-09-16 10:18:13 +05:30
Dan Halbert
7914870f9a
Merge pull request #6908 from dhalbert/nrf-busio-none-empty-uart-read
...
nrf: return None when UART.read() reads nothing
2022-09-15 22:12:06 -04:00
Dan Halbert
6bb47038d5
Merge remote-tracking branch 'adafruit/main' into adcdma
2022-09-15 20:42:51 -04:00
Dan Halbert
0ab4f12dc4
fix some submodules commit skew
2022-09-15 20:36:29 -04:00
Dan Halbert
82694b7265
remove extraneous copyrights
2022-09-15 20:31:08 -04:00
Dan Halbert
4df8a51982
Remove unneeded workaround for Feather ESP32-S2 TFT
2022-09-15 20:06:47 -04:00
Dan Halbert
3abfd212ec
nrf: return None when UART.read() reads nothing
2022-09-15 19:40:02 -04:00
Dan Halbert
60f43b1703
allow preserving pin state during deep sleep
2022-09-15 17:35:14 -04:00
Wind-stormger
56c5f1eedf
Add BananaPi BPI-Leaf-S3.
...
Based on esp32s3, all available pins are drawn.
2M PSRAM, 8M FLASH.
A JST SH 4-pin Connector can be used for STEMMA QT / Qwiic.
A MX 1.25mm 2-Pin Connector Lithium battery power supply.
A WS2812 LED.
2022-09-15 14:18:24 +08:00
Dan Halbert
14fc4a0797
Merge pull request #6898 from dhalbert/espressif-pwmout-reset
...
Espressif pwmout reset fixes
2022-09-14 18:47:05 -04:00
Dan Halbert
ae64f9fd78
Merge pull request #6899 from BPI-STEAM/CircuitPython-main-BPI-BIT-S2-PR
...
Add BananaPi BPI-Bit-S2 .
2022-09-13 23:02:46 -04:00
Wind-stormger
6f4cc611ed
Add BananaPi BPI-Bit-S2 .
...
Adds support for the BananaPi BPI-Bit-S2 Boards.
Based on esp32s2 chip.
With 25 ws2812 LEDs, 1 buzzer, 2 photosensitive sensors, 1 thermosensitive sensor,
2 buttons on the front, 1 reset button and 1 boot button on the back.
2022-09-14 10:21:23 +08:00
Dan Halbert
d2f28eb980
Merge pull request #6887 from RetiredWizard/Broadcom-UART
...
Enable CIRCUITPY_CONSOLE_UART by default on Broadcom boards
2022-09-13 14:35:16 -04:00
Dan Halbert
2b25a5d574
update esp32-camera
2022-09-13 13:16:37 -04:00
Dan Halbert
14adfb16dd
avoid pwmout_reset() workaround by reordering in main(); remove unnecessary never-resets
2022-09-12 21:32:21 -04:00
Dan Halbert
d0d10179c2
fix logic in pwmout_reset()
2022-09-12 17:03:45 -04:00
Kong Wai Weng
c157f1cb39
Cast pin_number to int8_t so that it can be used with switch-case.
2022-09-12 18:56:15 +08:00
Kong Wai Weng
0ae015e4d9
Removed whitespaces.
2022-09-12 18:25:27 +08:00
Kong Wai Weng
aaa2be1200
Set the default pin state for GPIOs to pull down.
2022-09-12 18:19:33 +08:00
microDev
36221bd749
update board microdev_micro_c3
2022-09-11 13:31:38 +05:30
RetiredWizard
14b604f48c
Add LED pin definition to Zero 2W board
2022-09-10 23:18:25 -04:00
RetiredWizard
28756936d5
Add HW_LED_STATUS pin to Zero 2W board
2022-09-10 23:17:02 -04:00
RetiredWizard
38a0ca324e
Uses different pins for RX/TX
2022-09-10 21:48:10 -04:00
RetiredWizard
f4eb618598
Define CIRCUITPY_CONSOLE_UART_TX/RX
2022-09-10 21:42:41 -04:00
RetiredWizard
1bdf9fca40
Define CIRCUITPY_CONSOLE_UART_TX/RX
2022-09-10 21:40:31 -04:00
RetiredWizard
1d03d73c13
Define CIRCUITPY_CONSOLE_UART_TX/RX
2022-09-10 21:39:51 -04:00
RetiredWizard
29e0aba72f
Define CIRCUITPY_CONSOLE_UART_TX/RX
2022-09-10 21:39:03 -04:00
RetiredWizard
fb4062d23f
Define CIRCUITPY_CONSOLE_UART_TX/RX
2022-09-10 21:38:16 -04:00
RetiredWizard
72c479efe6
Define CIRCUITPY_CONSOLE_UART_TX/RX
2022-09-10 21:37:31 -04:00
RetiredWizard
a892af8d77
Define CIRCUITPY_CONSOLE_UART_TX/RX
2022-09-10 21:36:41 -04:00
RetiredWizard
7708f19ec8
Define CIRCUITPY_CONSOLE_UART_TX/RX
2022-09-10 21:36:01 -04:00
RetiredWizard
0913e3a148
Define CIRCUITPY_CONSOLE_UART_TX/RX
2022-09-10 21:34:45 -04:00
RetiredWizard
ecb74aa652
Remove CIRCUITPY_CONSOLE_UART_TX/RX
2022-09-10 21:33:29 -04:00
microDev
8cd4b9fc04
fix espressif run modes
2022-09-10 18:08:09 +05:30
Kong Wai Weng
2fbb3090e2
Changed the pins assignment.
2022-09-09 16:50:14 +08:00
Lee Atkinson
f279a2dbb2
Merge branch 'adafruit:main' into adcdma
2022-09-08 11:46:01 -04:00
Dan Halbert
dd37c81136
Merge pull request #6847 from dhalbert/status-bar-control
...
Allow enabling and disabling of status bar
2022-09-08 10:48:36 -04:00
Dan Halbert
58b00467c4
Merge pull request #6878 from dhalbert/weak-board-defs
...
Use MP_WEAK for default board.c routines
2022-09-08 10:47:08 -04:00
Dan Halbert
4cb69a51d5
Use MP_WEAK for default board.c routines
2022-09-08 07:36:50 -04:00
latkinso42
c1f57c6ceb
Pushing for resolution
2022-09-07 18:53:35 -04:00
Dan Halbert
328138225b
Merge pull request #6868 from PontusO/main
...
Added challenger_rp2040_wifi_ble board
2022-09-07 18:36:52 -04:00
Seon Rozenblum
6c4f352533
Fixed incorrect IO naming for ProS3 and FeatherS3
2022-09-07 19:51:45 +10:00
latkinso42
25078a24a3
Attempt to fix Build-Docs and Pre-Commit
2022-09-06 18:58:57 -04:00
Pontus Oldberg
c043c437f7
Merge branch 'main' of https://github.com/PontusO/circuitpython
2022-09-06 09:37:25 +02:00
Pontus Oldberg
9a937e6ea3
Added challenger_rp2040_wifi_ble board.
2022-09-06 09:37:21 +02:00
latkinso42
5498b3ac91
fix to analogbufio BufferedIn.h
2022-09-05 14:22:08 -04:00
Scott Shawcroft
a09836eb4a
Merge pull request #6681 from PontusO/main
...
Adds support for the Challenger RP2040 SubGHz board
2022-09-05 10:01:51 -07:00
latkinso42
a1856ea3e9
Renaming module from adcbuffer to analogbufio
2022-09-05 12:11:49 -04:00
latkinso42
478b40ecf9
Merge branch 'adcdma' of https://github.com/latkinso42/circuitpython into adcdma
...
Syncing with remote
2022-09-04 16:07:37 -04:00
Lee Atkinson
3cd8259a78
Merge branch 'adafruit:main' into adcdma
2022-09-04 15:59:20 -04:00
latkinso42
d7a1db5b87
Changes per review
2022-09-04 15:57:59 -04:00
Dan Halbert
14498f793d
Merge pull request #6859 from wemos/s3_cpython
...
Add LOLIN S3 ESP32-S3 board.
2022-09-04 13:10:52 -04:00
bill88t
ca7fb6dede
removal of sda-scl and add "GP" to 40,41
2022-09-04 18:05:50 +03:00
bill88t
e1891038c8
Forgor the one IO pin and sda-scl
2022-09-04 16:59:56 +03:00
Dan Halbert
449b43e5a6
Merge pull request #6863 from jepler/rp2pio-erroneous-mask
...
rp2pio: fix occasional bug when not using OUT pins
2022-09-04 09:15:35 -04:00
Jeff Epler
a3e17189a4
rp2pio: fix occasional bug when not using OUT pins
...
a NULL first pin object is used to indicate that there are zero
of some kind of pin associated with the StateMachine. However,
mask_and_rotate wasn't checking for zero. It actually read data from
near address 0x0 and (in my case) got a nonzero mask, which then
caused a program with GPIO11 and GPIO12 as input with pull-up and no
out pins to erroneously encounter the error "pull masks conflict with
direction masks"
2022-09-03 20:39:42 -05:00
wemos
3a18d285a2
Add LOLIN S3 ESP32-S3 board.
2022-09-03 11:06:51 +08:00
latkinso42
6fe2ea4513
Merging back with updated main files
2022-09-02 15:51:45 -04:00
Pontus Oldberg
59fb3fbbd6
Merge branch 'adafruit:main' into main
2022-09-01 10:35:13 +02:00
Dan Halbert
52080e24eb
status bar control
2022-08-30 15:23:44 -04:00
Dan Halbert
3ba385ff5c
Merge pull request #6794 from jepler/esp32-camera-error-checking
...
Esp32 camera error checking
2022-08-30 11:41:42 -04:00
Dan Halbert
371e544a92
Merge pull request #6823 from pypewpew/ugame10-fix
...
Fix ugame.py for the ugame10 board
2022-08-29 12:34:02 -04:00
Jeff Epler
2c6f57be5e
Update ports/espressif/common-hal/esp32_camera/Camera.c
...
Co-authored-by: Mark <56205165+gamblor21@users.noreply.github.com>
2022-08-28 16:46:50 -05:00
Lee Atkinson
04af01a672
Pin Validation fixed/readmultiple return fixed
2022-08-27 14:47:12 -04:00
Radomir Dopieralski
0a0c03c3d2
Fix ugame.py for the ugame10 board
...
It was still trying to use the gamepad module, and there was a typo
2022-08-26 17:07:44 +02:00
Jeff Epler
ebd58155f2
bump pico-sdk to 1.4.0
2022-08-26 09:54:16 -05:00
Jeff Epler
dc27fb967d
error at runtime if no psram actually reserved
2022-08-26 09:27:50 -05:00
Jeff Epler
9f22e75e5e
error if camera is configured but no psram
2022-08-26 09:27:50 -05:00
Jeff Epler
8ed6a6135a
Disable camera on boards without psram
2022-08-26 09:27:50 -05:00
Dan Halbert
83838fc4fd
Merge pull request #6798 from DavePutz/issue_6735
...
Fix handling of zero-length pulseout pulse
2022-08-25 07:49:28 -04:00
Lee Atkinson
37b6079c05
Merge branch 'adcdma' of https://github.com/latkinso42/circuitpython into adcdma
...
Reconciling remote updates
2022-08-24 21:46:28 -04:00
Lee Atkinson
55c0404d85
Merge branch 'adafruit:main' into adcdma
2022-08-24 21:07:12 -04:00
Lee Atkinson
6fd08483e2
Tidying code for PR/ Minor Issues
2022-08-24 17:41:51 -04:00
DavePutz
c00a630f50
Update PulseOut.c
...
reorder the tests for zero-length
2022-08-23 15:58:27 -05:00
root
3daebb36c3
Fix handling of zero-length pulseout pulse
2022-08-23 15:17:54 -05:00
Jeff Epler
6572f85913
Merge pull request #6779 from dhalbert/matrixportal-more-ram
...
matrixportal: remove ulab to make room to freeze portalbase
2022-08-23 09:41:36 -06:00
Lee Atkinson
e23b621d69
Fixing 8 bit and 12 bit conversion
2022-08-22 18:55:55 -04:00
Lee Atkinson
f5655dd48c
Fixing Build errors/ DMA Xfer Rate
2022-08-21 11:44:40 -04:00
Lee Atkinson
68671399d1
More formating
2022-08-19 10:51:13 -04:00
Lee Atkinson
d3c3c9eac4
Tidy a few things
2022-08-18 19:10:16 -04:00
Lee Atkinson
f91af513b7
Introduced odule adcbuffer / removed analogio/AnalogFastIn
2022-08-18 16:23:17 -04:00
Dan Halbert
0c87d0b40d
matrixportal: remove ulab instead of bleio HCI
2022-08-18 10:23:37 -04:00
Lee Atkinson
34b8fbaf14
Merge branch 'adafruit:main' into adcdma
2022-08-18 09:08:10 -04:00
Dan Halbert
2664d3766d
matrixportal: remove BLEIO HCI to make room to freeze portalbase
2022-08-18 07:43:31 -04:00
arturo182
23f2b62196
Add the Solder Party BBQ20KBD board
2022-08-17 20:44:23 +02:00
Scott Shawcroft
2f0e209eca
Merge pull request #6772 from dhalbert/esp32-touch-fix
...
Fix ESP32 touch; rework common code a bit
2022-08-17 10:24:22 -07:00
Dan Halbert
2bc8d73776
Fix ESP32 touch; rework common code a bit
2022-08-16 20:04:27 -04:00
Scott Shawcroft
4b1d1fd72d
Merge pull request #6768 from mayrhomar/main
...
Add Waveshare ESP32-S2-Pico-LCD
2022-08-16 09:50:46 -07:00
Scott Shawcroft
3fbddfde59
Merge pull request #6758 from gamblor21/rp2040_i2ctarget
...
Rp2040 i2ctarget support
2022-08-15 13:57:49 -07:00
Martin
528da05f54
Add Waveshare ESP32-S2-Pico-LCD
2022-08-15 16:46:14 +02:00
Lee Atkinson
4542c801b0
Tidying up loose endson draft PR
2022-08-14 13:03:33 -04:00
lady ada
2f2ccdddbf
pycam rev b pins
2022-08-13 23:41:35 -04:00
gamblor21
7584363f66
Forgot an include
2022-08-13 17:41:45 -05:00
gamblor21
1ae2a2154e
Initial i2ctaret commit
2022-08-13 17:00:43 -05:00
MicroDev
fa3e265bfb
Merge pull request #6753 from tannewt/esp_led_reset
...
Audit all boards with LED pins defined
2022-08-13 15:25:02 +05:30
Lee Atkinson
8cd12b2478
Copyright Change
2022-08-12 16:01:58 -04:00
Lee Atkinson
81c7ba899d
Copyright Update/Acknowledgements
2022-08-12 13:57:45 -04:00
Lee Atkinson
6d8e8c71fc
Merge branch 'adcdma' of https://github.com/latkinso42/circuitpython into adcdma
...
Fixing code behind commits
2022-08-11 17:58:46 -04:00
Lee Atkinson
ce24469848
Merge branch 'adafruit:main' into adcdma
2022-08-11 17:57:01 -04:00
Lee Atkinson
c3c1e307c4
Sample Rate Enhancements
2022-08-11 17:50:30 -04:00
Scott Shawcroft
df1435ae94
Audit all boards with LED pins defined
...
Add them as MICROPY_HW_LED_STATUS so that we can share reset code
for them. They aren't actually used for the status if another RGB
option is available. (But maybe they should be.)
Fixes #6717
2022-08-11 14:41:20 -07:00
Scott Shawcroft
5823bcc744
Merge branch 'main' into c3_short_send
2022-08-11 12:45:02 -07:00
Scott Shawcroft
f1053fb963
Introduce port_yield()
...
This allows the web workflow send code to yield briefly when
waiting for more room to send in a socket. Waiting for an "interrupt"
could wait forever because the select task only waits for read and
error. Adding wait on write is tricky because much of the time we
don't care if the sockets are ready to write. Using yield avoids
this trickiness.
2022-08-11 11:25:34 -07:00
Lee Atkinson
5fb5fd0558
Merge branch 'adafruit:main' into adcdma
2022-08-10 18:33:52 -04:00
Scott Shawcroft
f9d724c09e
Fix retries after successful connection.
...
We may have set retries to 0 to enforce a timeout but the connect
succeeded. When it succeeds, we want to allow retries later in
case we lose signal briefly. (The callback will do this too but
the connect function will override it after.)
Also, remove extra code from websocket that is leftover from
debugging.
2022-08-10 15:24:08 -07:00
Jeff Epler
c2a45c1f27
Merge pull request #6739 from jepler/qrio-esp32camera
...
Enable qrio to work with rgb565 data, including byte-swapped data
2022-08-10 13:54:40 -05:00
Scott Shawcroft
7a5d2e81fc
Merge pull request #6734 from dhalbert/remove-autobrightness
...
Remove support for auto-brightness
2022-08-10 10:22:53 -07:00
Jeff Epler
86f9d98a5d
fix documentation of framebuffer_count
2022-08-10 11:12:54 -05:00
Dan Halbert
af64faae1e
switch back one I2C message
2022-08-10 12:06:43 -04:00
Lee Atkinson
e778112710
Merge branch 'adafruit:main' into adcdma
2022-08-10 10:29:17 -04:00
Lee Atkinson
9e0c580d3d
AnalogFastIn
2022-08-10 09:42:24 -04:00
Dan Halbert
198c8fea11
merge from upstream and fix espressif_esp32s3_eye
2022-08-10 08:43:08 -04:00
Dan Halbert
02cc6c2aee
Merge remote-tracking branch 'adafruit/main' into remove-autobrightness
2022-08-10 08:35:53 -04:00
Scott Shawcroft
138c92f035
Merge pull request #6727 from dhalbert/restore-deleted-modules
...
restore rainbowio and onewireio to a number of boards
2022-08-09 21:44:26 -07:00
Dan Halbert
41bcd7b260
Remove support for auto-brightness
2022-08-09 22:40:21 -04:00
Scott Shawcroft
59b4353282
Merge pull request #6713 from tannewt/exception_filename
...
Add exception filename to title bar
2022-08-09 16:59:12 -07:00
Jeff Epler
5040e1b7a5
Merge pull request #6684 from jepler/espressif-camera-2
...
Rewrite camera support for the Espressif port
2022-08-09 18:50:25 -05:00
Scott Shawcroft
db837e2b48
Merge pull request #6725 from dhalbert/esp-stack-size-16kB
...
increase main task stack size from 8kB to 16kB
2022-08-09 16:40:16 -07:00
Scott Shawcroft
554063a817
Merge branch 'main' into espressif-camera-2
2022-08-09 14:07:14 -07:00
Scott Shawcroft
5084de1b73
Merge pull request #6708 from strid3r21/main
...
Added Smart Bee Design Boards
2022-08-09 14:06:11 -07:00
Dan Halbert
c4db71d12e
Merge pull request #6721 from dhalbert/i2c-target
...
Change I2C terminology from "peripheral" to "target"
2022-08-09 16:12:17 -04:00
Dan Halbert
34b22eac2a
restore rainbowio and onewireio to a number of boards
2022-08-09 16:10:17 -04:00
Dan Halbert
4021b44a39
increase main task stack size from 8kB to 16kB
2022-08-09 15:00:01 -04:00
Scott Shawcroft
df52d995ed
Merge pull request #6714 from dannystaple/patch-2
...
Improve docs for rp2Pio Statemachine frequency
2022-08-09 10:50:27 -07:00
Scott Shawcroft
b3b27a1d80
Remove extra leading spaces
2022-08-09 10:45:47 -07:00
Scott Shawcroft
556d01a685
Remove extra newline at end of file
2022-08-09 10:44:57 -07:00
Scott Shawcroft
ce1273be7a
Pull Feather S2 TFT LED down on reset
2022-08-09 10:42:56 -07:00
Jeff Epler
c74746f052
Cross references in documentation always help
2022-08-09 12:20:02 -05:00
Dan Halbert
84807cd6eb
Change I2C terminology from "peripheral" to "target"
2022-08-09 13:13:19 -04:00
Scott Shawcroft
d95cfc3abc
Merge pull request #6719 from dhalbert/huzzah32-web-workflow
...
enable web workflow on Feather HUZZAH32
2022-08-09 10:08:39 -07:00
Jeff Epler
5a85b8ab95
improve docstrings based on my best sleuthing
2022-08-09 11:42:19 -05:00
Jeff Epler
ec839d6f90
these items should not have been disabled
2022-08-09 11:42:19 -05:00
Jeff Epler
f87e34b9ed
add shutter button
2022-08-09 11:42:19 -05:00
takayoshiotake
5ce3778d75
Add custom board: Octave RP2040
2022-08-09 22:19:38 +09:00
Dan Halbert
10275001ac
enable web workflow on Feather HUZZAH32
2022-08-09 07:26:18 -04:00
paul
15ad24ba62
ran pre-commit.
2022-08-09 04:32:21 -04:00
Danny Staple
3c1c477c5b
Improve docs for rp2Pio Statemachine frequency
...
This frequency can be set to 0 for the system (133mhz) clock speed.
2022-08-08 22:14:55 +01:00
lady ada
2cd9222e5e
add includes
2022-08-07 14:32:29 -04:00
lady ada
029b6b6fbe
add default display
2022-08-07 14:12:40 -04:00
paul
a6eadd6259
Added Bee Motion S3 board
2022-08-07 11:59:43 -04:00
paul
f39058edc4
Added Bee S3 board
2022-08-06 22:22:20 -04:00
Lee Atkinson
f69939c49c
First Commit for AnalogFastIn
2022-08-06 16:22:50 -04:00
Lee Atkinson
56c44f6265
Merge remote-tracking branch 'origin/main'
2022-08-06 15:53:54 -04:00
Lee Atkinson
552f6af4a1
clean up
2022-08-06 15:50:22 -04:00
Jeff Epler
1a11ff864a
Merge remote-tracking branch 'origin/main' into espressif-camera-2
2022-08-05 21:08:12 -05:00
Jeff Epler
1da8065d6b
Merge remote-tracking branch 'origin/main' into espressif-camera-2
2022-08-05 16:38:51 -05:00
Scott Shawcroft
207311b02a
Merge branch 'main' into title_execution_status
2022-08-05 13:42:58 -07:00
Dan Halbert
8c10e09ba0
Merge pull request #6667 from jepler/esp-reserve-heap-for-idf
...
Add ability to reserve psram
2022-08-05 15:06:44 -04:00
Jeff Epler
3f49d77036
Improve esp32-s3-eye board definition
2022-08-05 13:10:21 -05:00
Scott Shawcroft
e7d72b1ebe
Use libgcc from Arch on SAMD21 (it's smaller.)
...
Fixes #4705
2022-08-04 16:33:41 -07:00
Scott Shawcroft
83cbbc9946
Add BLE status to title bar
2022-08-04 16:33:10 -07:00
Scott Shawcroft
125b276af0
Get CIRCUITPY FATFS directly.
...
Otherwise, you may actually get a non-root filesystem.
Fixes #6575
2022-08-04 16:06:27 -07:00
Jeff Epler
861fa9625d
Add the ESP32-EYE aka ESP-EYE
2022-08-04 15:12:12 -05:00
Jeff Epler
98202c8568
Allow changing camera settings that require reinit
...
These can only be changed in a group, though any items to keep
unchanged can be unspecified or specified as None.
2022-08-04 15:12:11 -05:00
Jeff Epler
428fbcd343
remove debug message during build
2022-08-04 15:12:10 -05:00
Jeff Epler
0e26a937cc
Disable camera everywhere it doesn't fit
2022-08-04 15:12:08 -05:00
Jeff Epler
230532f0eb
one last doc build fix
2022-08-04 15:12:07 -05:00
Jeff Epler
a9d53ad2a6
Fix "check-stubs" problems
2022-08-04 15:12:06 -05:00
Jeff Epler
7cb40c9054
further doc build fixes
2022-08-04 15:12:05 -05:00
Jeff Epler
81fb9a5f20
specify return type for docs
2022-08-04 15:12:04 -05:00
Jeff Epler
8bdbe0355a
Add more getters
2022-08-04 15:12:02 -05:00
Jeff Epler
badcae5ace
Fix docstring errors
2022-08-04 15:12:01 -05:00
Jeff Epler
aead0dfe45
Return a Bitmap from take() when appropriate
2022-08-04 15:12:00 -05:00
Jeff Epler
54fe753602
Enable gifio and qrio when appropriate
2022-08-04 15:11:59 -05:00
Jeff Epler
258f72640a
Implement a pile of getters & setters
2022-08-04 15:11:57 -05:00
Jeff Epler
69949ecb43
update PID for this board
2022-08-04 15:11:56 -05:00
Jeff Epler
d1b89fca91
Reset camera when interpreter is reset
2022-08-04 15:11:55 -05:00
Jeff Epler
f54c7adddc
Must treat NO_PIN cast to uint8_t the same as NO_PIN
...
Otherwise, deinitializing a camera with e.g., the powerdown
pin unspecified results in an assertion failure in a debug build.
2022-08-04 15:11:54 -05:00
Jeff Epler
1d1e139379
fix taking multiple pictures
2022-08-04 15:11:53 -05:00
Jeff Epler
b903a020fd
Enable display on esp32-s3-eye
2022-08-04 15:11:52 -05:00
Jeff Epler
8d673bdbf5
reserve 1MB of PSRAM for camera framebuffer on esp32s3-eye
...
.. this setting can be overridden with a bigger or smaller value in
CIRCUITPY/.env but 1/8 of PSRAM seems like a good initial value. It's
enough to store a single 800x600 or 640x480 RGB565 frame, or multiple
smaller frames such as 320x240.
2022-08-04 15:11:51 -05:00
Jeff Epler
5db6db0128
add esp32-camera
...
This uses the esp32-camera code instead of our own homebrewed camera code.
In theory it supports esp32, esp32-s2 and esp32-s3, as long as they have
PSRAM.
This is very basic and doesn't support changing any camera parameters,
including switching resolution or pixelformat.
This is tested on the Kaluga (ESP32-S2) and ESP32-S3-Eye boards.
First, reserve some PSRAM by putting this line in `CIRCUITPY/_env`:
```
CIRCUITPY_RESERVED_PSRAM=524288
```
and hard-reset the board for it to take effect.
Now, the following script will take a very low-resolution jpeg file and print
it in the REPL in escape coded form:
```python
import board
import esp32_camera
c = esp32_camera.Camera(
data_pins=board.CAMERA_DATA,
external_clock_pin=board.CAMERA_XCLK,
pixel_clock_pin=board.CAMERA_PCLK,
vsync_pin=board.CAMERA_VSYNC,
href_pin=board.CAMERA_HREF,
pixel_format=esp32_camera.PixelFormat.JPEG,
i2c=board.I2C(),
external_clock_frequency=20_000_000)
m = c.take()
if m is not None:
print(bytes(m))
```
Then on desktop open a python repl and run something like
```python
>>> with open("my.jpg", "wb") as f: f.write(<BIG PASTE FROM REPL>)
```
and open my.jpg in a viewer.
2022-08-04 15:11:50 -05:00
Jeff Epler
8e08cc38f8
Add default I2C bus to Kaluga
2022-08-04 15:11:48 -05:00
Scott Shawcroft
e0cb8ef17e
Merge pull request #6694 from dhalbert/esp32-no-psram
...
ESP32 no psram support; other ESP32 cleanup
2022-08-04 11:49:39 -07:00
Scott Shawcroft
3707b54e3b
Merge pull request #6672 from bill88t/main
...
Add Waveshare ESP32-S2-Pico
2022-08-04 11:09:59 -07:00
Dan Halbert
202fac59f8
ESP32 fixes for no PSRAM; some cleanup
2022-08-04 13:44:52 -04:00
Dan Halbert
d4e8c19b49
merge from main
2022-08-04 12:43:23 -04:00
Jeff Epler
82be75adb5
Add ability to reserve psram
...
.. the primary user of which will be the camera, since the framebuffers
must be allocated via esp-idf allocation function and never from the
gc heap.
A board can have a default value, and the value can also be set in the
/.env file using the key CIRCUITPY_RESERVED_PSRAM with the value being
the reserved size in bytes.
Co-authored-by: Dan Halbert <halbert@adafruit.com>
2022-08-03 16:19:40 -05:00
Pontus Oldberg
c884194c92
Fixed incorrect PID.
2022-08-03 08:45:39 +02:00
bill88t
68bb6b9988
ran precommit
2022-08-03 09:14:26 +03:00
Bill Sideris
efa3e40f90
Add the one obtained from esp
2022-08-03 08:48:28 +03:00
Dan Halbert
d3d5e36548
update adafruit/esp-idf for ESP32_ECO3_CACHE_LOCK_FIX fix
2022-08-02 22:37:06 -04:00
Dan Halbert
b027d111a9
remove custom console UART from sdkconfig-esp32.defaults
2022-08-02 22:00:59 -04:00
Dan Halbert
534a482d94
initial HUZZAH32 bring-up, with hacked pins
2022-08-02 21:47:46 -04:00
Dan Halbert
767234e79c
Merge pull request #6688 from tannewt/fix_esp32c3_paste
...
Fix C3 when pasting 128+ characters
2022-08-02 21:35:02 -04:00
Dan Halbert
524cc5e274
Merge pull request #6685 from tannewt/esp32_ww
...
Enable Web Workflow on Feather ESP32 V2
2022-08-02 21:30:23 -04:00
Scott Shawcroft
9de8ae70b6
Fix C3 when pasting 128+ characters
...
The ringbuf used to fill up and the recv interrupt would block CP.
Now it'll disable the interrupt until we have enough room in the
ringbuf.
Fixes #6678
2022-08-02 15:25:19 -07:00
Scott Shawcroft
1c69fe1727
Fix S2/S3 USB
...
The new Kconfig that fixed C3 added a dependency on USB_OTG_SUPPORTED
that is only calculated if we include the usb module in cmake.
Fixes #6679
2022-08-02 14:11:09 -07:00
Scott Shawcroft
74e841d835
Read fuses to know what flash and ram pins to never reset
2022-08-02 12:01:42 -07:00
Pontus Oldberg
dfcbc79cdf
Merge branch 'adafruit:main' into main
2022-08-02 14:07:09 +02:00
Bill Sideris
60429f51c7
Add official vid/pid
2022-08-02 09:43:17 +03:00
Scott Shawcroft
f0c6a8c49a
Odroid pin defs
2022-08-01 15:52:08 -07:00
Scott Shawcroft
9661d3256c
Add more ESP32 boards and enable web workflow
2022-08-01 15:52:08 -07:00
Dan Halbert
9baa2724a7
code formatting suggestion
2022-08-01 00:27:25 -04:00
Pontus Oldberg
03181fe362
Adds support for the Challenger RP2040 SubGHz board.
2022-07-31 10:36:04 +02:00
bill88t
c71cc4e0dd
Add Waveshare ESP32-S2-Pico
2022-07-30 15:35:48 +03:00
Dan Halbert
1348cb435b
Fix SAMD I2C frequency check
2022-07-29 19:07:33 -04:00
Scott Shawcroft
312e298890
Fix other ESP builds and arduino_nano_33_iot
2022-07-29 11:02:35 -07:00
Scott Shawcroft
d6344812e8
Lots of web workflow, C3 and title bar fixes
...
* Fixes #6221 - C3 hang on `import wifi`. Enabling the WiFi PHY was
disabling USB. Now boards that use it set CONFIG_ESP_PHY_ENABLE_USB
explicitly.
* Fixes #6655 - Allows pasting into the web serial page. Fixes reading
more than 0xf bytes at a time.
* Fixes #6653 - Fixes web socket encoding of payloads >125 bytes. Can
happen when printing a long string.
* Fixes C3 responsiveness when waiting for key to enter REPL. (It
now correctly stops sleeping.)
* Disables title bar updates when in raw REPL. Related to #6548 .
* Adds version to title bar.
2022-07-28 16:06:56 -07:00
Dan Halbert
3817d007aa
clean up esp32 sdkconfigs
2022-07-28 17:52:27 -04:00
Scott Shawcroft
c4c15206e7
Merge pull request #6608 from tannewt/web_workflow_port
...
Allow for dynamic reconfigure including port
2022-07-28 12:59:31 -07:00
Dan Halbert
282f8c49a6
Merge pull request #6660 from tannewt/fix_c3_serial_tx
...
Improve USB to Serial/JTAG TX
2022-07-28 14:42:56 -04:00
Scott Shawcroft
cb5fa3eaa6
Merge pull request #6664 from dglaude/patch-1
...
Add board.LED (alias of board.LED_R part of RGB)
2022-07-28 11:26:31 -07:00
Scott Shawcroft
c29fa9012d
Merge pull request #6645 from prplz/seeed_xiao_esp32c3
...
Add board: seeed_xiao_esp32c3
2022-07-28 11:22:43 -07:00
David Glaude
2baf3455bd
Add board.LED (alias of board.LED_R part of RGB)
...
Totally untested change (will try with the artifact), but I think every board should have a board.LED if possible to be able to use the learn guide basic instruction.
2022-07-28 16:46:56 +02:00
Scott Shawcroft
ddeb833a3a
Shrink Feather S3 4mb build with -Os
2022-07-28 07:43:39 -07:00
Michael Himing
555bf7cc12
Add board: seeed_xiao_esp32c3
2022-07-28 22:48:03 +10:00
Scott Shawcroft
bea955222a
Improve USB to Serial/JTAG TX
...
It had a tight 5ms timeout before that caused some characters to
drop. Now the wait is longer and reset after a successful transmit.
This follows what MicroPython does.
Fixes #6220
2022-07-27 12:15:13 -07:00
Scott Shawcroft
ce60beeb25
Merge pull request #6651 from tannewt/refine_select_task
...
Improve web workflow responsiveness
2022-07-27 11:24:51 -07:00
Scott Shawcroft
6463755577
Merge pull request #6648 from pypewpew/stage-png
...
Add PNG image support to the Stage library
2022-07-27 11:02:48 -07:00
Scott Shawcroft
e9e2d8550c
Merge pull request #6657 from nitz/adafruit-magtag-2.9-add-boot0
...
Adds `BOOT0` (`GPIO0`) as a named pin for MagTag.
2022-07-27 11:01:26 -07:00
Chris Dailey
2a9d3c5ed2
Adds BOOT0 (GPIO 0) as a named pin for MagTag.
2022-07-27 08:38:52 -04:00
Arudinne
a55aebc718
Added support for 8MB flash for Challenger 840
2022-07-26 20:34:01 -05:00
Scott Shawcroft
931757f4a9
Improve web workflow responsiveness
...
1. Run the socket select task at the same priority as CP. This is
needed because it queues up the background work. Without it, CP
needed to sleep to let the lower priority task go.
2. Close the active socket on disconnect. This prevents looping
over a disconnected but not closed socket.
Fixes #6610 . Fixes #6613
2022-07-26 15:29:49 -07:00
Radomir Dopieralski
d510e60511
Disable bitmaptools and busdevice on pewpew_m4 to fit ja translation
2022-07-27 00:08:02 +02:00
Neradoc
6e5c818311
fix extensions for atmel and 2 boards, matching main
2022-07-26 18:15:59 +02:00
Neradoc
87e8994c4a
no default extension for ESP, fix duplicate line in rp2
2022-07-26 18:15:59 +02:00
Neradoc
eabe8b971a
list extensions instead of macros names ("bin,uf2" not BIN_UF2)
...
the modules_support_matrix usees a dictionnary per board instead of a list
optionally include the frozen modules URLs in it
2022-07-26 18:15:59 +02:00
Neradoc
d021d9ae4a
Move build extensions to board directories
...
- define CIRCUITPY_BUILD_EXTENSIONS to predefined values
- set CIRCUITPY_BUILD_EXTENSIONS in port and board config
- reuse the support matrix "get_settings_from_makefile" to get it
- move the existing port and board specific values
- remove the C3 specific board values because it's not the default
- update build_release_files.py to use get_settings_from_makefile
2022-07-26 18:15:50 +02:00
Scott Shawcroft
66d5fa9a55
Save space on Feather S3 4mb with -Os
2022-07-25 16:19:52 -07:00
Scott Shawcroft
6d6234443d
Merge remote-tracking branch 'adafruit/main' into web_workflow_port
2022-07-25 15:57:58 -07:00
Scott Shawcroft
acdfda7d0e
Merge pull request #6624 from bwshockley/bwshockley-figpi
...
Add raspberrypi port - figpi
2022-07-25 15:23:52 -07:00
Scott Shawcroft
c90167a9db
Merge pull request #6630 from ViktorWiz/w5500-evb-pico
...
Add WIZNet W5500-EVB-Pico
2022-07-25 15:16:32 -07:00
Scott Shawcroft
47f718aa92
Merge pull request #6615 from askpatrickw/beetle-esp32-c3
...
Beetle esp32 c3
2022-07-25 15:00:05 -07:00
Jeff Epler
955bcee1b3
It's OK for an init program to be zero bytes long
...
Closes #6636
2022-07-23 20:01:31 -05:00
ViktorWiz
ae6c0e347c
Add WIZNet W5500-EVB-Pico
2022-07-22 17:31:58 +09:00
Benjamin Shockley
dc686545c2
Update pins.c
...
Minor whitespace change.
2022-07-20 15:40:43 -05:00
Benjamin Shockley
e9eeaf2096
Update mpconfigboard.h
...
Moved UART to pins 24/25.
2022-07-20 12:35:40 -05:00
Benjamin Shockley
d01b65dd32
Create pins.c
2022-07-20 12:35:08 -05:00
Benjamin Shockley
3861a97f38
Create pico-sdk-configboard.h
2022-07-20 12:18:22 -05:00
Benjamin Shockley
3647cfa424
Create mpconfigboard.mk
2022-07-20 12:17:39 -05:00
Benjamin Shockley
d2865764ca
Create mpconfigboard.h
...
Added file.
2022-07-20 12:12:31 -05:00
Benjamin Shockley
21af8f42cc
Create board.c
2022-07-20 11:11:49 -05:00
Dan Halbert
f2bbe5a6a1
Merge pull request #6614 from litui/litui-espressif-bleiofix
...
Fixed empty characteristic issue with bleio+nimble.
2022-07-20 08:42:31 -04:00
Dan Halbert
e877644012
use -Os on Feather ESP32-S3 TFT to shrink build
2022-07-19 17:45:29 -04:00
Dan Halbert
bb47484cb1
Merge remote-tracking branch 'adafruit/main' into from_bytes-check-parameters
2022-07-19 17:18:26 -04:00
Dan Halbert
1cdf325c96
shrink Feather ESP32S3 TFT
2022-07-19 16:35:23 -04:00
Dan Halbert
51f2253cef
no Russian font for SAMD21; adjust unix build warnings
2022-07-19 14:07:18 -04:00
Patrick
1e99d68af7
Add Creator ID
2022-07-17 12:38:27 -07:00
Patrick
71c22232f0
board config compelted
2022-07-17 11:48:45 -07:00
Aria Burrell
868a03ff57
Fixed empty characteristic issue with bleio+nimble.
...
- Based on espressif/nimble's blecent example code. Confirms that the characteristic is not empty before trying to catalogue its descriptors.
- Running ble_gattc_disc_all_dscs on empty (no length) characteristics fails with the (not-very-informative) BLE_HS_EINVAL error if this check is not performed.
2022-07-17 04:50:50 -06:00
Scott Shawcroft
78b4159448
Allow for dynamic reconfigure including port
2022-07-15 16:33:12 -07:00
Jeff Epler
4e6fa55cba
Merge pull request #6591 from tannewt/web_workflow_ticks
...
Add socket select task to wake CP
2022-07-15 18:30:43 -05:00
Scott Shawcroft
c2a8ef752c
Remove ps2io to make space
2022-07-15 14:01:50 -07:00
Scott Shawcroft
6e7fdcc24b
Add wait for MDNS hostname to be set
2022-07-15 13:48:19 -07:00
Scott Shawcroft
145cce93da
Merge pull request #6596 from Neradoc/ble-name-in-dotenv
...
Setup default BLE name in dotenv
2022-07-14 15:46:28 -07:00
Jeff Epler
dcc27a8c88
Need to ensure wifi radio is set enabled again on esp32
...
.. otherwise, nothing set it enabled on the second soft reboot.
2022-07-14 15:09:26 -05:00
Jeff Epler
72f5537027
esp32: don't fully reset the wifi device
...
.. this makes reconnecting without a full reset not work.
Because this works on other generations of the esp32 (c2, c3, etc),
apply this behavior only to esp32.
After this change, it's possible to connect multiple times to wifi in
different runs of code.py or the repl after soft rebooting.
2022-07-14 15:01:15 -05:00
Neradoc
5ca6d8953d
use available constants instead of testing errors for length
2022-07-14 11:55:53 +02:00
Neradoc
50a9beda04
Retrieve the BLE name from dotenv if available
...
Format:
CIRCUITPY_BLE_NAME = My BLE Board
- the length is limited to 31 characters
- for the NRF version it repeatedly truncates the name if it's too long
- the ESP version defaults to "nimble" if the name is too long
2022-07-14 11:55:53 +02:00
Scott Shawcroft
e9dd254127
Add socket select task to wake CP
...
This fixes the web workflow on boards without a display.
Fixes #6552
2022-07-13 17:35:35 -07:00
Scott Shawcroft
ac460dd1e1
Merge branch 'main' into esp32
2022-07-13 15:30:53 -07:00
Scott Shawcroft
2f9de1cb07
Merge pull request #6584 from tannewt/websocket_serial
...
Add WebSocket at /cp/serial/
2022-07-13 14:15:49 -07:00
Jeff Epler
09b754ffa0
espressif: Set heap size automatically, like micropython
...
rather than setting the heap size statically, micropython allocates
the biggest contiguous chunk possible, but in no event more than half the
total internal sram. On esp32 this gives 123728 bytes of `gc.mem_free`
in the repl.
2022-07-13 14:00:59 -05:00
Jeff Epler
09d1c846c4
Set heap size to 0 when heap allocation fails
2022-07-13 13:53:22 -05:00
Jeff Epler
c1b6c367ff
esp32 can allocate 88kB successfully
2022-07-13 13:53:08 -05:00
Jeff Epler
13be10ef14
rename function to avoid confusion
2022-07-13 13:28:51 -05:00
Jeff Epler
5c6ee20ca5
on esp32 need to initialize nvs before starting wifi
...
Also, change error handling so that the esp-idf error number
is shown in the traceback in the case of an error.
This allows scanning & connecting to work. I didn't try requests yet.
2022-07-13 11:57:38 -05:00
Jeff Epler
f620c2901c
Set a small but working heap size for esp32 without psram
2022-07-13 11:10:00 -05:00
Jeff Epler
ea52ca66dc
Disable SPIRAM bankswitch on esp32
...
We don't use this facility, which was reserving the last 256kiB of
psram.
2022-07-13 10:56:58 -05:00
Jeff Epler
953f44b46e
Fix spiram limit calculation on esp32
...
esp32 places the psram start at SOC_EXTRAM_DATA_LOW and it can extend
up to SOC_EXTRAM_DATA_SIZE. This is different than esp32-s2 and later,
which place the end at EXTRAM_DATA_HIGH and the limitation of
SOC_EXTRAM_DATA_SIZE was not previously identified as important.
Additionally, the esp32 has a reserved area within himem which was
not being accounted for.
With this change, the Feather ESP32 V2 feather can be used via thonny,
and the other "quick memory corruption tests" I was performing
also all succeed instead of failing.
Before this change, the incorrect address being used for spiram was
0x3fa00000..0x3fc00000 (2MiB). Now, it's 0x3f800000..0x3f9c0000 (1.75MiB)
due to the reserved area and the changed start address.
This is intended to be a no-effect change for other espressif chips besides
original esp32.
2022-07-13 10:52:15 -05:00
Jeff Epler
afbaa2eb6c
decode_backtrace: Show even more information
...
addr2line can show information about how functions were inlined,
including function names
Typical new output:
```
0x400dec57: mp_obj_get_type at /home/jepler/src/circuitpython/ports/espressif/../../py/obj.c:68
(inlined by) mp_obj_print_helper at /home/jepler/src/circuitpython/ports/espressif/../../py/obj.c:133
(inlined by) mp_obj_print_helper at /home/jepler/src/circuitpython/ports/espressif/../../py/obj.c:114
0x400e1a25: fun_builtin_1_call at /home/jepler/src/circuitpython/ports/espressif/../../py/objfun.c:75
0x400dd016: mp_call_function_n_kw at /home/jepler/src/circuitpython/ports/espressif/../../py/runtime.c:665
0x400eac99: mp_execute_bytecode at /home/jepler/src/circuitpython/ports/espressif/../../py/vm.c:936
0x400e1ae9: fun_bc_call at /home/jepler/src/circuitpython/ports/espressif/../../py/objfun.c:297 (discriminator 4)
0x400dd016: mp_call_function_n_kw at /home/jepler/src/circuitpython/ports/espressif/../../py/runtime.c:665
0x400dd03a: mp_call_function_0 at /home/jepler/src/circuitpython/ports/espressif/../../py/runtime.c:638
0x40117c03: parse_compile_execute at /home/jepler/src/circuitpython/ports/espressif/../../shared/runtime/pyexec.c:146
0x4011800d: pyexec_friendly_repl at /home/jepler/src/circuitpython/ports/espressif/../../shared/runtime/pyexec.c:734
0x400eeded: run_repl at /home/jepler/src/circuitpython/ports/espressif/../../main.c:823
(inlined by) main at /home/jepler/src/circuitpython/ports/espressif/../../main.c:922
0x400ef5e3: app_main at /home/jepler/src/circuitpython/ports/espressif/supervisor/port.c:410
0x401bb461: main_task at /home/jepler/src/circuitpython/ports/espressif/build-adafruit_feather_esp32_v2/esp-idf/../../esp-idf/components/freertos/port/port_common.c:141
```
2022-07-12 16:28:33 -05:00
Scott Shawcroft
9d5b04ebc4
Merge pull request #6577 from NathanY3G/uf2-family-id-for-stm32f405
...
stm: Make family IDs consistent with TinyUF2
2022-07-12 13:38:40 -07:00
Scott Shawcroft
23bbb19138
Merge remote-tracking branch 'adafruit/main' into websocket_serial
2022-07-12 13:15:38 -07:00
Scott Shawcroft
d9f6e99942
Fix RP2040 UART
...
It couldn't receive more than 32 bytes in while checking in_waiting
because in_waiting didn't turn interrupts back on correctly.
Fixes #6579
2022-07-11 13:36:44 -07:00
Scott Shawcroft
d8447de0b0
Merge pull request #6578 from xuhow/picoed_led_status
...
Picoed led status
2022-07-11 13:23:02 -07:00
Scott Shawcroft
c56f363a23
Merge pull request #6572 from todbot/wifi-tx-power-float
...
Fix #6559
2022-07-11 13:08:11 -07:00
Scott Shawcroft
e7703e89c9
Merge pull request #6567 from jepler/update-ulab-509
...
update ulab to 5.0.9
2022-07-11 13:05:41 -07:00
Melissa LeBlanc-Williams
08b4a64bd2
Update the PID
2022-07-11 08:39:10 -07:00
Xu Hao
be3482ff05
Set MICROPY_HW_LED_STATUS pin to the elecfreaks_picoed
2022-07-11 16:51:06 +08:00
Nathan Young
f22f4f896a
stm: Make family IDs consistent with TinyUF2
...
This should allow UF2 images for STM32F405 boards to be flashed by
TinyUF2.
2022-07-10 21:34:07 +02:00
Tod Kurt
a658007673
Update ports/espressif/common-hal/wifi/Radio.c
...
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-07-09 22:17:26 -07:00
Tod Kurt
22e061ba35
Update ports/espressif/common-hal/wifi/Radio.c
...
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-07-09 22:17:18 -07:00
Tod Kurt
98692150ac
Update ports/espressif/common-hal/wifi/Radio.c
...
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-07-09 22:17:12 -07:00
Tod Kurt
f464ec3047
Update ports/espressif/common-hal/wifi/Radio.c
...
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-07-09 22:17:02 -07:00
Dan Halbert
9d77a36fbf
update samd-peripherals submodule
2022-07-08 22:47:36 -04:00
Melissa LeBlanc-Williams
bc14b7ad47
Fix the display on the esp box lite
2022-07-08 15:40:59 -07:00
Dan Halbert
2c7ad7a39f
make translate and pre-commit formatting fixes
2022-07-08 16:53:53 -04:00
Melissa LeBlanc-Williams
3c093713dc
Merge branch 'esp_box_lite' of https://github.com/tannewt/circuitpython into esp_box_lite
2022-07-08 13:46:14 -07:00
Dan Halbert
c316b950c7
merge from adafruit/main
2022-07-08 15:42:19 -04:00
Dan Halbert
d869b441f4
further ESP32 sdkconfig fixes; add CIRCUITPY_STATUS_BAR
2022-07-08 15:27:00 -04:00
Dan Halbert
76e32dcf93
remove need for CIRCUITPY_ESP_PSRAM
2022-07-08 14:54:55 -04:00
Dan Halbert
afbf4de071
Uncomment or remove debugging changes
2022-07-08 12:53:25 -04:00
Dan Halbert
c3cd32e773
CPU freq to 240 MHz, redo sdkconfigs
2022-07-08 10:50:00 -04:00
Dan Halbert
75208573f4
tweak sdkconfig; add temp logging to mp_make_function_from_raw_code
2022-07-08 09:53:29 -04:00
Tod Kurt
d3e1d1b104
Fix #6559
2022-07-07 19:42:11 -07:00
Jeff Epler
ab3e786611
disable additional module on matrixportal_m4
2022-07-07 20:00:12 -05:00
Jeff Epler
c4dfd8e30a
Fix default BOARD setting & messages
...
It's important that these lines NOT be indented with tabs, because
that provokes Make to say that commands appear before a target.
2022-07-07 17:17:15 -05:00
Jeff Epler
601eb91b89
Disable gifio on matrixportal to reclaim flash space
2022-07-07 17:00:00 -05:00
Dan Halbert
4e88d795e1
Thonny causing crash emitglue.c:199:
2022-07-06 23:01:19 -04:00
Dan Halbert
4c20b3cb63
Merge pull request #6564 from adafruit/7.3.x
...
7.3.x
2022-07-06 15:25:24 -04:00
Scott Shawcroft
d83720f659
Tweak display init
2022-07-05 17:02:52 -07:00
Scott Shawcroft
cd77517b2f
Add build for ESP32-S3 Box Lite
2022-07-05 16:35:42 -07:00
Scott Shawcroft
18d7165e0f
Merge pull request #6550 from crackmonkey/rp2040-wait-pin-bounds
...
issue adafruit#6538 loose bounds checking on WAIT PIO instruction
2022-07-05 12:56:14 -07:00
Nick Lopez
dce9396fe3
issue adafruit#6538 loose bounds checking on WAIT PIO instruction
2022-07-02 14:32:20 -07:00
Scott Shawcroft
07b2697ae3
WIP websocket to serial
2022-07-01 16:57:10 -07:00
Patrick
c3cf9ba9ce
remove wifi max from sdkconfig
2022-07-01 14:50:47 -07:00
Patrick
aaeda97818
update PHY section, correct name
2022-07-01 14:50:47 -07:00
Patrick
aa53d36934
setting CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER to 8.5
2022-07-01 14:50:47 -07:00
Patrick
7e367eeb58
Update "D" mappings
2022-07-01 14:50:47 -07:00
Patrick
d4b26daf1b
correct creator and creation IDs
2022-07-01 14:50:47 -07:00
Patrick
6c7faf0eba
Change USB VID & PID to Creator and Creation IDs
2022-07-01 14:50:47 -07:00
Patrick
3253ae2503
tested and corrected several pins
2022-07-01 14:50:47 -07:00
Patrick
f10fa566aa
REPL works. Based on QTPYC3.
2022-07-01 14:50:47 -07:00
Patrick
a3070f6c2a
Changes to Pin Mappings
2022-07-01 14:50:46 -07:00
Patrick
b37236f83f
C3 does not have PSRAM
2022-07-01 14:50:46 -07:00
Patrick
af629ab180
Add assumed PID value
2022-07-01 14:50:46 -07:00
Patrick
c1e6003d26
remove comment that breaks {ID Checker
2022-07-01 14:50:46 -07:00
Patrick
9bae8549c5
add UART RX TX to mpconfigboard
2022-07-01 14:50:46 -07:00
Patrick
6763b7b968
add A5
2022-07-01 14:50:46 -07:00
Patrick
bcf27e146b
fix build break and add io 20/21
2022-07-01 14:50:46 -07:00
Patrick
dc1c86738a
Initial pin mapping pass
2022-07-01 14:50:46 -07:00
Patrick
fd4695d0f2
Gettting started with pin mapping.
2022-07-01 14:50:46 -07:00
Dan Halbert
8814ee03f1
Merge pull request #6542 from todbot/wifi-tx-power
...
Add wifi.radio.tx_power
2022-07-01 14:09:08 -04:00
Scott Shawcroft
7589e53fea
WIP websocket accept and hashlib
2022-07-01 10:18:33 -07:00
Dan Halbert
8bb369cac5
refactor debug UART to console UART; get working on ESP32
2022-06-30 23:16:46 -04:00
Dan Halbert
187f156ac7
Merge pull request #6534 from tannewt/esp_wdt_safe_mode
...
Safe mode when ESP interrupt watchdog fires
2022-06-30 22:56:35 -04:00
Dan Halbert
63873e2c14
Merge pull request #6528 from tannewt/cp_webserver
...
Add web workflow to ESP boards
2022-06-30 22:53:47 -04:00
Tod Kurt
698d563dcf
adust wifi.radio.tx_power to be x4 (in db) as mentioned in #6540
2022-06-30 15:33:03 -07:00
Tod Kurt
2a563cc8ba
first cut at wifi.radio.tx_power
2022-06-30 15:10:16 -07:00
Scott Shawcroft
71358a4a63
Merge pull request #6526 from xuhow/elecfreaks_picoed
...
Add some frozen libraries to elecfreaks_picoed
2022-06-30 11:53:59 -07:00
Dan Halbert
b0efd130c9
ESP32 REPL working through debug UART
2022-06-29 23:19:36 -04:00
Scott Shawcroft
3be3e89d82
Merge branch 'main' into cp_webserver
2022-06-29 14:01:32 -07:00
Dan Halbert
c3a149c14a
Merge pull request #6533 from tannewt/fix_connect_crash
...
Fix auto-wifi created crash
2022-06-29 16:51:33 -04:00
Scott Shawcroft
d42c811fb9
Safe mode when ESP interrupt watchdog fires
...
This makes us enter safe mode when sleep on the S3 fails. The
task watchdog is used for the user watchdog.
2022-06-29 12:31:18 -07:00
Scott Shawcroft
8dc8265275
Fix auto-wifi created crash
...
The wifi event_handler runs on the other core so we need to be
careful when calling into CP APIs.
Fixes #6503
2022-06-29 11:53:10 -07:00
Scott Shawcroft
1f065a313c
Update with startup fix instead of revert
2022-06-29 11:12:29 -07:00
Xu Hao
1599844b82
Add some frozen libraries to elecfreaks_picoed
2022-06-29 15:03:29 +08:00
Dan Halbert
780c4963cb
wip; change never-ever reset pin mechanism
2022-06-28 23:06:49 -04:00
Scott Shawcroft
a8bb3eb557
Update to newer 4.4 branch
2022-06-28 15:38:55 -07:00
Dan Halbert
ca64950503
wip fixes
2022-06-28 18:32:08 -04:00
Dan Halbert
131d70cebd
restore traceback to matrixportal build
2022-06-28 16:10:55 -04:00
Scott Shawcroft
41039445c9
Clean up and add docs
2022-06-27 13:39:09 -07:00
Scott Shawcroft
7acc5ebeb9
Add logo for going to home. Fix origin check
2022-06-27 13:39:09 -07:00
Scott Shawcroft
3cd05291d0
Static files + welcome page
2022-06-27 13:39:09 -07:00
Scott Shawcroft
7543dd9af0
CORS works and autoreload too
2022-06-27 13:39:08 -07:00
Scott Shawcroft
92593aa7a1
Fix bind, remove hard coded ip
2022-06-27 13:34:13 -07:00
Scott Shawcroft
4f0a7aedfd
WIP adding devices.json and auth
2022-06-27 13:34:13 -07:00
Scott Shawcroft
32478345f8
more tweaks
2022-06-27 13:34:13 -07:00
Scott Shawcroft
0882cbf823
web server kinda works
2022-06-27 13:34:13 -07:00
Scott Shawcroft
61d0f7947b
WIP doesn't flush response before closing
2022-06-27 13:34:13 -07:00
Scott Shawcroft
301f3e0456
Start of web server
2022-06-27 13:34:13 -07:00
Dan Halbert
55784c93de
wip; compiles
2022-06-26 21:22:22 -04:00
Dan Halbert
02069eb0b5
wip
2022-06-23 15:59:06 -04:00
Scott Shawcroft
a055113ed5
Merge pull request #6520 from dhalbert/7.3.1-to-main
...
Merge 7.3.1 changes to main
2022-06-23 11:15:40 -07:00
Dan Halbert
b0219f9b5b
Merge pull request #6518 from xorbit/rp2040-shim
...
Add board Silicognition LLC RP2040-Shim
2022-06-23 11:04:40 -04:00
Dan Halbert
feb1d903f7
merge 7.3.1 to main
2022-06-23 09:07:49 -04:00
Scott Shawcroft
897297bba4
Merge pull request #6516 from Neradoc/setup-default-ports-hiibot-iots2
...
Implement default busses to IOTS2
2022-06-22 09:46:08 -07:00
Patrick Van Oosterwijck
0b80c62400
Merge branch 'adafruit:main' into rp2040-shim
2022-06-22 11:40:02 -05:00
Scott Shawcroft
25206a8aff
Merge pull request #6513 from dhalbert/7.3.x-6495-backport-ble-disconnect-check
...
Test for a BLE disconnect while reading
2022-06-22 09:38:24 -07:00
Neradoc
ba72287db4
Implement default ports to IOTS2
2022-06-22 07:24:27 +02:00
root
e8023f33a9
Test for a BLE disconnect while reading
2022-06-21 19:59:23 -04:00
root
1ad3daf75b
Fix declaration of print_wakeup_cause
2022-06-21 19:56:15 -04:00
root
803c18c71f
Uncommented call to print_wakeup_cause
2022-06-21 19:56:15 -04:00
root
d3903bf2f4
Fix for Issue #6478
2022-06-21 19:56:15 -04:00
Scott Shawcroft
562c73bcc7
Merge pull request #6458 from blues/swan_r5_3v3_enable
...
fix(swan_r5): 3v3 was enabled but then immediately reset.
2022-06-21 13:56:58 -07:00
Matthew McGowan
019a160983
exposes DigitalInOutPin
instances on the board, initialized and reserved.
2022-06-20 14:46:58 -07:00
Neradoc
7f968f18c0
move frozen adafruit_circuitplayground to express subdirectory
2022-06-20 16:55:10 -04:00
Scott Shawcroft
c27ecc9bb1
Merge pull request #6495 from DavePutz/issue_6451
...
Test for a BLE disconnect while reading
2022-06-17 09:37:07 -07:00
Dan Halbert
f0bf14094b
Update samd-peripherals to fix SPI DMA problem
2022-06-17 10:59:59 -04:00
Dan Halbert
f590c7cc9a
Merge pull request #6485 from electrolama/add-board-electrolama-minik
...
Add custom board: Electrolama minik (RP2040 module)
2022-06-17 09:01:04 -04:00
root
cdc7140318
Test for a BLE disconnect while reading
2022-06-16 14:56:18 -05:00
Scott Shawcroft
894cea217d
Merge pull request #6486 from DavePutz/issue_6478
...
Fix for Issue #6478
2022-06-15 09:43:09 -07:00
root
8668dee3df
Fix declaration of print_wakeup_cause
2022-06-14 20:51:07 -05:00
root
669e45497c
Uncommented call to print_wakeup_cause
2022-06-14 13:27:15 -05:00
Patrick Van Oosterwijck
ad56a16c2d
Add board Silicognition LLC RP2040-Shim
2022-06-14 11:28:41 -06:00
root
015e95807a
Fix for Issue #6478
2022-06-14 12:14:05 -05:00
Omer Kilic
9fbad229c0
Add custom board: Electrolama minik (RP2040)
2022-06-14 15:51:10 +01:00
Scott Shawcroft
0c418e98b1
Merge remote-tracking branch 'adafruit/main' into auto_wifi
2022-06-13 15:44:43 -07:00
Scott Shawcroft
dc794f91c0
Speed up auto-wifi with wrong password
...
This adds basic timeout support to connect by preventing subsequent
retries if over time. The first connect may still take more than
the timeout.
2022-06-13 15:38:19 -07:00
Scott Shawcroft
1a3d2a5b5e
Shrink nrf52833 builds
...
Make them CIRCUITPY_FULL_BUILD = 0 and rework the boards to have
the same modules enabled (ish.)
Also make ZLIB require FULL_BUILD and disable advanced `micropython`
module APIs by default on all builds.
2022-06-13 15:36:15 -07:00
Scott Shawcroft
b191075ab8
Better length checks
2022-06-13 09:18:42 -07:00
Scott Shawcroft
ab346a27fc
Merge pull request #6468 from blues/stm32_rtc
...
feat(swan_r5): adds a basic STM32 RTC implementation.
2022-06-13 09:00:09 -07:00
Scott Shawcroft
39b8c2c94e
Merge pull request #6453 from KurtE/ESP32_UART
...
ESP32 USE uart_param_config
2022-06-13 08:56:32 -07:00
Matthew McGowan
beafbc7c60
enable RTC for all STM32 devices
2022-06-10 17:37:33 -07:00
Matthew McGowan
6ee8e00936
fix(stm32): correct include path after translation header was moved
2022-06-10 17:37:33 -07:00
Matthew McGowan
a889638468
feat(swan_r5): adds a basic RTC implementation.
2022-06-10 17:37:32 -07:00
Dan Halbert
6e090c96a5
squeeze some specialized builds
2022-06-10 16:24:52 -04:00
Scott Shawcroft
6446010753
Wi-Fi autoconnect and title bar status
...
This adds support for CIRCUITPY_WIFI_SSID and CIRCUITPY_WIFI_PASSWORD
in `/.env`. When both are defined, CircuitPython will attempt to
connect to the network even when user code isn't running. If the
user code attempts to a network with the same SSID, it will return
immediately. Connecting to another SSID will disconnect from the
auto-connected network. If the user code initiates the connection,
then it will be shutdown after user code exits. (Should match <8
behavior.)
This PR also reworks the default displayio terminal. It now supports
a title bar TileGrid in addition to the (newly renamed) scroll area.
The default title bar is the top row of the display and is positioned
to the right of the Blinka logo when it is enabled. The scroll area
is now below the Blinka logo.
The Wi-Fi auto-connect code now uses the title bar to show its
state including the IP address when connected. It does this through
the "standard" OSC control sequence `ESC ] 0 ; <s> ESC \` where <s>
is the title bar string. This is commonly supported by terminals
so it should work over USB and UART as well.
Related to #6174
2022-06-09 14:55:54 -07:00
Pontus Oldberg
42f05a32a3
Merge branch 'adafruit:main' into main
2022-06-09 08:42:42 +02:00
Scott Shawcroft
9c20eb58e9
Merge pull request #6450 from mwisslead/rp2040_pulsein_common_hal_construct
...
Rp2040 pulsein improvements
2022-06-08 08:15:29 -07:00
Pontus Oldberg
5c13f844c7
Fixed pre-commit trailing whitespace
2022-06-08 16:43:49 +02:00
Pontus Oldberg
91000ea294
Adds support for Challenger RP2040 LoRa boards
2022-06-08 16:38:21 +02:00
Jeff Epler
0a38088075
Fix dependencies for translate.c again
2022-06-07 07:35:54 +02:00
Scott Shawcroft
2baf476530
Merge pull request #6463 from adafruit/7.3.x
...
Catch main up to 7.3.x
2022-06-06 11:58:05 -07:00
Scott Shawcroft
6b09f99eaa
Add back ULAB
2022-06-06 10:35:37 -07:00
Nathan Young
2f0d82a50b
Disable board.SPI() for Challenger NB RP2040 WiFi
...
This was done as a result of an issue with the SPI pin mappings.
Please refer to the following for additional information: https://ilabs.se/challenger-rp2040-wifi-spi-bug
2022-06-06 09:52:23 +02:00
Dan Halbert
80ae14202a
Merge pull request #6416 from FoamyGuy/display_brightness_pwm
...
display brightness pwm 500hz frequency
2022-06-05 23:52:42 -04:00
Dan Halbert
ac282b2a73
Merge pull request #6440 from tannewt/translate_header
...
Switch translate() to the header file
2022-06-05 23:50:47 -04:00
Dan Halbert
a61c4c1af9
Merge pull request #6411 from fabaff/weact-studio-pico
...
Add support for WeAct Studio Pico
2022-06-05 19:17:56 -04:00
Fabian Affolter
7a073317f7
Update PID (0x102E)
2022-06-06 01:03:02 +02:00
Dan Halbert
c149bbdcfc
Merge pull request #6447 from SimonVail/main
...
Add files via upload
2022-06-05 17:11:44 -04:00
Dan Halbert
db6d506b15
Merge pull request #6456 from dhalbert/adafruit_feather_esp32s3_4mbflash_2mbpsram
...
add adafruit_feather_esp32s3_4mbflash_2mbpsram
2022-06-05 12:31:20 -04:00
foamyguy
67de89861e
new argument for feather s3 tft display init
2022-06-04 11:36:45 -05:00
foamyguy
260994d16e
Merge branch 'main' into display_brightness_pwm
2022-06-04 11:32:15 -05:00
foamyguy
cbff9dd8e3
add new argument for all boards with built-in display
2022-06-04 11:08:20 -05:00
Scott Shawcroft
be6936c8ec
Shrink MatrixPortal M4 build
2022-06-03 18:57:01 -07:00
Dan Halbert
d1cdb72020
Update ports/espressif/boards/adafruit_feather_esp32s3_4mbflash_2mbpsram/mpconfigboard.h
...
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2022-06-03 18:21:20 -04:00
Scott Shawcroft
be67067809
Merge remote-tracking branch 'adafruit/main' into translate_header
2022-06-03 15:18:18 -07:00
Matthew McGowan
78e4b9446b
chore(swan_r5): pre-commit formatting
2022-06-03 15:12:41 -07:00
Scott Shawcroft
a4a744bccc
Merge pull request #6441 from gamblor21/static_ip
...
Static IP address for WiFi
2022-06-03 14:56:08 -07:00
Matthew McGowan
113b070e77
fix(swan_r5): 3v3 was enabled but then immediately reset. Moved initialization to reset_board
which happens after reset_all_pins
.
2022-06-03 14:19:47 -07:00
Dan Halbert
fdb133bbe8
add adafruit_feather_esp32s3_4mbflash_2mbpsram
2022-06-02 21:09:37 -04:00
Scott Shawcroft
0d257fc4f8
Fix mpy-cross and unix builds
2022-06-02 12:30:19 -07:00
Dan Halbert
27fb96e6b0
Remove trailing whitespace
2022-06-01 21:35:01 -04:00
Dan Halbert
3ff7ed75c6
Merge pull request #6346 from Neradoc/cpx-frozen-lite
...
Move frozen adafruit_circuitplayground to CPX subdirectory
2022-06-01 21:15:46 -04:00
gamblor21
40e890323b
Add DNS optional to set IP
2022-06-01 20:13:51 -05:00
KurtE
14ab3c7375
ESP32 USE uart_param_config
...
Use this function instead of several individual configuration functions
to configure such things as Baud rate, transfer size, stop bits,
parity...
This function also resets both the RX and TX Hardware Fifo
reset functions are called to setup the hardware.
2022-06-01 17:09:44 -07:00
Scott Shawcroft
09c61efcff
Split partition from LTO enable
2022-06-01 11:12:14 -07:00
Scott Shawcroft
6d3698848c
Fix PDMIn.c formatting
2022-06-01 11:04:33 -07:00
gamblor21
4f6d4e2284
Doc fix and add set for DNS
2022-05-31 22:13:18 -05:00
Scott Shawcroft
7fc0aa5791
Fix windows and two samd builds
2022-05-31 14:48:41 -07:00
Scott Shawcroft
4d776339ad
Separate translate object control from LTO
2022-05-31 12:42:59 -07:00
SimonVail
b2344bcde2
Update pins.c
2022-05-30 11:52:29 -04:00
SimonVail
f36dbb386b
Add files via upload
2022-05-30 11:47:51 -04:00
EmergReanimator
e8dd5d35d6
# WARNING: head commit changed in the meantime
...
Fixed STM SPI frequency settings.
Corrected default frequency settings in common_hal_busio_spi_construct.
Fixed common_hal_busio_spi_get_frequency.
2022-05-29 16:13:38 +02:00
foamyguy
ffc451b338
argument for backlight_pwm_frequency and use it in pyportal titano build
2022-05-28 12:01:05 -05:00
Scott Shawcroft
3cc46c74b9
Fix compiles
2022-05-27 15:39:55 -07:00
gamblor21
90fe20a153
Adding manual IP address set
2022-05-27 15:33:54 -05:00
Scott Shawcroft
9d10a3da66
Conditionalize LTO
2022-05-27 12:59:54 -07:00
Scott Shawcroft
c676253834
Switch translate() to the header file
...
This allows the compile stage to optimize most of the translate()
function away and saves a ton of space (~40k on ESP). *However*, it
requires us to wait for the qstr output before we compile the rest
of our .o files. (Only qstr.o used to wait.)
This isn't as good as the current setup with LTO though. Trinket M0
loses <1k with this setup.
So, we should probably conditionalize this along with LTO.
2022-05-27 10:33:53 -07:00
Scott Shawcroft
dc5565a5ce
Merge pull request #6436 from dhalbert/judicious-lto
...
LTO: Use -flto and -flto-partition only as needed
2022-05-27 10:31:06 -07:00
Dan Halbert
947f564672
tune LTO on nrf
2022-05-26 22:16:41 -04:00
Scott Shawcroft
67e9fb13bc
Merge pull request #6437 from blues/7.3.x
...
swan_r5 improvements
2022-05-26 15:20:22 -07:00
Dan Halbert
ca085150ee
disable traceback on samd21; re-enable onewireio on Metro m0
2022-05-26 15:33:04 -04:00
Dan Halbert
95fc7e4713
harmless change to force all ports to build
2022-05-26 11:52:58 -04:00
Dan Halbert
d74193c298
Use -flto and -flto-partition only as needed
2022-05-26 11:36:41 -04:00
George White
8539d6518e
flip CTS and RTS pinmux to match RX and TX
2022-05-26 00:06:00 +00:00
George White
99b23b96d9
fix comment typo and mention datasheet
2022-05-26 00:03:46 +00:00
George White
fb3077ccc2
Implement UART hardware flow control on SAMD chips
2022-05-25 21:34:06 +00:00
Matthew McGowan
321163da1a
feat(swan_r5): blink the LED on startup. set VUSB_SELECT and DISCHARGE to floating to avoid any potential issues with them being outputs.
2022-05-25 14:22:19 -07:00
Matthew McGowan
65a5ad09ab
feat(swan_r5): define an ext
attribute on the board, which contains attributes for the extended set of castellated pins
2022-05-25 14:21:03 -07:00
Matthew McGowan
5bbaa3b732
feat(swan_r5): the upper 1MB of flash (bank 2) is made available for the filesystem
2022-05-25 14:19:35 -07:00
Matthew McGowan
b607631ae1
feat(swan_r5): UF2 support, with UF2 family IDs assigned to stm32 chipsets.
2022-05-25 14:18:37 -07:00
Dan Halbert
38f91539dc
Merge pull request #6432 from CytronTechnologies/add-maker-zero-samd21
...
Add new board: Cytron Maker Zero SAMD21
2022-05-25 13:58:33 -04:00
Dan Halbert
1fb210bd40
Merge pull request #5491 from pypewpew/remove-gamepadshift
...
Remove gamepadshift module
2022-05-25 13:58:06 -04:00
Luqmanul Hakim Zulkifli
aef5bc40fb
Deleted white spaces
2022-05-26 00:13:27 +08:00
Dan Halbert
b143314b22
Espressif: fix allocation of multiple Incremental Encoders
2022-05-24 22:37:24 -04:00
Luqmanul Hakim Zulkifli
9ed71f0c09
Add Cytron Maker Zero SAMD21
2022-05-25 10:09:30 +08:00
Luqmanul Hakim Zulkifli
0b99967839
Add Cytron Maker Zero SAMD21
2022-05-25 10:08:58 +08:00
Luqmanul Hakim Zulkifli
46f4fcc42f
Add Cytron Maker Zero SAMD21
2022-05-25 10:08:17 +08:00
Luqmanul Hakim Zulkifli
9385f793dc
Add Cytron Maker Zero SAMD21
2022-05-25 10:07:33 +08:00
Luqmanul Hakim Zulkifli
6fa552e257
Delete board.c
2022-05-25 10:04:06 +08:00
Luqmanul Hakim Zulkifli
5453b331f7
Delete mpconfigboard.h
2022-05-25 10:03:53 +08:00
Luqmanul Hakim Zulkifli
8806f5b5d8
Delete mpconfigboard.mk
2022-05-25 10:03:45 +08:00
Luqmanul Hakim Zulkifli
9649d80ea3
Delete pins.c
2022-05-25 10:03:34 +08:00
Luqmanul Hakim Zulkifli
4e467b7f34
Add Cytron Maker Zero SAMD21
2022-05-25 09:46:20 +08:00
Radomir Dopieralski
c0152e7dab
Remove gamepadshift module
...
Everything should be using the keypad module instead.
Note: there are several boards that still had gamepadshift enabled. I
did not contact their authors to make sure they already switched to
keypad in their code and documentation. We should probably wait with
merging this for their go ahead.
2022-05-25 00:48:55 +02:00
Dan Halbert
791064a934
Merge pull request #6427 from dhalbert/8.0.0-onewireio
...
Remove busio.OneWire and bitbangio.OneWire in favor of onewireio.OneWire
2022-05-24 15:32:33 -04:00
Dan Halbert
ecd30d2338
Merge pull request #6428 from dhalbert/8.0.0-restore-rainbowio
...
restore rainbowio to small builds
2022-05-24 15:32:08 -04:00
Dan Halbert
8665e85ea6
Merge pull request #6424 from ladyada/main
...
add esp32s3 tft
2022-05-24 15:31:48 -04:00
Dan Halbert
99d7d0d8bb
Disable ulab for ESP32-S3 TFT
2022-05-24 14:59:34 -04:00
Scott Shawcroft
0ea72d61e0
Merge pull request #6425 from KurtE/teensy_retain_fs
...
Teensy Builds retain Filesystem
2022-05-24 11:03:47 -07:00
Dan Halbert
335c93c044
restore rainbowio to small builds
2022-05-24 12:34:08 -04:00
Dan Halbert
74c92ffe9e
Remove busio.OneWire and bitbangio.OneWire
2022-05-24 12:26:33 -04:00
Paint Your Dragon
92fa02effa
Change 12- to 16-bit scaling to match other ports
...
Result is identical, implementation just resembles other ports instead of being all 1337 about it.
2022-05-24 08:49:05 -07:00
Paint Your Dragon
c3f58193ca
Correctly scale analog reading per issue #4794
2022-05-24 08:46:39 -07:00
lady ada
e22de975b3
try just bitbangio remove
2022-05-24 11:46:03 -04:00
Paint Your Dragon
5ef1f2dd5a
Correctly scale analog reading per issue #4794
2022-05-24 08:45:14 -07:00
Paint Your Dragon
44b31b098e
Correctly scale analog reading per issue #4794
2022-05-24 08:44:09 -07:00
Paint Your Dragon
e9b9f0b13f
Correctly scale analog reading per issue #4794
2022-05-24 08:42:00 -07:00
Paint Your Dragon
eefba16644
Correctly scale analog reading per issue #4794
2022-05-24 08:40:51 -07:00
lady ada
9439ce04bd
try to remove some space?
2022-05-24 11:28:55 -04:00
KurtE
d47662c448
Teensy Builds retain Filesystem
...
Changed a few things in the link step that satisfies the teensy
loader apps, both the teensy.exe as well as the teensy_loader_cli
such that when you program the board again it should retain the
file sytem that is stored in the upper area of the Flash
2022-05-24 07:06:16 -07:00
lady ada
bb4beb3fab
add esp32s3 tft
2022-05-23 23:57:35 -04:00
Neradoc
3179db4ef4
move frozen adafruit_circuitplayground to express subdirectory
2022-05-23 22:11:26 +02:00
Dan Halbert
64df933a83
Merge pull request #6422 from dahanzimin/main
...
Repair mixgo_ce frozen lib to frozen/
2022-05-23 15:00:42 -04:00
arturo182
0f1973b037
Merge pull request #6418 from solderparty/stamp_round_board
...
Add a Round Carrier board file to the RP2040 Stamp build
2022-05-23 19:42:56 +02:00
Scott Shawcroft
943ab120ad
Merge pull request #6414 from dhalbert/pico-sdk-1.3.1
...
update pico-sdk to 1.3.1
2022-05-23 07:31:05 -07:00
dahanzimin
6454c5895b
Repair import and stock in under the frozen / directory
2022-05-23 11:19:11 +08:00
Michael Wisslead
2b0518233b
rp2040 PulseIn improvements
2022-05-23 00:45:06 +00:00
Michael Wisslead
893fc66d16
Use common_hal_rp2pio_statemachine_construct for PulseIn
2022-05-23 00:45:06 +00:00
arturo182
d2d3b27822
Add a Round Carrier board file to the RP2040 Stamp build
2022-05-22 15:52:25 +02:00
Dan Halbert
6f4f7e089e
Merge pull request #6383 from dahanzimin/main
...
Add MixGo CE board
2022-05-22 08:47:53 -04:00
大汉子民
e5a5ffb9b0
Update board.c
2022-05-22 11:37:39 +08:00
dahanzimin
37e376631a
Fix format issues
2022-05-22 11:22:58 +08:00
dahanzimin
b62799a798
Add mixgo_ ce_ Serial function, repair sdkconfig
2022-05-22 10:42:56 +08:00
Dan Halbert
9c643aa907
Merge branch '7.3.x' into merge-7.3.0-rc.1-to-main
2022-05-21 12:57:46 -04:00
Dan Halbert
338e14d9d4
shrink arduino_mkr1300
2022-05-21 10:21:59 -04:00
dahanzimin
3e47d24fb9
Update submodule and create tag
2022-05-21 10:52:14 +08:00
Dan Halbert
e852b28bb2
update pico-sdk to 1.3.1
2022-05-20 17:52:35 -04:00
Dan Halbert
309dab4c75
merge 7.3.0-rc.1 changes to main
2022-05-20 15:37:56 -04:00
Dan Halbert
f63b26c534
address jepler's comments and further squeezes
2022-05-20 10:10:55 -04:00
Dan Halbert
3c20b5f95f
use validator in mimx UART constructor
2022-05-20 00:04:49 -04:00
大汉子民
4356a12504
Update mpconfigboard.mk
2022-05-20 10:55:23 +08:00
大汉子民
73f2621cda
Repair No newline at end of file
2022-05-20 10:38:14 +08:00
大汉子民
525262cd9a
Merge branch 'main' into main
2022-05-20 10:04:02 +08:00
dahanzimin
e3896be345
Modify mixgoce_ Lib is a submodule
2022-05-20 09:46:55 +08:00
Fabian Affolter
f1f9ba2371
Add support for WeAct Studio Pico
2022-05-19 23:51:25 +02:00
Fabian Affolter
d875eb2ff4
Add support for VCC-GND Studio YD-RP2040
2022-05-19 22:57:43 +02:00
Dan Halbert
a01dec1df9
message consolidation and more use of validators
2022-05-19 15:38:37 -04:00
Neradoc
8987bf18d0
Add Winbond flash substitute to boards
2022-05-16 22:39:25 +02:00
Dan Halbert
624a00ac45
shrink circuitplayground_express_displayio
2022-05-14 08:54:46 -04:00
Dan Halbert
9fb4582cc8
Merge pull request #6393 from todbot/main
...
fix SPI pin names qtpy esp32s3
2022-05-13 21:54:55 -04:00
Dan Halbert
936f5bf23e
Merge pull request #6338 from jepler/fix-display-invalid-sh1107
...
Fix display invalid sh1107
2022-05-13 20:33:43 -04:00
Tod Kurt
d2d08fc944
fix SPI pin names qtpy esp32s3
2022-05-13 16:48:13 -07:00
Dan Halbert
64ca3aa359
Merge pull request #6387 from SimonVail/main
...
Lilygo TTGO T-OI Plus ESP32C3
2022-05-13 18:31:50 -04:00
Dan Halbert
951eea7748
Merge pull request #6391 from tekktrik/doc/add-additional-builtins-docs
...
Add additional documentation for modules, builtin exceptions
2022-05-13 15:59:39 -04:00
Dan Halbert
28b14e05e3
shrink thunderpack_v12
2022-05-13 15:45:12 -04:00
SimonVail
1f0bdad083
Update ports/espressif/boards/lilygo_ttgo_t-oi-plus/mpconfigboard.mk
...
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2022-05-13 15:02:26 -04:00
Kattni
395b550fe3
Merge pull request #6389 from tannewt/add_ble_user_reset
...
Add two stage reset for BLE
2022-05-13 14:28:43 -04:00
Dan Halbert
9028bf213d
Merge pull request #6331 from pypewpew/pewpew_lcd
...
Add new board pewpew_lcd
2022-05-13 12:33:08 -04:00
Alec Delaney
289fdc1241
Added link to library and guide for rp2pio
2022-05-13 11:15:26 -04:00
Scott Shawcroft
3e85cfe26b
Fix ESP and HCI build
2022-05-12 15:23:26 -07:00
SimonVail
ef4d298ca8
Update pins.c
2022-05-12 17:49:48 -04:00
SimonVail
0d92b0a155
Update board.c
2022-05-12 17:46:49 -04:00
SimonVail
b1935975a2
Update board.c
2022-05-12 17:27:48 -04:00
Scott Shawcroft
269d51d023
Add two stage reset for BLE
...
This lets the BLE stack run through the wait period after a VM run
when it may be waiting for more writes due to an auto-reload.
User BLE functionality will have their events stopped. Scanning and
advertising is also stopped.
2022-05-12 13:20:44 -07:00
SimonVail
c5db1280ee
Update mpconfigboard.mk
2022-05-12 13:21:58 -04:00
SimonVail
6bdd128fb3
Add files via upload
2022-05-12 13:18:39 -04:00
SimonVail
f69a293795
Create sdkconfig
2022-05-12 13:18:17 -04:00
SimonVail
a4f505dcab
Delete ports/espressif/boards/Lilygo-T-oi-Plus-ESP32C3 directory
2022-05-12 13:17:17 -04:00
SimonVail
0b586e9c94
Update board.c
2022-05-12 12:43:52 -04:00
SimonVail
6fe728a9d2
Update ports/espressif/boards/Lilygo-T-oi-Plus-ESP32C3/pins.c
...
Co-authored-by: Neradoc <Neradoc@users.noreply.github.com>
2022-05-12 11:57:59 -04:00
SimonVail
6908f5a97e
Update ports/espressif/boards/Lilygo-T-oi-Plus-ESP32C3/board.c
...
Co-authored-by: Neradoc <Neradoc@users.noreply.github.com>
2022-05-12 11:57:52 -04:00
SimonVail
b6e6ee7505
Update ports/espressif/boards/Lilygo-T-oi-Plus-ESP32C3/mpconfigboard.mk
...
Co-authored-by: Neradoc <Neradoc@users.noreply.github.com>
2022-05-12 11:57:44 -04:00
SimonVail
b9ea7458ab
Add files via upload
2022-05-12 11:41:53 -04:00
SimonVail
35d78c135a
Create sdkconfig
2022-05-12 11:41:29 -04:00
SimonVail
f86ebe71b6
Delete Lilygo-T-oi-Plus-ESP32C3
2022-05-12 11:40:16 -04:00
SimonVail
0d1740ad27
Create Lilygo-T-oi-Plus-ESP32C3
2022-05-12 11:39:39 -04:00
大汉子民
d4b02e22ae
Thank you. I have applied for PID in espressif
2022-05-12 09:38:13 +08:00
Kong Wai Weng
b9c28742be
Added newline at the end of the file.
2022-05-11 15:30:45 +08:00
Kong Wai Weng
466f2a3644
Updated copyright information.
2022-05-11 15:25:32 +08:00
Kong Wai Weng
142ed2a024
Added Maker Feather AIoT S3.
2022-05-11 15:18:31 +08:00
Scott Shawcroft
9743aea7aa
Merge pull request #6334 from BigTuna94/add-rp2.65-f
...
Add new Keyboard - RP2.65-F
2022-05-10 16:52:39 -07:00
Radomir Dopieralski
e7735a3631
Add new board pewpew_lcd
2022-05-10 22:25:32 +02:00
dahanzimin
d48f961d0a
Add MixGo CE board
2022-05-10 18:56:13 +08:00
Dan Halbert
aa625f5ce4
Merge pull request #6366 from dhalbert/espressif-i2c-delay-fix
...
apply i2c delay fix from adafruit/esp-idf
2022-05-08 21:41:46 -04:00
Dan Halbert
bb46898572
Merge pull request #6361 from mwisslead/rp2040_pulsein_buffer_fix
...
Fix buffer issue for rp2040 PulseIn
2022-05-08 12:37:17 -04:00
Dan Halbert
8b026a2c38
apply i2c delay fix from adafruit/esp-idf
2022-05-08 09:49:18 -04:00
Jeff Epler
5f4f66774c
Merge pull request #6360 from jepler/statemachine-improvements
...
Statemachine improvements
2022-05-07 09:35:57 -05:00
Jeff Epler
561ed3739a
fix the docstrings
2022-05-07 07:49:16 -05:00
Dan Halbert
34427bd6ba
Update StateMachine.c
2022-05-06 22:36:24 -04:00
Michael Wisslead
b7882edd01
Fix buffer issue for rp2040 PulseIn
2022-05-07 00:57:10 +00:00
Jeff Epler
b482a732c6
StateMachine: add swap flag
...
Always use DMA if swap flag is enabled.
Improve docs a bit
2022-05-06 15:22:43 -05:00
Jeff Epler
23c0fc8354
add ability to get, clear txstall flag
...
This can be used to make sure a PIO has actually finished all data
it was schedule to receive via a 'once' background_write
2022-05-06 15:22:43 -05:00
Jeff Epler
f776749ca3
Key off len, not buf, to decide if anything to DMA
2022-05-06 15:22:43 -05:00
Jeff Epler
1a9034ff7c
rp2pio: Allow background_write(None) to terminate after complete loop
2022-05-06 15:22:42 -05:00
Dan Halbert
5edc59f070
Merge pull request #6337 from jepler/property-storage
...
Optimize flash storage of properties
2022-05-06 09:55:18 -04:00
Dan Halbert
30904a8638
Merge pull request #6354 from dhalbert/espressif-dio-fixes
...
espressif: check properly for pull values
2022-05-05 22:44:29 -04:00
Guy Dupont
02ec1cebf6
Fix pin mapping for thing plus 2040
...
GPIO 26 was mapped to GPIO 28
2022-05-05 21:11:32 -04:00
Jeff Epler
a9d929627a
minor comment update
2022-05-05 14:40:49 -05:00
Dan Halbert
0f3eb9f46e
espressif: check properly for pull values
2022-05-04 22:51:27 -04:00
Dan Halbert
03b1a0284e
Merge pull request #6352 from billvanleeuwen424/removeDuplicateInclude
...
Removed duplicate include, fixes issue #6278
2022-05-04 21:47:17 -04:00
Dan Halbert
27cbf1321c
Merge pull request #6350 from dhalbert/samd-SRC_C-conditionals
...
Compile more SAMD things conditionally
2022-05-04 21:46:26 -04:00
billvanleeuwen424
76040a9380
removed duplicate include per issue 6278
2022-05-04 14:57:37 -04:00
Dan Halbert
b71ea29a8b
Merge pull request #6330 from KurtE/rp2040_uart_rs485
...
[RP2040] Allow any GPIO pin for RS485 direction pin
2022-05-04 13:32:36 -04:00
Dan Halbert
a7ec8b02e9
Merge pull request #6328 from KurtE/mixrt_uart_rs485
...
[mimxrt (teensy) Allow Any GPIO pin for RS485 pin
2022-05-04 13:30:09 -04:00
Dan Halbert
98ae047525
Compile more SAMD things conditionallly
2022-05-04 11:41:48 -04:00
Dan Halbert
e25e177a6f
Merge pull request #6343 from dhalbert/missing-board-LED
...
add board.LED to Metro M4 AirLift LIte and PyRuler
2022-05-03 19:17:04 -04:00
KurtE
6378343bb3
As I mentioned in issue #6332 ,
...
there return of a read operation that times out with no data received
is inconsistent:
```
Adafruit CircuitPython 7.3.0-beta.1-31-g73f6b4867-dirty on 2022-04-30; Adafruit Feather RP2040 with rp2040
>>>
>>> import board, busio
>>> print(board.UART().read(5))
None
Adafruit CircuitPython 6.3.0 on 2021-06-01; FeatherS2 with ESP32S2
>>> import board,busio
>>> print(board.UART().read(5))
None
Adafruit CircuitPython 7.3.0-beta.1 on 2022-04-07; Adafruit Feather STM32F405 Express with STM32F405RG
>>> import board, busio
>>> print(board.UART().read(5))
None
Adafruit CircuitPython 7.3.0-beta.1-31-g73f6b4867-dirty on 2022-04-28; Teensy 4.1 with IMXRT1062DVJ6A
>>> import board, busio
>>> print(board.UART().read(5))
b''
```
Since I have a PR on this file anyway, I thought I would put in the change to make it consistent
with the other 3 board types I tried. Can not say about any of the others.
2022-05-03 13:39:49 -07:00
Dan Halbert
b181caaefc
add board.LED to Metro M4 AirLift LIte and PyRuler
2022-05-03 16:08:01 -04:00
Jeff Epler
7d7986b041
Add NEOPIXEL pin
...
Closes : #6307
2022-05-03 12:21:15 -05:00
Jeff Epler
510890b207
Enable squeezing property storage in flash
...
.. and enable it on atmel-samd and raspberrypi. On trinket_m0 this saves
96 net bytes of flash. There are 216 bytes actually saved by reducing
the flash storage size of the property descriptors, but added code in
several paths takes back over half of the 'raw savings'.
By organizing the "get-only" and "get-set" (but no delete) properties
each in a different section, we can represent then more efficiently.
Testing performed: that a get-only property can still be gotten but
can't be set or deleted; that a get-set property can sill be gotten or
set but can't be deleted. Tested on pygamer.
Because this requires linker file support, I only enabled it on two of
the ports.
2022-05-03 08:48:53 -05:00
Jeff Epler
78cf0a90af
Make MP_PROPERTY_GETTER / _GETSET fully declare the property
...
This will enable setting data attributes, namely, the section of the
symbol.
2022-05-03 08:48:53 -05:00
Jeff Epler
31da335cac
Introduce, use MP_PROPERTY_GETTER, _GETSET
...
Later, these can be changed in cunning ways to save flash storage.
2022-05-03 08:48:52 -05:00
Zach Richard
a23ede8bc4
update USB VID/PID codes to match pidcodes request
2022-05-02 19:49:30 -04:00
Tod Kurt
7e622c3ff7
mpconfigboard.h also needs neopixel tweak
2022-05-02 13:23:55 -07:00
Tod Kurt
5d4e964de0
fix qtpy_esp32s3_nopsram neopixel pins
2022-05-02 13:04:05 -07:00
KurtE
1fad381513
[RP2040] Allow any GPIO pin for RS485 direction pin
...
As I mentioned in issue #6310 while investigating that the Teensy port
did not support RS485_dir pin on normal GPIO pins, I found that it
was not implemented either as well on some other ports.
So was curious to implement it for RP2040 using same approach as I did
for the MIMXRT in the Pull Request #6328
That is I setup the specified pin as a normal GPIO pin in output mode
and then when you do a write operation it sets the GPIO pin logically
high, and when the write completes I set it logically low.
Note: knowing when I can set it low can be tricky, as you need to make
sure the full output has completed otherwise the data will be corrupted.
I am using: uart_tx_wait_blocking(self->uart);
Which looks like it is supposed to wait until the busy status is no
longer set, which the Reference manual mentioned, but this is leaving
the line logically set longer than I would like.
however I have tried running it with my hacked up version of the
Python Robotis DynamixelSDK and was able to talk to some AX servos.
I did have to change the library slightly for the RP2040, as the
library was erroring out when you did something like uart.read(5)
and it timed out without receiving anything. The RP2040 returned
None whereas I think the Teensy returned an empty set, which is what
it looks like the PySerial original code expects.
Not sure if anyone is interested in this, but thought i would
put it out as PR and see.
2022-04-30 14:31:08 -07:00
Dan Halbert
816a26e8b7
Merge pull request #6321 from dhalbert/samd21-ticks-for-display
...
Preserve ticks for displays across VMs
2022-04-28 09:37:21 -04:00
Michael Wisslead
e63a327107
Bound PulseIn start indexes to maxlen.
2022-04-28 02:28:34 +00:00
Dan Halbert
b25d810af9
Preserve ticks for displays across VMs
2022-04-27 20:06:47 -04:00
KurtE
73f6b48676
[mimxrt (teensy) Allow Any GPIO pin for RS485 pin
...
The existing code was setup that allowed you to specify an RTS
pin to be used as an RS485 direction pin, however there are no
RTS pins that are exposed on any of the Teensy 4.x boards.
Instead Arduino code base allowed you to specify any GPIO pin to
work instead. So I added the code in to facilitate this.
In addition the alternative code to wrap your own GPIO pin set high and low
around call(s) to uart.write() will not currently work, unless maybe you
fudge it and add your own delays as the write will return after the last
byte was pushed onto the UART’s hardware FIFO queue and as such if you
then immediately set the IO pin low, it will corrupt your output stream.
The code I added detects that you are setup to use the RS485 pin and
before it returns will wait for the UART’s Transfer complete status flag
to be set.
2022-04-27 11:26:08 -07:00
Dan Halbert
b7541088f4
shrink circuitplayground_express_crickit
2022-04-26 17:51:47 -04:00
Dan Halbert
7a77aae4be
shrink feather_m0_supersized
2022-04-26 16:52:43 -04:00
Dan Halbert
6b25ccf1a4
remove stray space
2022-04-26 14:26:42 -04:00
Dan Halbert
63abd9a9cf
Merge pull request #6312 from dhalbert/adjust-neopixel-timings
...
test and adjust NeoPixel timings on multiple ports
2022-04-26 13:18:47 -04:00
Dan Halbert
3a8fb4e956
Merge pull request #5852 from jepler/floppy
...
Add floppyio
2022-04-26 11:40:19 -04:00
Dan Halbert
c8e8171cec
Merge pull request #6300 from jepler/pio-continuous
...
rp2040: add a background write with looping to StateMachines
2022-04-26 10:09:02 -04:00
ZodiusInfuser
910662e833
Finalised motor 2040 pins
2022-04-26 12:56:31 +01:00
ZodiusInfuser
1ccf767112
Merge branch 'adafruit:main' into motor
2022-04-26 10:23:14 +01:00
Dan Halbert
4eeaf41edc
test and adjust NeoPixel timings on multiple products
2022-04-25 23:12:24 -04:00
Dan Halbert
0642917cf7
Merge pull request #6270 from FoamyGuy/tilegrid_bitmap_property
...
adding bitmap property to TileGrid
2022-04-25 09:09:28 -04:00
Dan Halbert
fdf8207e05
Merge pull request #6281 from ViktorWiz/w5100s-evb-pico
...
Added WIZnet board W5100s-evb-pico
2022-04-25 09:09:08 -04:00
Dan Halbert
5b7e0754dd
Merge pull request #6287 from KurtE/mimxrt_pwm
...
Fix PWM Support for the MIMXRT boards
2022-04-25 09:02:40 -04:00
Jeff Epler
1a89a2d366
fix doc build
2022-04-23 13:25:59 -05:00
Jeff Epler
989fb828d4
Revamp background writing
...
Now a 'once' and a 'loop' buffer can be specified.
'once' is useful for things like writing a neopixel strip in the background,
if you can guarantee the buffer contents are stable until the write is complete.
'loop' is useful for periodic things, like pwm & servos.
both together are useful for some special cases of pwm/servo, where a
transitional waveform needs to be played for one repetition and then
a new waveform needs to be played after that.
The API is renamed to reflect that it's a more generic 'background'
operation.
2022-04-23 13:09:36 -05:00
KurtE
8d9dc1fb93
Update ports/mimxrt10xx/supervisor/port.c
...
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-04-22 11:47:40 -07:00
KurtE
3c343cf1b8
Update ports/mimxrt10xx/supervisor/port.c
...
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-04-22 11:47:30 -07:00
Dan Halbert
3885bc9018
Merge pull request #6303 from DavePutz/issue_4452
...
Fix for issue #4452 - time.sleep on STM
2022-04-22 13:34:31 -04:00
KurtE
1312e5c759
Update ports/mimxrt10xx/supervisor/port.c
...
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-04-22 09:16:27 -07:00
KurtE
f102c15bb4
Update ports/mimxrt10xx/common-hal/pwmio/PWMOut.c
...
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-04-22 09:15:40 -07:00
KurtE
79dd2a6cd5
Update ports/mimxrt10xx/common-hal/pwmio/PWMOut.c
...
Fix Comment spelling
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-04-22 09:15:29 -07:00
KurtE
53b7caf13c
Update ports/mimxrt10xx/common-hal/pwmio/PWMOut.c
...
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-04-22 09:15:01 -07:00
ViktorWiz
e8541e866c
fix end of file issue
2022-04-22 15:02:50 +09:00
ViktorWiz
28296f98f8
update pid
2022-04-22 14:59:28 +09:00
ViktorWiz
f91be019f6
Merge branch 'adafruit:main' into w5100s-evb-pico
2022-04-22 14:52:04 +09:00
root
289aaae954
Fix for issue #4452 - time.sleep on STM
2022-04-21 17:05:44 -05:00
Dan Halbert
76d54ca8ad
shrink sparkfun_redboard_turbo
2022-04-21 12:58:46 -04:00
Jeff Epler
457aba79f4
fix doc build
2022-04-20 08:09:38 -05:00
Dan Halbert
4aea8049c5
Merge pull request #6279 from mjs513/main
...
Added Settable Clock for MIMXRT BOARDS
2022-04-20 08:31:41 -04:00
Dan Halbert
1fcc73bc24
Merge pull request #6261 from KurtE/PortSerialHooksIssue
...
disable on mimxrt10xx (Teensy40 41) Serial port Hooks
2022-04-19 23:04:07 -04:00
Jeff Epler
144eb5dfd4
fix lost DMA IRQ
2022-04-19 16:42:27 -05:00
Jeff Epler
ebc426d9e6
Remove debug prints, improve docs
2022-04-19 16:39:04 -05:00
Jeff Epler
b128f180ca
switch to single single dma channel, fix some bugs
2022-04-19 16:33:51 -05:00
KurtE
49769cfea4
Convert to use debug rx/tx pins to trigger adding this code
...
As per review request
2022-04-19 14:02:16 -07:00
Jeff Epler
33d6d55675
the basics work
...
the sequence has to be a minimum length, 8 entries, but this problem
is not detected. I don't THINK this is an insurmountable problem.
2022-04-19 15:14:50 -05:00
Jeff Epler
33f5598acc
Stub 'continuous write' functionality
2022-04-19 11:35:43 -05:00
Neradoc
17bba7b17d
remove Adafruit_CircuitPython_BusDevice from frozen modules, it's built in now
2022-04-19 06:49:11 +02:00
Dan Halbert
6425e937b5
Merge pull request #6289 from stonehippo/samd51_mm_flash
...
Samd51 mm flash
2022-04-18 18:59:58 -04:00
KurtE
eab4867e61
Remove dead replaced code
...
As requested, I removed the dead code that was replaced
2022-04-18 15:46:36 -07:00
George White
3b5171c4ff
Move hook implementation to supervisor
2022-04-18 14:09:36 +00:00
Dan Halbert
4ab3881a82
Merge pull request #6282 from xuhow/elecfreaks_picoed
...
Elecfreaks picoed
2022-04-18 10:07:17 -04:00
George White
32fc084b39
Removed compiler flag in favor of MP_WEAK implementation
2022-04-18 13:10:12 +00:00
George White
0ba93b20e5
Setup flash pins on Sparkfun SAMD51 Micromod
2022-04-18 13:10:12 +00:00
mjs513
208bfb33aa
Deleted Warnings Chanaged ValueError Method
2022-04-17 15:04:16 -04:00
KurtE
02a0939d2e
Fix PWM Support for the MIMXRT boards
...
There were two main issues with the PWM support.
The first is they would fail to work properly if the board goes
into low power mode, when you do things like: time.sleep(0.25)
Can make partially work with this by turning on the proper flags
in each of the FlexPWMTimer Timers/sub-timers, but this did not
appear to work if for example you have both A and B channels
enabled.
Second main problem is that the code did not work with the X
channel of each timer/sub-timer. It looks like someone had
earlier started support for this, But was not sufficient.
Needed to bypass the SDK code and get it closer to the PJRC code.
That is we set the PWM_CTRL_FULL_MASK, which then uses base->SM[submodule].VAL1 to control
when the timer is reset, so it sets up your cycle/frequency. But then this implies that X channel
which uses 0, 1 has to be handled specially. So for the different channels:
A - Uses VAL2 to turn on (0) and VAL3=duty to turn off
B - Uses VAL4 to turn on (0) and VAL5 to turn off
X - As mentioned above VAL1 turns off, but its set to the timing for freqency. so
VAL0 turns on, so we set it to VAL1 - duty
2022-04-16 09:00:45 -07:00
mjs513
0b6c451fdf
Add Overclocking Warnings to Processor.c
2022-04-16 11:01:50 -04:00
mjs513
fd41c1ac5b
Update based on PR Comments
2022-04-14 06:45:16 -04:00
Xu Hao
9c1b44a030
Modify USB VID and PID of the Pico:ed
2022-04-14 17:42:04 +08:00
ViktorWiz
b30d2e0889
update w5100s-evb-pico mpconfigboard.h
2022-04-14 14:35:23 +09:00
root
716497c132
corrected pre-commit errors
2022-04-13 12:04:28 -04:00
root
60e330fb0d
Added Settable Clock for MIMXRT BOARDS
2022-04-13 09:47:55 -04:00
ZodiusInfuser
8cce2e6406
Updated motor pin names
2022-04-12 15:20:28 +01:00
Xu Hao
71a7ec6f76
Add ELECFREAKS Pico:ed board.
2022-04-12 16:10:02 +08:00
Dan Halbert
7be66a5733
Merge pull request #6265 from KurtE/teensyMM
...
Add Teensy MicroMod board
2022-04-11 12:31:42 -04:00
KurtE
f95a68a37c
Rename the board name
...
Renamed the board both name of directory within boards, but also the
name reported board name: board_id -- sparkfun_teensy_micromod
Adafruit CircuitPython 7.3.0-beta.0-10-g2a3eb49da-dirty on 2022-04-10; SparkFun Teensy MicroMod Processor with IMXRT1062DVL6A
2022-04-10 16:56:51 -07:00
BigTuna94
01cff3c4f8
add MIDI to frozen libs
2022-04-10 14:10:07 -04:00
Limor "Ladyada" Fried
df74c681d2
Merge pull request #6273 from KurtE/t4x_board_dir_add_txrx_names
...
Add to board object other Serial and I2c pin names
2022-04-10 12:08:41 -04:00
foamyguy
948040f1f0
disable onewire instead of displayio on boards without room
2022-04-10 10:00:37 -05:00
KurtE
ecf2f1c80c
Add to board object other Serial and I2c pin names
...
While testing out this and the new MicroMod Teensy port, @mjs513
and myself found it desirable to have logical pin names for the
different Serial UART objects. It is a lot easier and clearer
to use and maintain to do something
like: uart4 = busio.UART(board.TX4, board.RX4)
than have to go look up the pin numbers for each board.
2022-04-10 05:39:43 -07:00
Dan Halbert
c3cfbc1259
Force pin 21 high; patch; need to diagnose further
2022-04-09 22:03:16 -04:00
foamyguy
7ad5fa511e
disable displayio for some boards
2022-04-09 16:24:06 -05:00
KurtE
7ff0036a26
Fix the pre-check stuff
2022-04-08 15:59:27 -07:00
KurtE
2a3eb49da7
Update the pins.c
...
I fixed a couple issues in the pin name definitions.
The pin names are sort of Teensy centric in that the priority is given
to the pin names you would use in Arduino like D0, D1, ...
But also added names for the MicroMod names in particular the names
on the front of the ATP carrier board
Also updated manufacturer to be both PJRC and Sparkfun
2022-04-08 07:41:51 -07:00
KurtE
93e9e3ad90
Fix end of line
2022-04-07 15:52:01 -07:00
KurtE
03e0acde94
Trying to cleanup the pre build messages
2022-04-07 14:11:22 -07:00
KurtE
2cb422fb19
Create W25Q128JV.ld
...
Add flash file needed for Teensy MicroMod,
2022-04-07 12:09:56 -07:00
Jeff Epler
766bf8f671
disable floppyio on kicksat-sprite
2022-04-07 10:57:37 -05:00
Jeff Epler
f7be4345d9
Merge remote-tracking branch 'origin/main' into floppy
2022-04-07 08:37:46 -05:00
ZodiusInfuser
769b182da4
Added definition for upcoming Pimoroni motor board
2022-04-07 07:24:55 +01:00
Dan Halbert
d5deddcaf5
Merge pull request #6207 from domdfcoding/esp32-rotaryio
...
Add espressif rotaryio divisor support.
2022-04-06 21:35:02 -04:00
KurtE
a74ec22aa4
Start setting up a Teensy MicroMod port
...
I have done a first pass through the files
this also includes a new VID/PID from sparkfun
2022-04-06 17:58:22 -07:00
KurtE
219ef5e407
disable on mimxrt10xx (Teensy40 41) Serial port Hooks
...
As mentioned in issue #6241 the commit to setup port hooks is now
causing all input/output that are to go to the Mu window to also
go to the LpUart that is defined the port serial.c
and in this case it goes to lpuart4, which on Teensy 4, 4.1 is
used on Arduino Serial2. With this new code this port no longer
works properly.
This is one way to solve it, in that there is a #if defined() that
if not set, all of the code in this file is ignored and the higher
level supervisor stub versions of these functions will be used, which
don't interfere with Serial2 and my test sketch works again.
Note: the PR for Switch to Port Serial Hooks, also changed code in
other ports. I have not tried to see how.
There are other more global fixes for this, in which maybe a higer
level #if that disables the code within the top level supervisor. Or
could be software controlled
Again this may not be the final solution, but at least it gets
Serial2 up and running agin.
2022-04-06 15:58:27 -07:00
Dan Halbert
dbb6f5f16c
Merge pull request #6246 from DavePutz/issue_6148
...
Don't reset GPIO4 on the MagTag (used for voltage monitoring)
2022-04-06 13:22:01 -04:00
Dominic Davis-Foster
f297e872d6
Account for divisor when overriding position.
2022-04-06 18:13:59 +01:00
Dan Halbert
2693a4cfe1
Merge pull request #6069 from gamblor21/uzlib-module
...
zlib Module
2022-04-06 12:06:44 -04:00
Dan Halbert
1a329cfd11
Merge pull request #6029 from jepler/pio-wrap
...
raspberry: StateMachine: Add support for wrap=, wrap_target=
2022-04-06 11:55:02 -04:00
Dan Halbert
99dc4029dc
Espressif: disable pull-up on AnalogIn creation
2022-04-06 11:33:56 -04:00
Pontus Oldberg
286e26edf0
Added support for 4MB flash.
2022-04-06 11:08:22 +02:00
ViktorWiz
76efdfd9a6
initial commit for w5100s-evb-pico
2022-04-06 14:52:28 +09:00
root
b993313ac1
Don't reset GPIO4 (used for voltage monitoring)
2022-04-05 11:30:12 -05:00
Jeff Epler
fe98248a3d
Merge remote-tracking branch 'origin/7.2.x' into merge-7.2.x
2022-04-05 08:45:13 -05:00
Jeff Epler
8cd09b1f0d
Merge pull request #6240 from dhalbert/7.2.x-rp2040-clear-uart-rtic-interrupt
...
handle clearing both RXIC and RTIC interrupts
2022-04-05 08:43:22 -05:00
Dan Halbert
47d3d0d7f8
Merge pull request #6202 from jepler/issue5985
...
samd: Don't rely on RTC interrupt
2022-04-05 09:16:40 -04:00
Dan Halbert
4cccc1a036
handle clearing both RXIC and RTIC interrupts
2022-04-04 23:55:08 -04:00
Jeff Epler
fa4b4fa639
nrf: Correctly mark PWM unused during reset
2022-04-04 10:08:54 -05:00
Mark
8ed7b114cd
Merge branch 'main' into uzlib-module
2022-04-03 11:48:37 -05:00
gamblor21
9d67e62f4d
Removed from small board
2022-04-03 11:47:19 -05:00
gamblor21
7b586e077c
Removed from small boards
2022-04-02 12:22:14 -05:00
Tod Kurt
390a473dda
add board.DISPLAY since display already set up by CirPy
2022-04-01 15:08:43 -07:00
Dominic Davis-Foster
319ca8560c
Always configure the second PCNT channel.
2022-03-31 20:00:34 +01:00
Dan Halbert
d9418fb7a3
Merge pull request #6184 from PontusO/main
...
Added Challenger 840 board.
2022-03-30 21:18:43 -04:00
Dan Halbert
ec5c9507b9
Merge pull request #6187 from prplz/espressif-uart-workflow-fixes
...
Espressif: Fix interrupts in UART workflow
2022-03-30 21:18:02 -04:00
Dan Halbert
6fd968fc12
Merge pull request #6199 from erongd/muselab-wrover-spiram-fix
...
enable SPIRAM support on muselab nanoESP32S2 board
2022-03-30 21:14:59 -04:00
Dan Halbert
f059f7180c
Merge pull request #6208 from ZodiusInfuser/badger
...
Improvement to Badger 2040 operation on battery
2022-03-30 13:35:47 -04:00
ZodiusInfuser
336abdfbc7
Switch variable to extern
2022-03-30 17:44:36 +01:00
Pontus Oldberg
f2d10237d2
Merge branch 'adafruit:main' into main
2022-03-30 16:43:39 +02:00
BigTuna94
dd933c7d06
add NeoPixel lib to firmware
2022-03-30 09:17:26 -04:00
Dan Halbert
b032d42a71
Update ports/espressif/boards/adafruit_feather_esp32s2/pins.c
2022-03-29 12:46:58 -04:00
lady ada
2563c509f7
fix automatic i2c enablement with rev C
2022-03-29 12:46:51 -04:00
ZodiusInfuser
f07cfdd80c
Linting fixes
2022-03-28 18:34:39 +01:00
Dan Halbert
c6bfe54dc8
Merge pull request #6209 from ZodiusInfuser/servo
...
Pin rename on Servo2040 to match schematic and C++/MP board defs
2022-03-28 13:29:27 -04:00
ZodiusInfuser
c2fb44b36c
Set enable pin to high during boot
2022-03-28 15:56:02 +01:00
ZodiusInfuser
b44a2a0c8e
Updated pin name to match schematic
2022-03-28 14:07:08 +01:00
Dominic Davis-Foster
6d025a239e
Add espressif rotaryio divisor support.
2022-03-28 09:04:02 +01:00
gamblor21
0d3f45bef8
Remove move DecompIO files
2022-03-27 16:18:56 -05:00
Michael Himing
f96cd7361d
Fix esp32s2 build
2022-03-27 10:09:23 +11:00
Jeff Epler
dd73182441
Merge pull request #6190 from tannewt/esp32s3_usb_devkit
...
Add ESP32-S3-USB-OTG board
2022-03-26 15:05:30 -05:00
Jeff Epler
35aa32bec0
Merge pull request #6193 from tannewt/fix_empty_mdns
...
Fix MDNS crash on S2
2022-03-26 15:05:17 -05:00
Jeff Epler
372306411a
samd: Don't rely on RTC interrupt
...
I instrumented RTC_Handler and determined that on SAMD51 it was possible
for the interrupt to be delivered well before the actual overflow of the
RTC COUNT register (e.g., a value as small as 0xffff_fffd could be seen
at the time of overflow)
Rather than depending on the overflow interrupt coming in at the same time
as COUNT overflows (exactly), rely only on observed values of COUNT in
_get_count, overflowing when it wraps around from a high value to a low
one.
With this change, PLUS a second change so that it is possible to warp
the RTC counter close to an overflow and test in 20ms instead of 3 days,
there was no problem detected over 20000+ overflows. Before, a substantial
fraction (much greater than 10%) of overflows failed.
Fixes #5985
Change to common-hal/rtc/RTC.c for time warping (plus make rtc_old_count non-static):
```patch
void common_hal_rtc_set_calibration(int calibration) {
+
+ common_hal_mcu_disable_interrupts();
+
+ RTC->MODE0.COUNT.reg = 0xffffff00;
+ rtc_old_count = 0;
+ do {
+ while ((RTC->MODE0.SYNCBUSY.reg & (RTC_MODE0_SYNCBUSY_COUNTSYNC | RTC_MODE0_SYNCBUSY_COUNT)) != 0) { }
+ }
+ while(RTC->MODE0.COUNT.reg < 0xffffff00);
+ common_hal_mcu_enable_interrupts();
+
+ mp_printf(&mp_plat_print, "Warping RTC in calibration setter count=%08x rtc_old_count=%08x\n", RTC->MODE0.COUNT.reg, rtc_old_count);
```
Test program:
```python
import time
from rtc import RTC
i = 0
while True:
RTC().calibration = 1 # Warps to ~16ms before overflow, with patch to RTC code
t0 = time.monotonic_ns()
et = t0 + 20_000_000 # 20ms
while (t1 := time.monotonic_ns()) < et: pass
i += 1
print(f"{i:6d}: duration {t1-t0}")
if t1-t0 > 200_000_000: break
print()
```
2022-03-25 14:48:03 -05:00
Michael Himing
686012426d
Espressif: Fix interrupts in UART workflow
2022-03-25 16:20:04 +11:00
Eric Rong
7ad6fa8df5
enable SPIRAM support on muselab nanoESP32S2 board
2022-03-24 16:46:13 -07:00
Scott Shawcroft
fcde108d03
Merge pull request #6194 from jepler/revamp-duplicate-usb-check
...
Improve the USB vid:pid duplicate checker
2022-03-24 14:57:48 -07:00
Scott Shawcroft
ac7977ba75
Merge pull request #6191 from tannewt/esp_3_wire_spi
...
Fix 3-wire SPI on ESP
2022-03-24 14:51:16 -07:00
Scott Shawcroft
9d4c74a87e
Merge pull request #6197 from ZodiusInfuser/servo
...
Added board definition for upcoming Pimoroni servo driver.
2022-03-24 14:44:44 -07:00
jerryneedell
bcec1e44f0
add status LED to nrf pca10059 dongdle
2022-03-24 15:05:02 -04:00
ZodiusInfuser
8e98be2704
Added additional constants
2022-03-24 18:32:39 +00:00
ZodiusInfuser
9c81ea86e9
Added board definition for upcoming Pimoroni servo driver.
2022-03-24 16:07:04 +00:00
Jeff Epler
d91ca7369c
Merge remote-tracking branch 'origin/main' into revamp-duplicate-usb-check
2022-03-24 09:44:41 -05:00
Jeff Epler
a07ac72cc5
Improve the USB vid:pid duplicate checker
...
To me, it made more sense to track which boards go together in a cluster;
when reviewing a request to actually use a duplicate vid/pid, you want
to know what board(s) it is aliasing.
I also revamped the detection of non-USB boards so that a board .mk file
that couldn't be parsed by the code here would raise a problem instead
of just being skipped for the purposes of checking.
There were some lines with comments on the end, and some variation in
capitalization of the IDs. These are all normalized and a (sometimes
unfriendly!) error printed when it's incorrect.
Before this, here were some ways to trick the duplicate vid/pid checker:
```
USB_PID = 0XABCD
USB_PID = 0xAbCd
USB_PID = 0xABCD # harmless comment?
```
None of these things were ever done on purpose.
2022-03-24 09:42:11 -05:00
Eric Rong
aa29e49d54
Merge branch 'adafruit:main' into lilygo_t_display_rp2040
2022-03-23 22:36:44 -07:00
Scott Shawcroft
8642dc4aa7
Fix MDNS crash on S2
...
Fixes #6186
2022-03-23 17:17:48 -07:00
Scott Shawcroft
380a7087d4
Fix 3-wire SPI on ESP
...
Simplifying the checks fixed it.
Fixes #6141
2022-03-23 14:53:46 -07:00
Scott Shawcroft
e13d32b832
Add ESP32-S3-USB-OTG board
...
This board has both types of USB connectors, a display and buttons
to select items on the display. It also has a micro-B connector for
the UART output.
2022-03-23 14:10:26 -07:00
Scott Shawcroft
ee4c501936
Merge remote-tracking branch 'adafruit/main' into c3_serial_jtag
2022-03-23 12:17:02 -07:00
Pontus Oldberg
c7b28eb2ef
Update ports/nrf/boards/challenger_840/pins.c
...
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-03-23 17:14:49 +01:00
Pontus Oldberg
d26297ae98
Update ports/nrf/boards/challenger_840/pins.c
...
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-03-23 17:14:40 +01:00
Pontus Oldberg
7901850bb8
Update ports/nrf/boards/challenger_840/pins.c
...
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-03-23 17:14:28 +01:00
Scott Shawcroft
2fa182147b
Fix STM non-F4 builds
2022-03-22 23:07:38 -07:00
Scott Shawcroft
f5d90fc84f
Switch to port_serial_* hooks
...
This makes it easier to integrate port specific serial alongside
the common approaches.
2022-03-22 19:40:33 -07:00
Pontus Oldberg
5e09ed611e
Added Challenger 840 board.
2022-03-22 21:36:54 +01:00
Neradoc
367e0ea901
Enable rgb status LED on MakerDiary USB Dongle
2022-03-22 20:53:12 +01:00
Scott Shawcroft
110857c12e
Actually turn on serial over Serial/JTAG for QTPy
2022-03-22 11:45:47 -07:00
Scott Shawcroft
b8d1bb1d5d
Shrink C3 builds
2022-03-22 10:46:57 -07:00
Scott Shawcroft
4363361c87
Board definition clean up
...
Removes:
* AUTORESET_DELAY_MS which never did anything but was introduced
somehow.
* CIRCUITPY_BOOT_BUTTON in all but one ESP board because they all have
them. There is a default based on the strapping pins.
* BOARD_USER_SAFE_MODE_ACTION because it was all the same for boards
with boot buttons. Now the safe mode code manages the message.
2022-03-21 17:58:43 -07:00
Scott Shawcroft
623b6fad16
Fix nested categories in update_sdkconfig.py
...
Also, mark QTPy C3 as BIN only.
2022-03-21 17:04:19 -07:00