Commit Graph

27823 Commits

Author SHA1 Message Date
Jeff Epler
d7c86c0e3e
refactor keypad to share more code
This saves 444 bytes on the pygamer build (both commits taken together)

testing performed:
 * pygamer (samd51) with ShiftRegisterKeys
 * macropad (rp2040) with Keys
 * UM feather s2 (esp32-s2) with KeyMatrix

Result:
 * all ports still worked nicely
 * keys held down at start always registered (>2 trials all boards, >100 trials esp32-s2)
 * keys held down are immediately registered after reset() (>100 trials esp32-s2)
 * double .reset() is OK, accessing .events throws (only tested esp32-s2)
2022-04-05 14:50:30 -05:00
Jeff Epler
203dad11bf
keypad: scan immediately on construct, .reset() 2022-04-05 14:50:30 -05:00
Dan Halbert
7ad35bf67d
Merge pull request #6239 from ReeceRobinson/reecer-hid-usage-fix
Enable support for extended HID usage page and usage. Related to Supp…
2022-04-05 12:40:18 -04:00
root
b993313ac1 Don't reset GPIO4 (used for voltage monitoring) 2022-04-05 11:30:12 -05:00
Jeff Epler
c89af99f59
Advise about ways to improve mp3 playback
Closes: #6133
2022-04-05 09:18:01 -05:00
Jeff Epler
d24f3b812d
Document TileGrid limitation to tile values 0..255
Closes #6149
2022-04-05 09:07:35 -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
e0827eb52a
Merge pull request #6238 from dhalbert/ringbuf-free-fix
Free ringbuf buffer by relying on gc, not gc_free()
2022-04-05 08:43:36 -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
c3539f0948
bump espressif CI cache id 2022-04-05 09:12:02 -04:00
Dan Halbert
259e56062f
Update mpy-cross/mpy-cross.mk 2022-04-05 09:10:25 -04:00
Dan Halbert
204a1d3e7e
Merge pull request #6231 from jepler/fix-build-clang13
py/vm: Prevent array bound warning when using -MP_OBJ_ITER_BUF_NSLOTS.
2022-04-05 09:01:40 -04:00
Dan Halbert
c3cf9267b8
Merge pull request #6230 from jepler/audio-fix-looping
MP3Decoder: Accurately inform when no more data
2022-04-05 09:00:54 -04:00
Dan Halbert
4cccc1a036 handle clearing both RXIC and RTIC interrupts 2022-04-04 23:55:08 -04:00
Dan Halbert
0da10d802c
advance espressif CI cache id 2022-04-04 22:36:58 -04:00
Dan Halbert
70add52775 advance espressif CI cache key 2022-04-04 22:15:31 -04:00
Reece Robinson
4b0f80f081 Enable support for extended HID usage page and usage. Related to Support HID Usage Pages and Usages >255 #5529 2022-04-05 13:54:07 +12:00
Dan Halbert
076d9f74a5
Merge pull request #6233 from jepler/nrf-fix-pwm-reset
nrf: Correctly mark PWM unused during reset
2022-04-04 20:46:07 -04:00
Dan Halbert
b29b7bfe32 Free ringbuf buffer by relying on gc, not gc_free() 2022-04-04 20:34:49 -04:00
EmergReanimator
f7fd168396 Incorporated feedback from PR. 2022-04-04 21:47:05 +02:00
Jeff Epler
fa4b4fa639
nrf: Correctly mark PWM unused during reset 2022-04-04 10:08:54 -05:00
Damien George
a43cfdd274
py/vm: Prevent array bound warning when using -MP_OBJ_ITER_BUF_NSLOTS.
This warning can happen on clang 13.0.1 building mpy-cross:

../py/vm.c:748:25: error: array index -3 refers past the last possible
  element for an array in 64-bit address space containing 64-bit (8-byte)
  elements (max possible 2305843009213693952 elements)
  [-Werror,-Warray-bounds]
                        sp[-MP_OBJ_ITER_BUF_NSLOTS + 1] = MP_OBJ_NULL;
                        ^  ~~~~~~~~~~~~~~~~~~~~~~~~~~~

Using pointer access instead of array access works around this warning.

Fixes issue #8467.

Signed-off-by: Damien George <damien@micropython.org>
2022-04-04 09:22:30 -05:00
Jeff Epler
683ece76db
MP3Decoder: Accurately inform when no more data
Some audio implementations, notably samd, really don't like it when
you return 0 samples of data. This was the case when reaching the
end of an MP3 file.

Now, we read forward in an MP3 file to the next sync word during
"get_buffer", so that we can accurately return GET_BUFFER_DONE when the
NEXT call WOULD HAVE resulted in 0 samples.

Tested with @gamblor21's "laugh.mp3" file on a Trellis M4 Express.
2022-04-04 09:16:27 -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
gamblor21
161c992fa0 Improve help text 2022-04-02 09:19:30 -05:00
Dan Halbert
87e59a4448
Merge pull request #6224 from dhalbert/revert-pin-typer-click
revert pins of click and typer
2022-04-02 09:22:28 -04:00
EmergReanimator
8162a5de4b Fixed code style formatting according to pre-commit rules. 2022-04-02 12:47:43 +02:00
EmergReanimator
d9bf79d826 Fixed internal flash filesystem stub build issue
Internal filesystem stubs is used when both INTERNAL_FLASH_FILESYSTEM,
DISABLE_FILESYSTEM are set.
2022-04-02 12:39:16 +02:00
Dan Halbert
e31d84d890
Merge pull request #6222 from todbot/main
espressif_esp32s3_usb_otg_n8 add board.DISPLAY since already set up by CirPy
2022-04-01 23:49:04 -04:00
Dan Halbert
d20ae5ab24 revert pins of click and typer 2022-04-01 20:51:11 -04: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
a4e6cba59b
Merge pull request #6196 from weblate/weblate-circuitpython-main
Translations update from Hosted Weblate
2022-03-30 21:12:37 -04:00
Dan Halbert
faca1ec3bf
Merge pull request #6212 from dhalbert/7.2.x-6103-backport
7.2.x #6103 backport
2022-03-30 19:47:57 -04:00
Hosted Weblate
66fc8af96a
Merge remote-tracking branch 'origin/main' 2022-03-30 19:35:53 +02: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
Dan Halbert
cf127df560
Merge pull request #6211 from dhalbert/7.2.x-6210-backport
backport click and typer pins #6210 to 7.2.x
2022-03-29 12:11:54 -04:00
Jeff Epler
29eed5c21f also pin typer for windows builds 2022-03-29 10:46:58 -04:00
Dan Halbert
d5868b42ff Pin typer and click to have compatible versions 2022-03-29 10:46:58 -04:00