circuitpython/shared-bindings
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
..
_bleio add timeout; finish up for PR 2021-02-17 23:24:11 -05:00
_eve Change from fixed-point integer arguments to floating point in EVE API functions 2021-01-22 15:52:46 -08:00
_pew Fix #3504: Don't use time module in pew.tick() 2020-10-10 20:26:33 +02:00
_pixelbuf Round BLE timing values; fix timeout check 2021-01-10 13:16:19 -05:00
_stage Modify some Python stubs 2020-08-07 01:01:28 +09:00
_typing fix stub problems; touch up doc 2020-11-27 23:27:15 -05:00
adafruit_bus_device fix off-by-one PWM top issue 2021-02-12 15:53:31 -05:00
aesio Modify some Python stubs 2020-08-07 01:01:28 +09:00
alarm restore len(alarm.sleep_memory) and bool(alarm.sleep_memory) 2021-01-08 22:32:23 -05:00
analogio Fix several type hints 2020-07-27 18:05:13 +09:00
audiobusio audiobusio: Make PDMIn optional 2020-12-29 14:06:32 -06:00
audiocore Modify some Python stubs 2020-08-07 01:01:28 +09:00
audioio Modify some Python stubs 2020-08-07 01:01:28 +09:00
audiomixer Modify some Python stubs 2020-08-07 01:01:28 +09:00
audiomp3 Modify some Python stubs 2020-08-07 01:01:28 +09:00
audiopwmio wip 2020-11-22 19:10:09 -05:00
bitbangio wip 2021-03-02 15:16:55 -05:00
bitmaptools bitmaptools: Add readinto 2021-03-14 13:57:46 -05:00
bitops requested changes 2021-02-18 17:19:34 -06:00
board Fix lost board.SPI and board.I2C after explicitly deiniting them. 2020-10-26 22:44:38 +01:00
busio Fix formatting in SPI docs 2021-03-01 09:06:24 -08:00
camera camera: Provide correct forward-declaration of camera_imageformat_type 2020-12-15 10:40:24 -06:00
canio wip; not compiling yet 2020-11-19 17:47:12 -05:00
countio fix #4352 2021-03-07 14:13:20 -05:00
digitalio Fix several type hints 2020-07-27 18:05:13 +09:00
displayio Separate out mp_obj_list_insert for use in display.Group 2021-02-27 21:13:55 +01:00
dualbank rename ota to dualbank 2020-12-18 00:34:56 +05:30
fontio Modify some Python stubs 2020-08-07 01:01:28 +09:00
framebufferio Modify some Python stubs 2020-08-07 01:01:28 +09:00
frequencyio Fix several type hints 2020-07-27 18:05:13 +09:00
gamepad Add and correct some type hints 2020-07-24 18:20:03 +09:00
gamepadshift Add and correct some type hints 2020-07-24 18:20:03 +09:00
gnss remove extraneous files 2020-08-21 19:08:25 -05:00
i2cperipheral merge from upstream + wip 2020-11-25 17:52:06 -05:00
ipaddress Fixing remaining stub mypy issues + run check-stubs to CI 2020-10-30 18:56:40 -04:00
math Add and correct some type hints 2020-07-24 18:20:03 +09:00
memorymonitor remove extraneous files 2020-08-21 19:08:25 -05:00
microcontroller Fix typo in documentation. 2021-01-29 11:57:36 -06:00
msgpack Fix doc build with extra blank lines 2021-01-06 09:03:58 -08:00
multiterminal Modify some Python stubs 2020-08-07 01:01:28 +09:00
neopixel_write Modify some Python stubs 2020-08-07 01:01:28 +09:00
network Modify some Python stubs 2020-08-07 01:01:28 +09:00
nvm nvm: fix doc markup 2021-03-06 07:54:54 -06:00
os Fix some spelling mistakes 2020-12-10 02:52:18 +11:00
ps2io fix crash on user code exit 2020-11-19 11:44:22 +05:30
pulseio Add empty lines 2020-08-21 11:36:50 -07:00
pwmio Enable protomatter on RP2040 builds 2021-02-12 08:25:15 -06:00
random merge from upstream + wip 2020-11-25 17:52:06 -05:00
rgbmatrix RGBMatrix: change default to serpentine=True 2021-01-28 11:42:19 -06:00
rotaryio Remove warning about lack of support on M0 from rotaryio 2020-12-08 15:54:34 +01:00
rtc rtc implementation for rp2040 2021-02-02 00:00:00 +05:30
sdcardio sdcardio: add a note about sharing the SPI bus with SD cards and other devices 2021-02-09 10:07:21 -06:00
sdioio remove other extraneous files 2020-08-21 19:10:13 -05:00
sharpdisplay sharpmemory: Implement support for Sharp Memory Displays in framebufferio 2020-08-12 07:32:18 -05:00
socket Removing implementation-specific values for socket/socketpool class attributes 2020-11-02 19:59:07 -05:00
socketpool Make timeout core types consistent 2021-02-05 12:32:41 -05:00
ssl Make timeout core types consistent 2021-02-05 12:32:41 -05:00
storage Modify some Python stubs 2020-08-07 01:01:28 +09:00
struct Modify some Python stubs 2020-08-07 01:01:28 +09:00
supervisor merge from upstream; complicated webusb merge 2021-02-11 18:50:02 -05:00
terminalio Modify some Python stubs 2020-08-07 01:01:28 +09:00
time merge from upstream + wip 2020-11-25 17:52:06 -05:00
touchio Fix several type hints 2020-07-27 18:05:13 +09:00
uheap Add and correct some type hints 2020-07-24 18:20:03 +09:00
usb_cdc Clarify further; fix type error 2021-03-07 20:32:59 -05:00
usb_hid MIssed one change for .last_received_report 2020-09-10 14:21:36 -04:00
usb_midi address review; use constructor for HCI Adapter 2020-08-30 14:06:48 -04:00
ustack Added type hints to ustack 2020-07-03 15:52:53 -04:00
vectorio Modify some Python stubs 2020-08-07 01:01:28 +09:00
watchdog move port specific check 2020-11-11 00:24:01 +05:30
wifi Rename to match WIFI_REASON. Also include specific error code in "Unknown failure" Exception. 2021-01-13 23:47:23 -06:00
wiznet Modify some Python stubs 2020-08-07 01:01:28 +09:00
help.rst Apply a Sphinx transform to make the core module docs look better 2020-08-07 00:01:31 +09:00
index.rst docs: Improve 5.0.x <-> main branch doc linkrot 2020-06-14 11:12:35 -05:00
support_matrix.rst CIRCUITPY_* switches for JSON, RE, etc. Doc cleanup 2021-01-24 23:10:20 -05:00
util.c Refactor deinit check to reduce code size. 2019-06-12 11:36:43 -07:00
util.h Refactor deinit check to reduce code size. 2019-06-12 11:36:43 -07:00