Commit Graph

9702 Commits

Author SHA1 Message Date
RetiredWizard
9cc27be0bf Removed broadcom-peripherals 2023-02-22 20:00:53 -05:00
Dan Halbert
460dda0426
Merge pull request #7616 from dhalbert/8.0.x-fix-atmel-uart
Fix pad assignments on atmel-samd UART
2023-02-22 17:24:29 -05:00
Scott Shawcroft
1acf65ee22
Fix pwmio on iMX RT.
It now handles deinit, never_reset and sharing tracking. PWM
now runs in the WAIT state as well during a time.sleep().

_reset_ok() was removed because it was called in one spot right
before deinit().

Some PWMOut were also switched to a bitmap for use instead of
reference count. That way init and deinit are idempotent.

Fixes #6589. Fixes #4841. Fixes #4541.
2023-02-22 11:22:39 -08:00
Bill Sideris
1461e9448d
Merge branch 'adafruit:main' into wspico-psram-speedup 2023-02-22 20:30:54 +02:00
Scott Shawcroft
c2c7b9345e
Merge pull request #7625 from ftab/ftab-lyrat
Add ESP32-LyraT board
2023-02-22 10:27:40 -08:00
Scott Shawcroft
b67c0b7949
Merge pull request #7585 from bill88t/settings-toml-pystack
Settings.toml-configurable pystack
2023-02-22 10:13:31 -08:00
RetiredWizard
c73f008688 Make vcmailbox call change for AUX SPI instances 2023-02-22 11:58:13 -05:00
Jeff Epler
de9233f84a
raspberrypi: SSLSocket: raise OSError when appropriate
Rather than returning the negative error value.

This is intended to close #7606, though I did not test with mqtt.
Instead, I created a simple standalone test program:
```python
import wifi, socketpool, ssl, time
#wifi.radio.connect(<omitted>)
import socketpool
socket = socketpool.SocketPool(wifi.radio)
ctx = ssl.create_default_context()

b = bytearray(8)

s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sss = ctx.wrap_socket(s, server_hostname='example.com')
sss.connect(('example.com', 443))
sss.setblocking(False)
r = sss.recv_into(b)
print(r, b)  # prints 4294967285 which is -11 as unsigned
sss.close()
```

Before the change, r was the out of range value 4294967285. After the
change, the recv_into call raises OSError instead.

This is comparable to the behavior on standard Python, though an
SSLWantReadError is raised instead.

