microDev
df13bef3a1
Merge pull request #5220 from tannewt/fix_esp_i2c_display
...
Allocate I2C mutex with IDF
2021-08-25 08:42:11 +05:30
microDev
5484a2de25
Merge pull request #5219 from tannewt/multiple_status_dotstars
...
Support multiple status dotstars
2021-08-25 08:38:09 +05:30
Scott Shawcroft
0552ce2d3b
Allocate I2C mutex with IDF
...
This keeps the mutex info in the same spot in memory. "Statically
allocating it" with CircuitPython meant that the buffer moved when
the I2C object is moved to keep it alive for a display.
Fixes #4962
2021-08-24 16:06:14 -07:00
Scott Shawcroft
f9f3894888
Support multiple status dotstars
...
Only supporting one left a white dotstar stranded.
Fixes #5170
2021-08-24 14:35:11 -07:00
Jeff Epler
bef07961ab
raspberrypi: audiopwmout: subtle for #5092
...
I noticed that the loop over 65535 possible denominators took a long time,
causing up to 100ms wait for a sound sample to start playing!
This algorithm, adapted from an algorithm shown in Python's fractions.py,
is guaranteed to find the best denominator in a small number of steps
(I think log2-many steps but I'm not sure). In practice, it means the time
between samples playing is just 10ms, and some of that is recreating the
sine wave sample in Python each time.
It often finds the same solution as the old code, but sometimes it finds
one a bit better since it compares the ratios using float point instead
of integer arithmetic.
2021-08-24 16:33:20 -05:00
Jeff Epler
77b0c76a37
raspberrypi: audiopwmout: simple fix for #5092
2021-08-24 15:54:06 -05:00
microDev
2e41550770
Merge pull request #5210 from DavePutz/issue_5091
...
Change optimizer option so RP2040 DEBUG builds work
2021-08-24 12:24:01 +05:30
root
0e3aa27794
Change optimizer option so RP2040 DEBUG builds work
2021-08-23 21:37:34 -05:00
Dan Halbert
ce5e267143
shrink thunderpack_v11; fix PulseOut doc
2021-08-23 21:57:29 -04:00
Dan Halbert
7587a521cb
Merge pull request #5145 from FoamyGuy/bitmaptools_paint_fill
...
Bitmaptools boundary_fill
2021-08-23 16:20:38 -04:00
Dan Halbert
fa9a98d96c
Merge pull request #5206 from microDev1/patch
...
Turn off `synthio` on `pca10100`
2021-08-23 16:20:10 -04:00
Scott Shawcroft
6d49a9f0c5
Merge pull request #5205 from jepler/deprecate-vertical-scroll
...
Deprecate Display's constructor arg set_vertical_scroll
2021-08-23 12:52:12 -07:00
microDev
533eab5b7f
turn off synthio
on pca10100
2021-08-23 23:33:55 +05:30
Scott Shawcroft
935888927e
Merge pull request #5196 from dhalbert/samd-audio-fixes
...
improve SAMD audio DMA
2021-08-23 10:27:59 -07:00
Scott Shawcroft
6f9078c546
Merge pull request #5202 from dhalbert/nrf-background-callback-critical-section
...
nrf: remove critical section around sd_app_evt_wait()
2021-08-23 09:46:12 -07:00
microDev
57b4d0176f
Merge pull request #5077 from microDev1/atexit
...
Add atexit module
2021-08-23 19:49:46 +05:30
Jeff Epler
379461df7d
Deprecate Display's constructor arg set_vertical_scroll
2021-08-23 09:17:59 -05:00
Dan Halbert
c72c679b1a
nrf: remove critical section around sd_app_evt_wait()
2021-08-22 19:44:03 -04:00
foamyguy
4c95150dab
eol file
2021-08-22 08:53:10 -05:00
foamyguy
707f2e25af
disable bitmaptools on devices without enough room
2021-08-22 08:52:12 -05:00
Dan Halbert
57841dc92b
Merge pull request #5171 from tannewt/unicode_filenames
...
Turn on unicode for FATFS
2021-08-21 16:31:54 -04:00
Dan Halbert
046372d840
put back some dynossat_edu_obc pins
2021-08-21 16:14:09 -04:00
Dan Halbert
b8b23c97d9
improve SAMD audio DMA
2021-08-21 14:34:37 -04:00
microDev
208ec71372
Merge pull request #5190 from jepler/issue4883
...
samd: diagnose out of range I2C frequency
2021-08-21 08:00:50 +05:30
microDev
f6d1caabc9
Merge pull request #5182 from tannewt/fix_imx
...
Check background pending before sleep
2021-08-21 08:00:10 +05:30
Jeff Epler
26d33658ea
samd: diagnose out of range I2C frequency
...
The frequency divisor is limited to 255, which gives 48MHz/2/255 ~= 94.1kHz as
the lowest speed.
Without this change, values below this cut-off gave higher frequencies instead,
which didn't appear to have any relation to the frequency value requested.
Closes : #4883
2021-08-20 15:22:35 -05:00
Scott Shawcroft
490096a480
Turn on advanced MP api for unix build
2021-08-20 12:53:07 -07:00
Scott Shawcroft
9f051ec7bf
Fix usb calibrated SAMD21 builds
2021-08-20 12:45:59 -07:00
microDev
25437dcb33
Merge branch 'main' into atexit
2021-08-20 09:45:54 +05:30
microDev
60c0271e72
Merge pull request #5173 from jepler/issue3447
...
Update all implementations of spi read to honor write_value
2021-08-20 09:31:20 +05:30
microDev
7a0f8ae87f
Merge pull request #5175 from jepler/canio-timeout
...
canio: Run background tasks while waiting for message reception
2021-08-20 09:25:46 +05:30
Mark
f9f106b58d
Merge pull request #5123 from gamblor21/keypad_dup_pin_check
...
Check for duplicate pins in rows and columns
2021-08-19 22:20:04 -05:00
Scott Shawcroft
5c6e80a2bb
Shrink builds by defining advanced micropython API
...
Also, ignore more pins on SAMD boards and disable EXFAT on others.
2021-08-19 16:49:33 -07:00
Dan Halbert
419d374d3c
Merge pull request #5181 from kattni/macropad-speaker-enable
...
Add SPEAKER_ENABLE to MacroPad
2021-08-19 19:32:28 -04:00
Kattni Rembor
1185228b90
Remove SPEAKER_SHUTDOWN pin.
2021-08-19 15:18:19 -04:00
Scott Shawcroft
d2860b58b0
Check background pending before sleep
...
There is a race between when we run background tasks and when we
sleep. If an interrupt happens between the two, then we may delay
executing the background task. On some ports we checked this for
TinyUSB already. On iMX RT, we didn't which caused USB issues.
This PR makes it more generic for all background tasks including
USB.
Fixes #5086 and maybe others.
2021-08-19 12:18:13 -07:00
Jeff Epler
6abcac4ed6
not needed on rp2040
2021-08-19 13:56:31 -05:00
Jeff Epler
371f166de1
canio: Run background tasks while waiting for message reception
...
Closes : #5004
2021-08-19 13:55:30 -05:00
Jeff Epler
6ea136987e
run codeformat
2021-08-19 13:54:13 -05:00
Kattni Rembor
ae923db06d
Add SPEAKER_ENABLE pin to MacroPad.
2021-08-18 17:30:42 -04:00
Jeff Epler
cabe96e188
canio: Run background tasks while waiting for message reception
...
Closes : #5004
2021-08-18 11:39:40 -05:00
Scott Shawcroft
0390f812be
Fix RP2040 I2C instance check
2021-08-18 08:55:52 -07:00
Scott Shawcroft
e0ce5ff045
Fix some builds by disabling exfat
2021-08-18 08:22:29 -07:00
Jeff Epler
2b64318a57
Update all implementations of common_hal_busio_spi_read to honor write_value
...
(nrf, rp2040, and cxd56)
.. as well as a misleading comment that said that read always output
zeros.
Closes : #3447
2021-08-18 10:20:40 -05:00
gamblor21
d02a4b9f71
Removed ulab to make space in blackpill with flash board
2021-08-18 10:16:44 -05:00
Dan Halbert
5b0009cbc4
Merge pull request #5151 from dhalbert/usb_hid-changes
...
Support multiple reports per device in usb_hid
2021-08-17 17:14:28 -04:00
Scott Shawcroft
2d8346d23b
Merge pull request #5163 from dhalbert/fix-MICROPY_HW-definitions
...
correct some status LED pin defns per #5161
2021-08-17 12:41:00 -07:00
Scott Shawcroft
a5143d284b
Merge pull request #5161 from ZodiusInfuser/patch_micropy
...
Removed unnecessary defines from Pimoroni board files
2021-08-17 12:40:12 -07:00
Dan Halbert
a0c340f727
Update ports/esp32s2/boards/microdev_micro_s2/mpconfigboard.h
...
Co-authored-by: microDev <70126934+microDev1@users.noreply.github.com>
2021-08-17 11:26:43 -04:00
Dan Halbert
064e086570
correct some status LED pin defns per #5161
2021-08-17 09:33:34 -04:00