Scott Shawcroft
3e85cfe26b
Fix ESP and HCI build
2022-05-12 15:23:26 -07: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
Dan Halbert
0f3eb9f46e
espressif: check properly for pull values
2022-05-04 22:51:27 -04:00
Michael Wisslead
e63a327107
Bound PulseIn start indexes to maxlen.
2022-04-28 02:28:34 +00:00
Dan Halbert
4eeaf41edc
test and adjust NeoPixel timings on multiple products
2022-04-25 23:12:24 -04: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
Dominic Davis-Foster
f297e872d6
Account for divisor when overriding position.
2022-04-06 18:13:59 +01:00
Dan Halbert
99dc4029dc
Espressif: disable pull-up on AnalogIn creation
2022-04-06 11:33:56 -04:00
Dominic Davis-Foster
319ca8560c
Always configure the second PCNT channel.
2022-03-31 20:00:34 +01: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
Dominic Davis-Foster
6d025a239e
Add espressif rotaryio divisor support.
2022-03-28 09:04:02 +01:00
Michael Himing
f96cd7361d
Fix esp32s2 build
2022-03-27 10:09:23 +11: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
Michael Himing
686012426d
Espressif: Fix interrupts in UART workflow
2022-03-25 16:20:04 +11: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
6dd9db31b3
Add USB to Serial/JTAG support for REPL
...
Adds Adafruit QT Py C3 board that uses it. Also revamps size
check script to work for S3 and C3 as well.
Fixes #6030
2022-03-21 14:03:57 -07:00
Scott Shawcroft
92d946fcac
Guard against NULL result
2022-03-21 10:15:46 -07:00
Scott Shawcroft
6f0d62d85e
Formatting and shrink build size on C3
2022-03-18 12:05:54 -07:00
Jeff Epler
e9d81c2826
Add mdns module
...
This allows for CircuitPython to resolve a .local domain and find
other devices with MDNS services.
First step for #6174
2022-03-17 18:16:16 -07:00
Scott Shawcroft
96dd11a198
Update ESP-IDF to fix PinAlarm
...
Fixes #5973
2022-03-11 14:40:49 -08:00
Dan Halbert
1c8f671f0a
Merge pull request #6118 from pewpew-game/parallel-reset-optional
...
paralleldisplay: reset and read pins should be optional
2022-03-08 09:34:25 -05:00
Michael Himing
bc1dade304
Espressif: Fix i2c pullup detection
2022-03-08 16:39:24 +11:00
Radomir Dopieralski
b5ad78715c
Update ports/espressif/common-hal/paralleldisplay/ParallelBus.h
...
Co-authored-by: Dan Halbert <halbert@halwitz.org>
2022-03-05 21:48:00 +01:00
Radomir Dopieralski
f477848ac1
paralleldisplay: reset and read pins should be optional
...
The ``reset`` and ``read`` pins should be optional, but the espressif
code had several places where it assumed they are not, and a bug that
caused a crash on ``release_displays`` if they were made optional.
The bug was caused by the fields for storing pin numbers being set
to ``NO_PIN``, which has value of -1, while the fields have type
``uint8_t``. That set the actual value to 255, and a subsequent
comparison to ``NO_PIN`` returned false.
2022-03-05 18:54:12 +01:00
Scott Shawcroft
c4fb5f7df1
Allow ESP boards to customize how a pin is reset
...
This allows board code to override the default pull up reset state.
It is useful for pins that are already externally connected, pulled
or otherwise used by the board.
Fixes #5931
2022-02-17 16:32:29 -08:00
Dan Halbert
fe6e03f504
Merge pull request #6013 from tannewt/esp_ble_gatt_client
...
Add S3 GATT client support
2022-02-17 16:02:11 -05:00
Scott Shawcroft
65af10cd23
Tweak I2C and TFT power pin defaults
...
This should set the power to on by default without preventing the
user code from repeatedly using it.
Fixes #5903
2022-02-14 16:19:56 -08:00
anecdata
5742a12497
input validation consistent with esp-idf is moved to common-hal
2022-02-13 22:14:45 -06:00
anecdata
b559a0ee2a
new kwarg: wifi.radio.start_ap(max_connections=)
2022-02-12 13:34:57 -06:00
Scott Shawcroft
8958e7ef08
Add S3 GATT client support
...
This allows you to connect to GATT services on the other device.
It also adds connection initiation (GAP central).
More progress on #5926
2022-02-10 11:31:57 -08:00
Scott Shawcroft
c9b494b79f
Merge pull request #6006 from DavePutz/issue_5980
...
Correct ping timeout for espressif
2022-02-10 10:18:14 -08:00
root
6563f71545
Correct ping timeout for espressif
2022-02-09 15:58:25 -06:00
Scott Gauche
a8d8651873
Canonical C style for half_duplex = true/false
2022-02-08 23:13:22 -05:00
Scott Gauche
89ad767b8f
add half_duplex to spi constructs in other ports but raise not implemented errors
2022-02-08 22:25:23 -05:00
Scott Shawcroft
2964e966b1
Merge pull request #5958 from dhalbert/i2c-common-hal-write-read
...
I2c common hal write read
2022-02-01 11:08:50 -08:00
Dan Halbert
cc410ad6a3
common-hal I2C combined write_read
2022-01-31 22:03:30 -05:00
Scott Shawcroft
db7e72b43d
Fix BLE scanning forever on ESP32-S3
2022-01-31 15:45:43 -08:00
Dan Halbert
83e6e6690a
wip; works on espressif
2022-01-29 22:44:27 -05:00
Scott Shawcroft
019aecaa20
Support BLE advertising on ESP
...
Services and characteristics still won't work.
Progress on #5926
2022-01-27 17:40:37 -08:00
Dan Halbert
fff68c9f86
Merge pull request #5927 from tannewt/esp_ble_scan
...
Add BLE scanning for S3 and C3.
2022-01-27 13:05:24 -05:00
Scott Shawcroft
d9966c1724
Add TODOs and -Os for RISC-V
2022-01-26 17:07:20 -08:00
microDev
fa2d156d14
return default cpu frequency on espressif
2022-01-26 12:32:48 +05:30
Scott Shawcroft
b2e1dbd2df
Implement name and address get/set
2022-01-25 19:17:26 -08:00
Scott Shawcroft
5a6f456dbb
Add BLE scanning for S3 and C3.
...
Everything else should raise NotImplementedError.
First step in #5926
2022-01-25 16:28:46 -08:00
root
367a1d53c0
Fixes for pulsein on ESP32S3
2022-01-23 13:14:34 -06:00
Scott Shawcroft
35175715f9
Check target defined
2022-01-20 14:11:33 -08:00
Scott Shawcroft
d99847b410
Refactor pin reset on ESP
...
This makes it easier to blanket never reset flash and USB pins. It
also allows us to set a custom state after reset. The first case
is for the double tap reset that needs to be pulled low.
Fixes #5893
2022-01-20 12:40:41 -08:00
Scott Shawcroft
13db65566d
ESP NeoPixel fixes
...
This tweaks the RMT timing to better match the 1/3 and 2/3 of 800khz
guideline for timing. It also ensures a delay of 300 microseconds
with the line low before reset.
Pin reset is now changed to the IDF default which pulls the pin up
rather than CircuitPython's old behavior of floating the pin.
Fixes #5679
2022-01-19 16:29:07 -08:00
Dan Halbert
11848b1826
use GPIO_MODE_ instead of GPIO_MODE_DEF
2022-01-15 23:05:33 -05:00