The original (mis)behavior seems to match what was uncovered deep inside
minimqtt by adding logging:
```
370.578: DEBUG - PKT: _sock_exact_recv: recv_len = 4294967285
```
2023-02-22 10:07:48 -06:00
Dennis Field
d1f5004121 Add ESP32-LyraT board 2023-02-22 10:54:44 -05:00
Bill Sideris
1d12014ec7
disable pixelmap 2023-02-22 13:31:15 +02:00
RetiredWizard
7c717a54f3 Switch to "unmeasured" core clock speed check 2023-02-21 22:10:36 -05:00
Bill Sideris
1ea118684c
120M qspi 2023-02-22 00:49:55 +02:00
Dan Halbert
c7d9eecfd6
Merge pull request #7623 from DavePutz/issue_7606
Correctly raise OS error in socketpool_socket_recv_into()
2023-02-21 16:17:30 -05:00
Scott Shawcroft
de5f58a61d
Merge branch 'main' into banglejs2 2023-02-21 12:04:28 -08:00
Scott Shawcroft
a8b34bd067
Merge pull request #7549 from gamblor21/gif_displayio_support
Animated GIF support
2023-02-21 11:39:29 -08:00
root
7e6e824d56 Correctly raise OS error in socketpool_socket_recv_into() 2023-02-21 13:38:29 -06:00
Bill Sideris
650c4c5d92
pystack+ rainbow- 2023-02-21 20:50:07 +02:00
Bill Sideris
5dba32ed07
Try to pass ci with rainbowio 2023-02-21 17:42:08 +02:00
Bill Sideris
b0384b5721
Merge branch 'adafruit:main' into settings-toml-pystack 2023-02-21 13:35:19 +02:00
Dan Halbert
8ffa7b1d55 Add Adafruit HUZZAH32 breakout 2023-02-20 20:04:22 -05:00
Dan Halbert
2684aeb838 don't check for RX and TX both none in ports: now checked in shared-bindings 2023-02-20 19:11:16 -05:00
Dan Halbert
6d51356324 Fix pad assignments on atmel-samd UART 2023-02-19 20:42:44 -05:00
Milind Movasha
f1b6deacda
Yet another formatting change related to whitespaces 2023-02-18 14:49:11 +05:30
Milind Movasha
b2c6fad713
Additional formatting change related to whitespaces 2023-02-18 14:45:37 +05:30
Milind Movasha
4683e48337
Further formatting changes related to whitespaces 2023-02-18 14:40:12 +05:30
Milind Movasha
ead5751803
Pre-commit: Done the formatting changes
Pre-commit: Fixed compilation error for other ESP32C3/ESP32S3/ESP32H2 boards
Review comment: Removed the self->pin NULL check
Review comment: Using raise_ValueError_invalid_pin when adc_index is not ADC_UNIT1 for ESP32
Review comment: Optimized the code to set data in buffer from DMA results
Fix: For ESP32C3 boards continuing collecting samples after channel mismatch as DMA runs in alternating UNIT mode
Fix: For ESP32S3 and ESP32H2 setting conversion mode to type2
2023-02-18 14:26:50 +05:30
MicroDev
508f2015b6
Merge pull request #7605 from Neradoc/pico-uart-in-use-error
Tweak the UART in use message on RP2040
2023-02-18 08:35:52 +05:30
Neradoc
13716c9c30 tweak the UART in use message on RP2040 2023-02-17 23:29:44 +01:00
Milind Movasha
58532ece3f
Moved CIRCUITPY_ANALOGBUFIO flag to correct place in alphabetical order 2023-02-17 23:50:41 +05:30
Bill Sideris
f71b418a7d
Merge branch 'adafruit:main' into settings-toml-pystack 2023-02-17 16:58:03 +02:00
Bill Sideris
8a4a408707
Disable settable-pystack too to make more space 2023-02-17 16:35:16 +02:00
Milind Movasha
5635077853
Espressif analogbufio implementation 2023-02-17 19:19:15 +05:30
Bill Sideris
388279d9c1
Disable rainbowio instead. 2023-02-17 15:24:27 +02:00
Bill Sideris
17e2598fa1
Revert "settable pystack = 0 for kicksat-sprite"
This reverts commit f05c730a01.
2023-02-17 15:23:01 +02:00
Bill Sideris
a2c22521b4
Updates to waveshare-esp32s2-pico board definition 2023-02-17 15:16:18 +02:00
Bill Sideris
f05c730a01
settable pystack = 0 for kicksat-sprite 2023-02-17 15:14:09 +02:00
Dan Halbert
bbadc00599
Merge pull request #7577 from dhalbert/safemode-py
Implement safemode.py
2023-02-16 14:15:20 -05:00
Gregory Neverov
fd1c3ca784 Increase number of LWIP timers for MDNS 2023-02-15 16:40:45 -08:00
Scott Shawcroft
931c7c1c51
Add Bangle.js 2, JDI memory displays and ACeP epd
This 2-in-1 PR started with the goal of support the Bangle.js 2
smartwatch with *no USB*.
* Adds "secure" DFU build support with a committed private key.
* Adds 3-bit color support with one dummy bit for the JDI memory display
* Allows nrf boards to have a board_background_task() run in RUN_BACKGROUND_TASK.
  This is needed because the Bangle.js 2 uses the watchdog to reset.
* Renamed port_background_task() to port_background_tick() to indicate it
  runs on tick, not RUN_BACKGROUND_TASK.
* Marks serial connected when the display terminal is inited. This means
  that safe mode messages show up on the display.

ACep, 7-color epaper displays also pack 3 bits in 4. So, I added that
support as well.
* Adds 3-bit ACeP color support for 7-color e-paper displays. (Not
  watch related but similar due to color depth.)
* Allows a refresh sequence instead of a single int command. The 7" ACeP
  display requires a data byte for refresh.
* Adds optional delay after resetting the display. The ACeP displays
  need this. (Probably to load LUTs from flash.)
* Adds a cleaning phase for ACeP displays before the real refresh.

For both:
* Add dither support to Palette.
* Palette no longer converts colors when set. Instead, it caches
  converted colors at each index.
* ColorConverter now caches the last converted color. It should make
  conversions faster for repeated colors (not dithering.)
