Commit Graph

19722 Commits

Author SHA1 Message Date
Jeff Epler
542fb58673 add arrayblit 2021-03-15 20:36:44 -05:00
Jeff Epler
b33d77bfe8 disable bitmaptools on over-full board 2021-03-14 20:08:09 -05:00
Jeff Epler
651f54b4cc fix docs 2021-03-14 15:47:15 -05:00
Jeff Epler
094265cb86 bitmaptools.readinto: Fix diagnostics on atmel-samd builds 2021-03-14 15:36:20 -05:00
Jeff Epler
6e9a44bbfd make translate 2021-03-14 15:03:00 -05:00
Jeff Epler
9133b23a37 bitmaptools: Add readinto
When reading uncompressed bitmap data directly, readinto can work
much more quickly than a Python-coded loop.

On a Raspberry Pi Pico, I benchmarked a modified version of
adafruit_bitmap_font's pcf reader which uses readinto instead of
the existing code. My test font was a 72-point file created from Arial.

This decreased the time to load all the ASCII glyphs from 4.9 seconds to
just 0.44 seconds.

While this attempts to support many pixel configurations (1/2/4/8/16/24/32
bpp; swapped words and pixels) only the single combination used by
PCF fonts was tested.
2021-03-14 13:57:46 -05:00
Jeff Epler
d2563c57de
Merge pull request #4395 from weblate/weblate-circuitpython-main
Translations update from Weblate
2021-03-13 13:39:26 -06:00
Hosted Weblate
1fbfd4f5d5 Merge remote-tracking branch 'origin/main' into main 2021-03-13 18:50:34 +01:00
Dan Halbert
8e425a9354
Merge pull request #4393 from tannewt/raise_default_flash_speed
Speed up a bit more
2021-03-13 12:50:29 -05:00
Hosted Weblate
a339e31e4d Merge remote-tracking branch 'origin/main' into main 2021-03-13 01:51:32 +01:00
Scott Shawcroft
550eab2ddd
Merge pull request #4391 from tyomitch/patch-1
[vfs_fat_diskio] pdrv is not a drive number since f5f4cdae89
2021-03-12 16:51:29 -08:00
Hosted Weblate
a8ea24849f
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/
2021-03-13 01:50:44 +01:00
Scott Shawcroft
b413535ee1
Merge pull request #4376 from kmatch98/displayio_bitmap
add fill_region and draw_line to bitmap_tools
2021-03-12 16:50:39 -08:00
Scott Shawcroft
1b106de4e0
Merge pull request #4262 from DavePutz/issue_4111
Issue 4111 - Implement pulseio(pulsein) for RP2040
2021-03-12 16:48:57 -08:00
Scott Shawcroft
45487f14a0
Speed up a bit more 2021-03-12 16:00:16 -08:00
DavePutz
96ce43e6d6
Added the correct files 2021-03-12 16:18:33 -06:00
DavePutz
6628f49852
Use StateMachine.c interrupt setup and simplify SM program 2021-03-12 16:06:57 -06:00
Jeff Epler
a5c6759325
Merge pull request #4392 from tannewt/lower_default_flash_speed
Lower default flash speed.
2021-03-12 13:58:44 -06:00
Scott Shawcroft
aec03a409f
Lower default flash speed.
/ 6 leads to ~40mhz. 2M and 4M have a max 0x03 read speed of 60mhz.
If the divisor is / 4 then the speed is just over 60mhz.

Fixes #4377
2021-03-12 11:06:39 -08:00
Dan Halbert
bbb1a8b7fa
Merge pull request #4387 from dhalbert/esp32s2-i2c-bug
Esp32-S2 I2C fixes
2021-03-12 10:26:56 -05:00
Artyom Skrobov
8265c321f6 [vfs_fat_diskio] pdrv is not a drive number since f5f4cdae89 2021-03-12 10:01:14 -05:00
Jeff Epler
73139102fc
Merge pull request #4389 from weblate/weblate-circuitpython-main
Translations update from Weblate
2021-03-12 08:37:47 -06:00
Dan Halbert
0ce5b2f594 put back pullup setting 2021-03-12 08:20:09 -05:00
Hosted Weblate
054908b912 Merge remote-tracking branch 'origin/main' into main 2021-03-12 04:26:17 +01:00
Dan Halbert
8d3217cbf3
Merge pull request #4390 from dhalbert/board-i2c-clock-stretch
correct clock stretch timeout for board.I2C()
2021-03-11 22:26:09 -05:00
Alvaro Figueroa
06cabd6995
Translated using Weblate (Spanish)
Currently translated at 100.0% (975 of 975 strings)

