99e5e66518
socketpool: Always use getaddrinfo_raise.
2024-07-22 16:20:34 -05:00
Scott Shawcroft
612bf209b5
Merge pull request #9421 from timchinowsky/rawsample-doublebuffer
...
Add double buffering to RawSample
2024-07-22 13:24:30 -07:00
34bee59920
espressif: actually disable v6 support on select boards
2024-07-22 12:46:56 -05:00
5ffc4b2f4f
Tick more boxes on the TODO list
...
* v6 on by default
* dhcp can start v4 & v6 separately
* self documenting property for v4 & v6 support
* v4 support is always on .. for now
2024-07-22 10:48:47 -05:00
bc2e6b48fd
Finish turning dns into a tuple
...
to accomodate multiple servers some day
2024-07-22 09:50:27 -05:00
timchinowsky
d554c017ad
Update shared-bindings/analogbufio/BufferedIn.c
...
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2024-07-19 16:57:27 -07:00
Tim
e8a7700af4
add looping to rp2040 analogbufio.BufferedIn
2024-07-18 12:03:15 -07:00
bee32ea826
Make return value of recvfrom_into & accept right for v6 addresses
...
only tested recvfrom_into as can't bind() v6 addresses yet
wifi workflow may be broken by this or maybe it was broken before
2024-07-17 17:15:22 -05:00
86f7a38ff4
Add wifi.radio.addresses, .addresses_ap, .dns
2024-07-17 12:18:29 -05:00
9088488d1c
WIP ipv6 works(-ish)
...
* metro esp32s2 only, because that's what I had handy
* nothing is started at boot; I hung it on `start_dhcp()` which is dubious
* I get a stateless address (which doesn't seem to work) and a dhcpv6 address (which does)
```
>>> wifi.radio.ipv6_addresses
('FE80::7EDF:A1FF:FE00:518C', 'FD5F:3F5C:FE50:0:7EDF:A1FF:FE00:518C')
```
* depending whether a v4 or v6 dns server is configured, DNS resolution breaks
wrong ipv4_dns is first 4 bytes of the v6 dns server address:
```
>>> wifi.radio.ipv4_dns
253.95.63.92
```
* I can connect to a v4 or v6 SSH server on the local network and read its banner
>>> s.close(); s = socket.socket(socket.AF_INET6, socket.SOCK_STREAM); s.connect(("fd5f:3f5c:fe50:0:6d9:f5ff:fe1f:ce10", 22))
*** len[0]=28
*** len=28 family=10 port=5632
>>> s.recv_into(buf)
40
>>> bytes(buf)
b'SSH-2.0-OpenSSH_9.2p1 Debian-2+deb12u3\r\n\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'
2024-07-17 12:18:29 -05:00
eaa6f99d0e
Add v6 address support to SocketPool.getaddrinfo (on espressif)
2024-07-17 12:18:29 -05:00
Tim
fa17ce9229
adjust docs
2024-07-17 07:22:49 -07:00
Tim
b3b3577513
add double buffering to RawSample
2024-07-09 11:21:07 -07:00
RetiredWizard
032a0773bd
sdioio DOC update: DATA pins pass in Set
2024-07-08 16:43:55 -04:00
Scott Shawcroft
08512c538c
Merge pull request #9342 from Sola85/esp32-settable-cpu-frequency
...
esp: make cpu frequency settable
2024-07-08 12:01:12 -07:00
Tobias Schmale
b8c65427f8
update docs
2024-06-26 13:35:05 +00:00
Dan Halbert
827e41ab2d
Merge pull request #9350 from dhalbert/fix-espressif-ping
...
espressif: fix returning ping time and pinging too often
2024-06-25 16:42:45 -04:00
Dan Halbert
a004c1685e
espressif ping: reduce wait time on failure^
2024-06-18 15:53:21 -04:00
Dan Halbert
8dc7364b48
Merge pull request #9324 from tannewt/more_esp_deep_sleep
...
Enable deep sleep on all ESP chips
2024-06-17 23:05:01 -04:00
ed5591c5cb
Merge pull request #9318 from jepler/sslsocket-stream-protocol
...
SSLSocket: Add stream protocol
2024-06-14 10:02:17 -05:00
Scott Shawcroft
ed2f32fadb
Enable deep sleep on all ESP chips
...
Features of each chip is documented in this spreadsheet:
https://docs.google.com/spreadsheets/d/1NyKzHOWeWMb8UttDDugeeOANZ4m-idMHM6kiTlUUVIg/edit?usp=sharing
Fixes #9056
2024-06-13 10:26:33 -07:00
7c85f6a15a
ensure variable is initialized
2024-06-13 11:41:24 -05:00
e00e2473db
doc fix
2024-06-13 11:39:40 -05:00
4d4d654677
MP3Decoder: set the nonblocking flag as needed
...
this makes SSL sockets (which return readable when not yet actually
readable) work better.
2024-06-13 11:11:17 -05:00
3215f6c4ff
SSLSocket: handle exceptions during protocol read/write operations
...
These protocol operations should not raise exceptions, but sometimes
they do. Catch the exception and extract the errno value if available.
At the same time, harmonize the argument types for the underlying C
routines
2024-06-12 16:41:19 -05:00
Scott Shawcroft
4c85b5f02e
Fix other BLE builds
2024-06-12 11:22:00 -07:00
Scott Shawcroft
63aeb11d7e
Improve ESP BLE and turn on BLE workflow
...
The BLE workflow will broadcast publicly when the web workflow
isn't activated.
2024-06-11 16:21:40 -07:00
7969638740
SSLSocket: Add stream protocol
...
including select. This assumes that the SSL layer is readable/writable
exactly when the underlying socket is readable/writable.
2024-06-07 14:49:35 -05:00
wyrdsec
e9c416bda2
shared-module/aurora_epaper: Formatting
...
shared-bindings/aurora_epaper: Formatting
2024-06-07 10:03:02 -04:00
wyrdsec
707026623f
Merge branch 'adafruit:main' into main
2024-06-06 20:30:44 -04:00
wyrdsec
bafe45fde9
Docs
2024-06-06 20:29:50 -04:00
Scott Shawcroft
1aa17b39b6
Merge pull request #9284 from jepler/mp3-stream
...
MP3: Stream them
2024-06-06 12:15:30 -07:00
wyrdsec
1214b699ca
Pervasive Displays Aurora E-paper driver
2024-06-05 20:00:45 -04:00
cb295c57d7
MP3Decoder: Make it possible to start in the middle of an MP3
...
You can now, e.g.,
```
with open("/whatever.mp3") as mp3_file:
mp3_file.seek(16000*30)
decoder.file = mp3_file
i2s.play(decoder)
```
to start about 30 seconds into a 128kbit/s CBR track.
If a track is looped, the loop will start at the beginning.
This also changes the behavior if the track is started & stopped: it will
continue from where it left off, except if it had prevously run to
completion. To get other behavior, you can seek the file and then re-assign
the file property.
2024-06-05 10:33:40 -05:00
Scott Shawcroft
254cac059e
Make time_to_refresh return 0 correctly
...
Redo Feather C6 pinout so it include standard D# labels for feathers
Fixes #9244
2024-06-03 15:33:11 -07:00
a80311d4c0
MP3Decoder: make testable in coverage build
...
An mp3 decoder (note that this needs `audiocore.get_buffer`, not
enabled on devices):
```py
import sys
import audiomp3
import audiocore
GET_BUFFER_DONE, GET_BUFFER_MORE_DATA, GET_BUFFER_ERROR = range(3)
with audiomp3.MP3Decoder(sys.argv[1]) as decoder, open(sys.argv[2], "wb") as target:
while True:
res, samples = audiocore.get_buffer(decoder)
if res != GET_BUFFER_ERROR:
target.write(samples)
if res != GET_BUFFER_MORE_DATA:
break
```
this doesn't actually add any tests though
2024-05-30 14:22:39 -05:00
d6ddd55462
MP3Decoder: Allow passing any stream-like object
...
This can sort-of play MP3s from a http request, but the buffering is
not good enough to play glitch-free. A new kind of buffer that can
read ahead further without blocking is needed.
2024-05-30 14:21:34 -05:00
Dan Halbert
c9b5002897
shared-bindings/analogio/AnalogIn.c: fix Espressif limitations doc
2024-05-24 10:24:25 -04:00
Dan Halbert
3f4d9310ff
CircuitPython files: replace STATIC with static
2024-05-20 11:02:17 -04:00
Dan Halbert
950b5d09d2
guard2once -s ...
2024-05-19 20:40:44 -04:00
Dan Halbert
dbef48d5e2
add #pragma once to all CircuitPython header files without any include guards
2024-05-19 20:38:07 -04:00
Dan Halbert
e0f745c14c
Merge pull request #9247 from jepler/improve-lfo-initial-value
...
synthio: Calculate LFO.value at construction
2024-05-17 23:48:47 -04:00
Dan Halbert
6c4bfd6738
Merge pull request #9222 from tannewt/esp_ble_server
...
Add ESP BLE GATT server support
2024-05-17 17:24:45 -04:00
Dan Halbert
747b7619ea
update headers of most CircuitPython-only files
2024-05-17 14:56:28 -04:00
Dan Halbert
daa11cb1c2
updates before header conversion
2024-05-17 14:56:28 -04:00
Scott Shawcroft
689c6fac20
Add ESP BLE GATT server support
...
Enable BLE where we can. Switch 4MB, non-USB board default partitioning
over to a single 2MB firmware bank. Old boards override this setting to
keep the same behavior.
This also adds alpha support for the ESP32-C2 (aka ESP8684).
Fixes #5926 and fixes #7170
2024-05-17 11:08:07 -07:00
Andrew Guest
1865db24f8
Fix typo in start_advertising() param docs
2024-05-14 19:30:03 -05:00
9e878f7b3d
synthio: Calculate LFO.value at construction
...
Originally, the only (non-debug) way to make an LFO calculate its value
was to associate it with a playing synthesizer.
This posed a problem for LFOs that had "power on values" other than 0,
and where the value was used other than to internally drive a note
property.
Now, an initial, possibly non-zero value is calculated at object
construction time:
```py
>>> l = synthio.LFO(offset = 1)
>>> l.value
1.0
```
Note that this happens just once at construction; it does not happen when
updating LFO properties:
```py
>>> l.offset = 2
>>> l.value
1.0
```
2024-05-14 18:27:57 -05:00
Andrew Mirsky
5cace546fe
docs/i2ctarget : removed extraneous dependency
...
Signed-off-by: Andrew Mirsky <andrew@mirsky.net>
2024-05-10 16:36:46 -04:00
Andrew Mirsky
2584fc88f0
ports: rpi pico - i2ctarget update transaction restart register mask
...
issue #: https://github.com/adafruit/circuitpython/issues/9232
Signed-off-by: Andrew Mirsky <andrew@mirsky.net>
2024-05-10 16:27:50 -04:00
Andrew Mirsky
a9d800b308
docs/i2ctarget: added examples and additional explanation to the I2CTarget() class
...
Signed-off-by: Andrew Mirsky <andrew@mirsky.net>
2024-05-08 17:02:09 -04:00
Scott Shawcroft
9ab8831d38
Merge pull request #9218 from jepler/mp3-esp
...
Enable mp3 output on esp32s3
2024-05-02 14:30:07 -07:00
a8170f9930
MP3Decoder: ensure object uses finalizer
...
.. so that the underlying allocations will be freed. This is not
important now but will be if the underlying allocator is changed
to something else like `port_malloc` in the future.
2024-05-01 14:20:39 -05:00
Scott Shawcroft
28b7421124
Merge remote-tracking branch 'adafruit/main' into renode
2024-04-29 11:27:19 -07:00
Dan Halbert
126a1a4154
Merge pull request #9197 from jepler/synthio-lfo-doc-improvements
...
LFO: document some things that trip up users
2024-04-29 10:29:31 -04:00
Scott Shawcroft
0cbd8b2e0c
Add CIRCUITPY_USB_DEVICE config
...
This replaces CIRCUITPY_USB and makes room for CIRCUITPY_TINYUSB
when it may only be included for host support.
2024-04-26 11:58:49 -07:00
c92bb9b3cc
Merge pull request #8954 from jepler/ssl-anything
...
ssl: work on anything implementing the socket protocol
2024-04-25 11:51:18 -05:00
Scott Shawcroft
79888acd15
Fix lint, ESP BLE and renode fetch deps
2024-04-24 10:00:36 -07:00
Scott Shawcroft
b63d422768
Fix more boards and docs
2024-04-23 16:04:42 -07:00
8fcb1bfa0d
Update LFO.c
2024-04-23 16:07:03 -05:00
Scott Shawcroft
442def3e68
Add minimal Renode port
...
This runs in the Renode simulator and enables easier tracing and
debugging of the CircuitPython core. This port can also serve as
a starting point for new ports because it implements the minimal
necessary for the CP core to run.
2024-04-23 13:31:31 -07:00
9979e1ac1d
Update LFO implementation detail notes based on Dan's feedback
...
(& re-wrap some paragraphs, sorry)
2024-04-23 07:56:13 -05:00
bf10008c94
Update shared-bindings/synthio/LFO.c
...
Co-authored-by: Dan Halbert <halbert@adafruit.com>
2024-04-22 21:04:04 -05:00
a4e60ec698
LFO: document some things that trip up users
...
Closes : #9073
Closes : #9063
2024-04-22 20:40:05 -05:00
Dan Halbert
839fea043c
adjust TRRS. Remove busio.UART.Parity if UART disabled
2024-04-21 15:24:12 -04:00
a93cbb21a9
Merge remote-tracking branch 'origin/main' into ssl-anything
2024-04-20 20:57:22 -05:00
Dan Halbert
87a400aa1d
Merge pull request #9189 from dhalbert/pixel-trinkey
...
Adafruit Pixel Trinkey M0
2024-04-19 10:13:38 -04:00
Dan Halbert
00a18fe2c9
Adafruit Pixel Trinkey M0
2024-04-18 12:45:53 -04:00
Dan Halbert
0c61d51a39
fix typo in SafeModeReason.WATCHDOG doc
2024-04-17 16:15:50 -04:00
2f04028d10
Merge remote-tracking branch 'origin/main' into ssl-anything
2024-04-17 13:45:43 -05:00
Dan Halbert
59d4df57b3
Merge pull request #9164 from tannewt/max3421e
...
Add Max3421E support for usb host
2024-04-11 08:32:55 -04:00
Dan Halbert
84e15d715a
switch atmel-samd AudioOut to use finalizer
2024-04-10 16:05:05 -04:00
Scott Shawcroft
aca3191a58
Add Max3421E support for usb host
...
It is enabled on:
* SAMD51 boards with 1MB flash (SKU ending in 20A)
* Feather RP2040 DVI. Others have PIO usb host.
* All ESP32 boards.
* All nRF boards
Fixes #8676
2024-04-10 10:57:28 -07:00
Dan Halbert
817a7fa4af
Merge branch 'main' into main
2024-04-06 16:21:01 -04:00
Dan Halbert
0f66ecb32f
Merge pull request #9146 from brushmate/customizable_midi_interface_names
...
Make USB MIDI interface names customizable
2024-04-06 13:05:44 -04:00
Dan Halbert
9d8eebc65b
shrink pygamer and pybadge
2024-04-06 12:28:02 -04:00
Dan Halbert
e97ac185d2
factor out name-setting in usb_midi_set_names()
2024-04-06 11:33:00 -04:00
Steffen Kreutz
814ebc6246
Make USB MIDI interface names customizable
2024-04-06 12:09:19 +02:00
Joshua
e956f2994b
Updated to use ringbuf and an event callback.
2024-04-06 12:53:08 +10:30
Dan Halbert
064ac2d932
address review; fix STM; add limitation for STM
2024-04-06 09:26:59 +10:30
Dan Halbert
e847999a42
Runtime.serial_bytes_available: return count isntead of bool
2024-04-06 09:26:58 +10:30
Fabien Chouteau
8f55dfeb3d
shared-module/fourwire/FourWire.c: make the chip_select pin optional
...
If there's only one device on the bus, the chip_select pin of the
peripheral can be fixed in hardware, therefore lowering the number of
pins required on the microcontroller side.
This patch allows this by making the chip_select pin optional.
2024-04-06 09:23:10 +10:30
Scott Shawcroft
fbd9a6e410
Merge pull request #9141 from dhalbert/serial_bytes_available
...
Runtime.serial_bytes_available: return count instead of bool
2024-04-05 10:20:02 -07:00
Dan Halbert
8027efe245
Merge pull request #9106 from wee-noise-makers/fourwire_optional_cs
...
shared-module/fourwire/FourWire.c: make the chip_select pin optional
2024-04-04 22:38:06 -04:00
Dan Halbert
4b44e324a5
address review; fix STM; add limitation for STM
2024-04-04 13:30:57 -04:00
Scott Shawcroft
680ee119b5
Merge pull request #9135 from jepler/update-adafruit-floppy
...
Update floppyio to use newer adafruit_floppy, implement pio-based flux capture on rp2040
2024-04-04 09:56:51 -07:00
Dan Halbert
bb9968215c
Runtime.serial_bytes_available: return count isntead of bool
2024-04-04 12:26:06 -04:00
64b822cb66
Apply suggestions from code review
...
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2024-04-03 17:47:34 -05:00
Scott Shawcroft
436f9829f8
Merge pull request #9140 from elpekenin/fix/epd_refresh
...
Fix `EPaperDisplay.time_to_refresh`
2024-04-03 13:39:09 -07:00
Dan Halbert
5a7ac6fb63
document Espressif AnalogIn limitations
2024-04-02 19:53:30 -04:00
9efb034cba
Add pio-based flux capturing for rp2040
2024-04-02 15:42:28 -05:00
1be36bd7cb
Add floppyio to unix port, test mfm decoding
2024-04-02 15:42:28 -05:00
7d2e46aa19
Update adafruit_floppy
2024-04-02 14:57:20 -05:00
elpekenin
70c0957583
fix #9129
2024-04-02 17:08:03 +02:00
Dan Halbert
c71cf85641
espressif/common-hal/wifi/Radio.{c,h} handle new ESOP-IDF 5.2.1 auth failure codes
2024-03-31 21:15:58 -04:00
Fabien Chouteau
659c38562b
shared-module/fourwire/FourWire.c: make the chip_select pin optional
...
If there's only one device on the bus, the chip_select pin of the
peripheral can be fixed in hardware, therefore lowering the number of
pins required on the microcontroller side.
This patch allows this by making the chip_select pin optional.
2024-03-30 11:04:18 +01:00
Dan Halbert
e10b179114
Merge remote-tracking branch 'adafruit/9.0.x' into 9.0.x-to-main-2024-03-27
2024-03-27 11:49:32 -04:00
e5f0579d6c
SSLSocket: implement setsockopt (untested)
2024-03-25 09:24:57 -05:00
xs5871
3e184e994c
Add state integration based debouncing to the keypad module
2024-03-22 19:17:23 +00:00
8c5d9d28d8
ssl: make bind & listen into void functions (they throw exceptions)
2024-03-21 14:06:32 -05:00
b330989704
sslsocket: Simplify handling the timeout value
...
We're just going to pass it down to the underlying socket, so don't
parse it, multiply it, etc.
2024-03-21 13:54:40 -05:00
c793a021b8
ssl: work on anything implementing the socket protocol
...
In principle this allows core SSL code to be used with e.g., wiznet
or airlift sockets. It might actually be useful with wiznet ethernet devices
(it's probably not with airlift)
2024-03-21 13:54:40 -05:00
5973c4a86c
socketpool: factor out constants
...
This header can be used by ssl even if there's no core socketpool
2024-03-21 13:54:40 -05:00
0c1db5e0cc
socketpool: add type property to Socket objects
...
cpython socket objects have a `type` property which gives their
type as an integer (e.g., SOCK_STREAM). Add this for compatibility with
standard Python. It's needed for ssl, which currently just grabs the
value directly from an internal structure (naughty!)
2024-03-21 13:54:40 -05:00
7e7918ea80
socketpool: alphabetize dict names
2024-03-21 13:54:40 -05:00
foamyguy
7fd13b41b2
update busdisplay docstring example code
2024-03-21 11:31:56 -05:00
Scott Shawcroft
e81e5587a2
Merge pull request #9062 from dhalbert/nrf-to-nordic
...
rename ports/nrf to ports/nordic
2024-03-20 09:48:12 -07:00
Dan Halbert
dc69c29dac
rename ports/nrf to ports/nordic
2024-03-19 17:36:57 -04:00
CDarius
d8a4c5088d
Fix documentation
2024-03-19 10:21:11 +01:00
CDarius
bb683fa4cf
Renamed module 'keypaddemux' in 'keypad_demux' and fix documentation
2024-03-19 09:59:02 +01:00
CDarius
8883416349
Update shared-bindings/keypaddemux/DemuxKeyMatrix.c
...
Co-authored-by: Dan Halbert <halbert@adafruit.com>
2024-03-18 17:43:37 +01:00
CDarius
8f1a4fdbc0
Fix documentation
2024-03-18 17:34:05 +01:00
CDarius
88b4e38625
Moved DemuxKeyMatrix in the keypaddemux module
2024-03-18 17:11:34 +01:00
CDarius
d7bc2c26d7
Disabled DemuxKeyMatrix in all atmel-samd boards. Some boards do not have enuogh flash space
2024-03-13 12:12:38 +01:00
CDarius
b0f67be079
Merge branch 'main' into cardputer_keyboard
2024-03-12 10:30:53 +01:00
CDarius
c5c78d3235
Moved DemuxKeyMatrix from board specific to a shared module
2024-03-12 10:28:08 +01:00
RetiredWizard
46c077766b
Fix serial_bytes_available documentation
2024-03-11 00:51:53 -04:00
Scott Shawcroft
8d16e8e45f
Tweak watchdog
...
* Make setting timeout "feed" the watchdog.
* Fix #9010 , timing on ESP
2024-03-06 12:17:31 -08:00
Dan Halbert
ffa45dedb1
Merge pull request #8989 from MariuszCwikla/hid_interface_name
...
usb_hid.set_interface_name
2024-03-03 10:22:27 -05:00
Mariusz Ćwikła
52c38c8914
usb_hid.set_interface_name: use port_malloc to allocate memory for interface name
2024-03-03 09:11:59 +01:00
MariuszCwikla
bf0f9e4125
Reword usb_hid.set_interface_name
...
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2024-03-02 13:32:19 +01:00
Scott Shawcroft
a13e65d2d1
Add specific conf.py for RTD
2024-02-29 10:51:41 -08:00
Mariusz Ćwikła
898708a1cc
usb_hid.set_interface_name
2024-02-28 16:34:34 +01:00
Dan Halbert
c219d89b1f
Merge pull request #8820 from romkey/8790-ap-connected-devices
...
New methods to get list of associated stations in access point mode and get maximum number of stations that can be associated
2024-02-22 09:28:53 -05:00
Dan Halbert
135f4f90a1
Merge pull request #8966 from tannewt/samd_pulsein_reset
...
Switch to finaliser for PWMOut and audiopwmio
2024-02-21 21:14:38 -05:00
Scott Shawcroft
777d79a6af
Switch to finaliser for PWMOut and audiopwmio
...
Fixes #8726 which was caused by a mix of bulk reset and finaliser
use.
Work towards #8960 .
2024-02-21 11:53:29 -08:00
Scott Shawcroft
605c39c8db
Fix ssl.SSLSocket bind() error checking
...
Non-ssl sockets now return size_t error numbers, not bool.
Fixes #8947
2024-02-20 15:46:06 -08:00
John Romkey
d1a10a8f42
removed max_stations call - difficult to do properly on Espressif and no one asked for it
2024-02-20 10:02:43 -08:00
John Romkey
b0800eeee8
updated doc string on stations_ap
2024-02-18 21:57:31 -08:00
John Romkey
d0bfd3dae9
Merge branch 'main' into new
2024-02-18 21:50:30 -08:00
John Romkey
608c01a4d3
stations_ap now returns None instead of throwing an exception if not in AP mode
...
return value is now a list of named tuples with three elements
IP address is now None instead of 0.0.0.0 if there's no lease information
2024-02-18 21:47:52 -08:00
Scott Shawcroft
9f3987aa3c
Require explicit socket port reuse
...
Doing it implicitly can lead to mistaken socket leaks and reuse.
It now matches CPython.
Fixes #8443
2024-02-16 14:31:19 -08:00
294d563d04
Merge pull request #8928 from tannewt/imx_fixes
...
Numerous iMX fixes and SDK update
2024-02-16 10:51:01 -06:00
Scott Shawcroft
4d1f558361
Numerous iMX fixes and SDK update
...
* Fixes #4954 . Leaving GPIO in output mode messed with ADC readings.
* Fixes #8018 and fixes #6537 . UART rx was more complicated than it needed to be.
* Fixes #5581 . uart reset is handled by finalizer. Added i2c_reset()
call and reservation check.
2024-02-15 15:34:20 -08:00
9abe273afa
mbedtls: move to shared-module
...
this enables the implementation to be shared among ports.
2024-02-15 13:30:09 -06:00
0d1e4dbbb0
random: fix getrandbits(0)
...
this is defined by python (returns 0) and tested in a test
2024-02-13 17:00:52 -06:00
85525c7e63
Use MICROPY_FLOAT_CONST
2024-02-13 17:00:52 -06:00
Dan Halbert
49d952c516
Merge pull request #8909 from tannewt/replace_legacy_esp_drivers
...
Remove old pcnt, rmt and timer group drivers
2024-02-13 17:58:08 -05:00
Scott Shawcroft
d1e710fb4b
Merge remote-tracking branch 'adafruit/8.2.x' into merge_in_8.2.x
2024-02-13 11:18:56 -08:00
RetiredWizard
44e58624ed
Add fixes to a couple incorrect type annotations ( #8895 )
2024-02-13 13:07:57 -05:00
Scott Shawcroft
b1609ab552
Remove old pcnt, rmt and timer group drivers
...
The new ones handle resource tracking for us. They also do a
better job running when the flash cache is disabled, which is the
source of bugs when interacting with flash over USB.
Fixes #6998 and fixes #8379
2024-02-12 16:09:25 -08:00
RetiredWizard
2490303a23
Add pre-commit changes (black 24.11) formattings changes
2024-02-12 16:56:21 -05:00
foamyguy
0ea8e58aec
example code Bitmap argument
2024-02-11 16:50:58 -06:00
9a71fdb93b
Fix a couple of incorrect type annotations
...
h/t @justmobilize in https://github.com/adafruit/circuitpython/issues/8891
2024-02-08 14:59:58 -08:00
Scott Shawcroft
50acd03d1d
Fix type stub
2024-02-07 13:51:34 -08:00
Scott Shawcroft
e82f7be485
Merge remote-tracking branch 'adafruit/main' into esp_parallelbus
2024-02-07 10:56:14 -08:00
foamyguy
3c969c41ef
remove if, remove +/- 1, add blit test
2024-02-05 09:32:22 -06:00
foamyguy
00a31147f0
code format
2024-02-03 17:27:16 -06:00
foamyguy
d1f9579b84
only validate range if max > min
2024-02-03 17:18:43 -06:00
3fbbc7597b
fix markup
2024-01-31 12:42:48 -06:00