Commit Graph

1093 Commits

Author SHA1 Message Date
gamblor21 7d7e66f60f Fix no scaled framebuffer display 2022-03-23 17:37:56 -05:00
foamyguy fe8b9728e7 color index for vectorio shapes. 2022-03-19 11:30:37 -05:00
foamyguy 90fadc58fd implement color_number argument for vectorio.Rectangle 2022-03-18 18:28:29 -05:00
Scott Shawcroft dcc3ec171e
Merge remote-tracking branch 'adafruit/7.2.x' into merge_7.2.2 2022-03-15 13:56:11 -07:00
Scott Shawcroft 32ac396a41
Further refine autoreload
This unifies the delay into the post-run delay that also waits
for user input and fake sleep. This ensures we always delay.
Previous code would only delay if the code.py was running when
autoreload was triggered. Now it will always delay.

We also now suspend autoreload when a USB write starts and then
resume on completion. This should prevent reloading in between
sectors of a single write.
2022-03-14 16:49:30 -07:00
Dan Halbert e4cd9690f1 rework auto-reload delay logic 2022-03-11 14:03:04 -05:00
Scott Shawcroft 00dcf6bd03
Tweaks from review 2022-03-11 10:51:50 -08:00
Scott Shawcroft 83593a1558
Start of USB host API
This allows you to list and explore connected USB devices. It
only stubs out the methods to communicate to endpoints. That will
come in a follow up once TinyUSB has it. (It's in progress.)

Related to #5986
2022-03-07 18:07:25 -08:00
Scott Shawcroft 08b44eade5
Merge pull request #6114 from pewpew-game/displayio-9bit
Add support for 9-bit mode to displayio.FourWire
2022-03-04 16:55:02 -08:00
Radomir Dopieralski 102ee716a7 Add support for 9-bit mode to displayio.FourWire
If the ``command`` pin is None, that information will instead be
sent as a ninth bit in the SPI transactions.

Fix #6109
2022-03-04 22:59:17 +01:00
Tsutomu IKEGAMI c9aa4527a9 Fix freeze on bitmaptools.dither 2022-03-04 17:06:07 +09:00
Dan Halbert a45f9a83ea Merge remote-tracking branch 'adafruit/7.2.x' into merge-7.2.x-to-main 2022-02-24 13:07:56 -05:00
Kevin Matocha 790af2d9a6 fix REPL terminal garbled characters upon code.py finished 2022-02-21 14:58:16 -06:00
Kevin Matocha 6b2266b240 retains REPL terminal data after display.show(None) when terminal size is not changed 2022-02-21 10:33:48 -06:00
Kevin Matocha 03f42406d3 updated code so the REPL will retain its text if not resized when code stops 2022-02-21 10:33:08 -06:00
Michael Himing 4bd64885b4 msgpack.unpack requires a readable stream 2022-02-21 09:16:36 +11:00
Dan Halbert fe6e03f504
Merge pull request #6013 from tannewt/esp_ble_gatt_client
Add S3 GATT client support
2022-02-17 16:02:11 -05:00
Tod Kurt 98ff9957fc appease ci 2022-02-10 17:14:07 -08:00
Tod Kurt 17440ec10c fix #6015 2022-02-10 16:10:05 -08:00
Scott Shawcroft 8958e7ef08
Add S3 GATT client support
This allows you to connect to GATT services on the other device.
It also adds connection initiation (GAP central).

More progress on #5926
2022-02-10 11:31:57 -08:00
Scott Gauche 3b418dbddc change half_duplex to be on spi construct 2022-02-08 21:37:38 -05:00
Dan Halbert a39f0cfede
Merge pull request #5977 from prplz/bitbang-i2c
Bitbang i2c: switch scl to input for reading
2022-02-03 18:34:49 -05:00
Dan Halbert 4dc9b00221
Merge pull request #5954 from kmatch98/repl_wrangler
Expose display’s root_group, add function to resize REPL terminal
2022-02-02 15:36:22 -05:00
Michael Himing 5472f41860 Bitbang i2c: switch scl to input for reading 2022-02-02 22:54:35 +11:00
gamblor21 9cc470677e merge 2022-02-01 20:31:13 -06:00
gamblor21 afb04f8378 Fix to i2c code 2022-02-01 20:27:54 -06:00
Mark 5972fdc108
Merge branch 'main' into is31pixelbuf 2022-02-01 13:59:28 -06:00
Scott Shawcroft 2964e966b1
Merge pull request #5958 from dhalbert/i2c-common-hal-write-read
I2c common hal write read
2022-02-01 11:08:50 -08:00
Dan Halbert 0b26dba44d
Merge pull request #5955 from prplz/is31fl3741
Only enable is31fl3741 for led glasses board
2022-02-01 12:55:31 -05:00
Kevin Matocha 0290fc35d2 Removing some unnecessary files that were changed 2022-02-01 08:28:40 -06:00
Dan Halbert cc410ad6a3 common-hal I2C combined write_read 2022-01-31 22:03:30 -05:00
Dan Halbert d5740c8ad9 Merge remote-tracking branch 'adafruit/main' into i2c-common-hal-write-read 2022-01-31 18:51:32 -05:00
Michael Himing c92c8ac184 Only enable is31fl3741 for led glasses board
Also fix a warning in is31fl3741
2022-02-01 09:45:50 +11:00
Dan Halbert 25707d311a Track creation of board.I2C(), etc. 2022-01-30 23:20:51 -05:00
Dan Halbert 83e6e6690a wip; works on espressif 2022-01-29 22:44:27 -05:00
Dan Halbert a672ee6da5
Merge pull request #5862 from jepler/shared-module-i2c
Remove unused files
2022-01-27 22:46:34 -05:00
Scott Shawcroft 5a6f456dbb
Add BLE scanning for S3 and C3.
Everything else should raise NotImplementedError.

First step in #5926
2022-01-25 16:28:46 -08:00
Dan Kulinski 19f9163892 Bringing branch up to date with current main 2022-01-25 11:02:00 -07:00
gamblor21 af93817552 Fixing bad merge 2022-01-23 14:57:06 -06:00
Mark 21c8ac9d4c
Merge branch 'main' into is31pixelbuf 2022-01-23 13:41:10 -06:00
gamblor21 563d8f297c Major refractor to make a common base object 2022-01-23 13:12:37 -06:00
microDev 67293c265c
Merge branch 'main' into board-bus 2022-01-21 10:08:39 +05:30
microDev 30c0891fba
cleanup post instance parameter removal 2022-01-20 20:07:42 +05:30
gamblor21 cf2c8eeec4 Moved init functions to helper python library 2022-01-17 16:13:27 -06:00
Dan Kulinski ca8299e51b Update logic for offset 2022-01-14 15:25:40 -07:00
Dan Kulinski fbd9e3284b Add two byte length check 2022-01-14 15:25:40 -07:00
Jeff Epler ab4e1481fc
Are these files even used? 2022-01-14 15:22:30 -06:00
Ben Combee 131b94540e audiomp3: reset decoded_samples when file resets
In testing, I saw that the decoded_samples value kept increasing when I
stopped and restarted playback, as I'd missed setting it back to zero
during the reset operation.
2022-01-02 15:19:25 -06:00
Ben Combee 98b0029a29 audiomp3: add decoded_samples property
In my testing, there is no way to accurately know how far into a MP3 file
you're currently playing. You can use monotonic time, but that can have
drift versus the audio playback system, which may not be running at exactly
the expected sample rate.

To allow syncing animation with timestamps in a MP3 file, this presents a
new property, decoded_samples, that records the number of audio samples
sent out of the decoder. While this may not be a completely accurate time,
due to mixer delays, it's much better position that the monotonic clock
difference.

Implementation is keeping track of this value in the mp3file structure and
adding to it whenever data is sent out of the decoder. The property
implementation was a copy/paste from current properties in the audiomp3
files.
2022-01-01 23:28:43 -06:00
Jeff Epler 8a94d9a255
Merge pull request #5784 from WarriorOfWire/vectorio_contains
vectorio contains(x, y)
2021-12-31 16:11:24 -07:00