Translation: CircuitPython/main
Translate-URL: https://hosted.weblate.org/projects/circuitpython/main/es/
2021-03-12 03:03:10 +01:00
Dan Halbert
fa34b8a404 correct clock stretch timeout for board.I2C() 2021-03-11 21:02:07 -05:00
Dan Halbert
c71b6cb699 move to esp-idf PR merge 2021-03-11 20:05:31 -05:00
Kevin Matocha
a9afa0d9d4 Move input checks to shared-module, update docstrings 2021-03-11 16:18:17 -06:00
Dan Halbert
f75a009ed4 fix unnecessary statement order change 2021-03-11 15:16:32 -05:00
Dan Halbert
b5d2cc6f46 Merge remote-tracking branch 'adafruit/main' into esp32s2-i2c-bug 2021-03-11 15:09:18 -05:00
Jeff Epler
24f4d981bd
Merge pull request #4380 from jepler/rp2040-audiomp3
raspberrypi: Enable mp3 playback
2021-03-11 12:53:46 -06:00
Scott Shawcroft
0e451a1681
Merge pull request #4383 from hierophect/stm32-uart-dereserve
STM32: Fix UART deinit
2021-03-11 10:48:01 -08:00
Scott Shawcroft
40886d198d
Merge pull request #4385 from hierophect/stm32-f407-can
STM32: add all F405 modules to F407
2021-03-11 10:45:08 -08:00
Scott Shawcroft
a32359b0a2
Merge pull request #4386 from kamtom480/spi_and_i2c
spresense: minor i2c and spi fixes
2021-03-11 10:43:27 -08:00
Dan Halbert
3b948b244e
Merge pull request #4384 from dhalbert/disable-default-usb_cdc
disable default usb_cdc
2021-03-11 12:46:15 -05:00
Dan Halbert
de88fa37fb Merge remote-tracking branch 'adafruit/main' into esp32s2-i2c-bug 2021-03-11 12:27:29 -05:00
Dan Halbert
061d5910cb use fixed esp-idf 2021-03-11 12:09:01 -05:00
Kamil Tomaszewski
18668f6e28 spresense: fix spi to work with only one data pin 2021-03-11 18:06:49 +01:00
Kamil Tomaszewski
76d0870fba spresense: return error as positive value for i2c 2021-03-11 18:04:01 +01:00
Lucian Copeland
0b73c7a212 Update F407 to match F405 2021-03-11 11:27:17 -05:00
Dan Halbert
5ace7af933 disable default usb_cdc 2021-03-11 11:20:29 -05:00
Lucian Copeland
1ebbd14d0f Fix UART deinit 2021-03-11 11:02:13 -05:00
Jeff Epler
15e97f12a1
Merge pull request #4379 from jepler/rp2040-rtc
raspberrypi: RTC: Ensure a time is set
2021-03-11 09:00:31 -06:00
Jeff Epler
16bfe3b41c raspberrypi: RTC: Ensure a time is set
Until a time is set, the RTC is not running, and rtc_get_datetime()
returns false without assigning to the out-parameter.

In CircuitPython, this would manifest as arbitrary values being returned,
since uninitialized storage on the stack was being converted into a timestamp.
2021-03-10 20:20:40 -06:00
Scott Shawcroft
f0965b1ef7
Merge pull request #4350 from nitz/board-add-sparkfun-micromod-nrf52840
Add new nRF port for SF MicroMod nRF52840.
2021-03-10 18:13:11 -08:00
Jeff Epler
c95def0b32 raspberrypi: Enable mp3 playback
The rp2040 is _very_ marginal for mp3 playback, and currently sometimes triggers a bug that gives garbled audio output.  However, it does work for some limited situations.
2021-03-10 18:44:10 -06:00
Kevin Matocha
85f0f07d51 add fill_region and draw_line to bitmaptools 2021-03-10 11:37:27 -06:00
Scott Shawcroft
be9e045ee3
Merge pull request #4375 from hathach/rp2040-double-tap-uf2
rp2040 add double reset to uf2
2021-03-10 08:48:07 -08:00
hathach
58fb011070 clean up 2021-03-10 19:03:27 +07:00