2023-02-15 15:03:40 -08:00
Dan Halbert
f79459cb70 Try -fweb -frename-registers to make more SAMD21 builds fit 2023-02-15 16:38:24 -05:00
Dan Halbert
fe40181144 Turn back on for pewpew_m4, turn off terminalio for incomplete fonts in pewpew_m4 2023-02-15 14:45:15 -05:00
MicroDev
32d86c3ea3
Merge pull request #7580 from adafruit/8.0.x
Merge 8.0.x up to main
2023-02-15 09:16:51 +05:30
MicroDev
48077daa7f
Merge pull request #7581 from gneverov/issue_7333
Add function common_hal_busio_uart_never_reset for rp2
2023-02-15 09:16:25 +05:30
Scott Shawcroft
0be53977f9
Merge pull request #7570 from RetiredWizard/broadcomNeopix
Broadcom pi zero2w neopixel misbehaving/crash fix
2023-02-14 09:56:18 -08:00
Gregory Neverov
98b61279e4 Add function common_hal_busio_uart_never_reset for rp2 2023-02-14 09:05:24 -08:00
Dan Halbert
0f099cdb31 Turn off safemode.py for pewpew_m4 2023-02-13 22:52:39 -05:00
Dan Halbert
c39a51527f Turn safemode.py off on non-external-flash SAMD21 builds 2023-02-13 21:48:03 -05:00
RetiredWizard
6ebb911a4d pre-commit formatting fix 2023-02-13 21:06:47 -05:00
RetiredWizard
09ccf2988d Replace bitwise or with boolean or 2023-02-13 21:04:11 -05:00
RetiredWizard
39d3d97ea4 Remove unnecessary memory barriers 2023-02-13 19:46:35 -05:00
Mark
fa435468fa
Merge branch 'main' into gif_displayio_support 2023-02-13 18:30:51 -06:00
Dan Halbert
d8231f1588 Implement safemode.py 2023-02-13 18:26:38 -05:00
gamblor21
be67cb72ad Disable for pewpew_m4 for space 2023-02-13 17:04:54 -06:00
RetiredWizard
dcb6955fa5 use boolean and symbols 2023-02-13 14:58:37 -05:00
RetiredWizard
791aefd388
Update ports/broadcom/common-hal/neopixel_write/__init__.c
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2023-02-13 14:44:54 -05:00
RetiredWizard
575f177dd0
Update ports/broadcom/common-hal/neopixel_write/__init__.c
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2023-02-13 14:44:46 -05:00
Scott Shawcroft
7d236f2782
Merge pull request #7547 from ajs256/add_sprig
Add new board hack_club_sprig
2023-02-13 10:25:04 -08:00
Pierre Constantineau
676cbb308d minor update to boards.c to fix mismatched number of LEDs causing LEDs not to be reset 2023-02-13 09:52:18 -06:00
gamblor21
5c2bd38684 Removed gifio module from tests 2023-02-13 09:40:16 -06:00
Dan Halbert
ec90d79d61
Merge pull request #7553 from kamtom480/sdk2.6.0
spresense: update SDK to 2.6.0
2023-02-13 09:04:35 -05:00
RetiredWizard
1679790481 Tweaked to run without delays on zero w 2023-02-11 20:21:25 -05:00
RetiredWizard
359a27e166 Pre-commit is stubborn 2023-02-11 12:19:21 -05:00
RetiredWizard
2104708c58 missed a trailing space 2023-02-11 12:17:55 -05:00
RetiredWizard
f29cd4a836 Pre-commit fix trim trailing whitespace 2023-02-11 12:13:34 -05:00
RetiredWizard
a462a316bd Fix pre-commit formatting 2023-02-11 12:10:03 -05:00
RetiredWizard
a2bbca1428 Broadcom Raspberry Pi Zero2W neopixel timing fix
These changes result in working neopixel functionality. I've tested on
both the zero2w and the pi4b (The 4b didn't exhibit the original issue)
and the boards now behave properly with 1 to 30 pixels and the board hanging
no longer occurs.

Remove mod that didn't help during testing
Restoring back to original structure
Replace 2 microsecond delay w/deterministic loop
Remove unneded check for empty queue

Put transmit delay outside loop so Queue is used

Make sure last transmission is complete
2023-02-11 11:38:11 -05:00
Ubuntu
e125370cd4 first commit 2023-02-09 01:59:59 +00:00
Jeff Epler
b9f689adf4 Use lowest drive level for PIO 2023-02-08 16:18:58 -06:00
Alex
e78143a2f5
fix copyright header 2023-02-05 11:18:23 -08:00
MicroDev
6c54bc9fd9
more espnow changes
- improve docs
- use existing list methods
- change `recv` to `read`
2023-02-05 12:31:08 +05:30
MicroDev
c0a9c71057
replace ESPNowStats with Communicate class and more 2023-02-05 01:42:32 +05:30
Alex Sirota
07e8506b79 Add board hack_club_sprig 2023-02-03 20:19:11 -08:00
Jeff Epler
b03eed32fb espressif: i2sout: wait a short time to succesfully write data 2023-02-03 14:22:03 -06:00
Jeff Epler
41dff5d8cc espressif: i2sout: don't needlessly set sample rate
this may reduce glitches when starting samples
2023-02-03 14:22:03 -06:00
Jeff Epler
75ed28665c espressif: i2sout: enlarge buffers 2023-02-03 14:22:03 -06:00
MicroDev
ff95e96160
add ESPNowStats class and more 2023-02-04 01:23:45 +05:30
Dan Halbert
f13e6d8758 update flash chip for Metro M7 1011 2023-02-03 11:56:42 -05:00
MicroDev
a1644f15ea
use esp error for espnow 2023-02-03 15:42:44 +05:30
MicroDev
cac90a6969
refactor common espnow functions 2023-02-03 12:35:06 +05:30
MicroDev
e30126e335
remove sync from espnow 2023-02-03 11:12:07 +05:30
MicroDev
f100838ae5
remove peers_table from espnow 2023-02-03 10:14:50 +05:30
Dan Halbert
aafec496c3
Merge pull request #7539 from DavePutz/issue_7419
Correct assignment of RMT channels on ESP32C3
2023-02-02 17:35:37 -05:00
root
750535d4af Correct assignment of RMT channels on ESP32C3 2023-02-02 14:55:57 -06:00
MicroDev
14c3b52b8d
Merge branch 'main' into espnow 2023-02-03 01:37:07 +05:30
MicroDev
7028a3adfe
rework espnow api 2023-02-03 01:32:28 +05:30
Gregory Neverov
77c6daf4b8 don't throw exception 2023-02-01 16:33:22 -08:00
MicroDev
ae4bb75e29
split espnow between bindings and common-hal 2023-02-01 18:53:58 +05:30
Kamil Tomaszewski
3fdebd4f60 spresense: Add HDR camera support 2023-02-01 12:37:29 +01:00
MicroDev
9c430d45d1
use truthiness of the object itself instead of any 2023-02-01 15:27:55 +05:30
MicroDev
d9d94eacca
run updated pre-commit 2023-02-01 13:38:41 +05:30
Dan Halbert
9ab0733a28
Merge pull request #7530 from BrainBoardz/main
BrainBoardz Neuron Commit (Final I Hope!) - Updated as Per Previous Instructions VID+PID Work
2023-01-31 23:33:34 -05:00
brainboardz
2656ccffe4 Commit01-31 2023-01-31 19:35:57 -05:00
Dan Halbert
2faa8a435a
Merge pull request #7510 from BPI-STEAM/CircuitPython-main
Update mpconfigboard.h  with LED definition for BPI-Bit-S2.
2023-01-31 16:08:10 -05:00
Scott Shawcroft
e1041a8625
Merge pull request #7509 from RetiredWizard/seeedc3
seeed_xiao_esp32c3 flash mode change to dio
2023-01-31 11:29:24 -08:00
Jeff Epler
b8d6f20308
Add front buttons as D0/1/2, matching the silk 2023-01-31 10:02:21 -06:00
brainboardz
f3b1ceeb81 Seventh Commit 2023-01-30 20:45:57 -05:00
brainboardz
f71b4bc018 Sixth Commit 2023-01-30 20:32:19 -05:00
brainboardz
e10816f34c Fifth Commit 2023-01-30 20:20:37 -05:00
brainboardz
3f3519e0ab Fourth Commit 2023-01-30 20:10:34 -05:00
brainboardz
7c525fdcb0 Third Commit 2023-01-30 19:54:11 -05:00