Kattni Rembor
4579bf9b12
Rename rainbow to rainbowio
2021-07-12 14:40:01 -04:00
Kattni Rembor
825a706135
Turn off MIDI on one build, fix name.
2021-07-08 17:31:10 -04:00
Kattni Rembor
289575a811
Adding rainbow module.
2021-07-08 15:55:13 -04:00
Dan Halbert
c37f354d2d
Merge pull request #4958 from dhalbert/rp2040-audio-fixes
...
RP2040 PWMAudioOut: Release DMA channels after play has finished
2021-07-02 10:03:54 -04:00
Dan Halbert
33bbb8b1f4
RP2040 PWMAudioOut: Release DMA channels after play has finished.
2021-07-01 17:36:29 -04:00
Jeff Epler
d83a21b984
ColorConverter: Add "BGR" color modes.
...
The BGR565_SWAPPED mode is needed for OV2640 cameras.
2021-06-30 10:29:31 -05:00
Dan Halbert
62aca944f4
Failed to advance buffer ptrs in usb_cdc.Serial properly
2021-06-25 09:50:31 -04:00
Scott Shawcroft
57f898b774
Merge pull request #4915 from Neradoc/fix-4193
...
Fix 4193 - set hidden_by_parent when adding to displayio group
2021-06-24 15:23:33 -07:00
Scott Shawcroft
b81573d439
Merge pull request #4891 from dhalbert/keypad-scanning-events
...
keypad: support for vector and matrix key scanning
2021-06-24 10:25:21 -07:00
Neradoc
63bcee0a2c
set hidden_by_parent when adding to displayio group
2021-06-24 17:19:06 +02:00
Dan Halbert
4f538b6c09
remove pressed() and get_states_into()
2021-06-23 15:10:38 -04:00
Dan Halbert
7774b18895
Add reset() to scanners. Clear .overflow on EventQueue.clear().
2021-06-23 15:04:09 -04:00
Dan Halbert
acf90fbb43
many renamings; add overflowed flag to EventQuque
2021-06-23 09:57:15 -04:00
Dan Halbert
f052dc4d8b
ShiftRegisterKeys: allow specifying sense of latch
2021-06-21 19:50:05 -04:00
Dan Halbert
51c547a5b9
add generic arg validation routines; add interval args to keypad
2021-06-21 12:13:39 -04:00
Dan Halbert
154e91ab85
add EventQueue.store_next() to allow reusing event objects
2021-06-21 08:18:06 -04:00
Dan Halbert
8cd7e774e7
add KeyMatrix columns_to_anodes arg
2021-06-18 12:03:47 -04:00
Dan Halbert
af66931f71
Added keypad.ShiftRegisterKeys
2021-06-17 20:51:45 -04:00
Dan Halbert
a152bd3b72
add .num_keys and .store_states() to Keys and KeyMatrix
2021-06-17 12:02:54 -04:00
Dan Halbert
cd31136c30
factor out keypad.EventQueue
2021-06-16 15:55:54 -04:00
Dan Halbert
3d18c5c327
Use a single list of keypad scanners
2021-06-16 13:29:38 -04:00
Dan Halbert
1803a6a71d
both Keys and KeyMatrix work
2021-06-15 11:15:09 -04:00
Dan Halbert
350652ee21
Keys works; more testing to do
2021-06-14 22:59:17 -04:00
Dan Halbert
32eec85230
compiles
2021-06-14 20:54:43 -04:00
Dan Halbert
627c426259
wip
2021-06-14 16:00:15 -04:00
Dan Halbert
01a8a95b2c
fix signed/unsigned compilation problem
2021-06-10 01:14:16 -04:00
Dan Halbert
d3d9e0a487
add debouncing
2021-06-10 00:07:23 -04:00
Tsutomu IKEGAMI
0a7c839c13
Fix format (expand tab)
2021-06-10 12:11:12 +09:00
Tsutomu IKEGAMI
72c4a5a523
Fix coordinate conversion algorithm of partial refresh area in displayio.TileGrid
2021-06-10 11:47:51 +09:00
Dan Halbert
7d23206018
Inital keypad work: Keys working: one pin per key
...
keypad.Buttons and keypad.State
Buttons -> Keys; further work
wip
wip
wip: compiles
about to try
keypad.Keys working
2021-06-08 20:27:31 -04:00
lady ada
467a4e7664
fix comment
2021-06-07 19:51:57 -04:00
lady ada
b39dd84560
move the col/row offsets to the top so oleds can take advantage of em
2021-06-07 19:43:49 -04:00
lady ada
2ff9e9766f
handclang
2021-06-07 12:39:59 -04:00
lady ada
8f1c25c8ae
fix SH110x mode, the SH1107 is actually column not row mode BUT the SD1107 module we use is vertical orientation (confusing!) so row/col are NOT swapped. we will have to fix the SH1107 driver to match. this fix required for SH1106 (which uses the same page mode commands but ISNT rotated)
2021-06-06 18:25:40 -04:00
Tsutomu IKEGAMI
a4be61912c
Fix move cursor esc sequence of terminalio to meet ANSI standard
2021-06-03 20:40:37 +09:00
Dan Halbert
3930440bc5
Fix usb_cdc.enable(console=False, data=True)
2021-06-02 11:29:56 -04:00
Scott Shawcroft
6ee9acc900
Merge pull request #4755 from jepler/esp32s2-protomatter
...
Esp32s2 protomatter
2021-06-01 13:32:34 -07:00
Jeff Epler
9df8f235b1
OnDiskBitmap: INCOMPATIBLE CHANGE: Allow them to use palettes
...
Before, when an OnDiskBitmap was a paletted bitmap type, the palette
was internal to the OnDiskBitmap, and it internally performed the palette
conversion itself. When using with a tilegrid, a ColorConverter() object
always had to be passed.
Now, an OnDiskBitmap has a "pixel_shader" property. If the bitmap is
a paletted bitmap type, it is a (modifiable) Palette object. Otherwise,
it is a ColorConverter() object as before. This allows palette effects
to be applied to paletted OnDiskBitmaps.
Code that used to say:
```python
face = displayio.TileGrid(odb, pixel_shader=displayio.ColorConverter())
```
must be updated to say:
```python
face = displayio.TileGrid(odb, pixel_shader=odb.pixel_shader)
```
Compatible code for 6.x and 7.x can say
```python
face = displayio.TileGrid(odb, pixel_shader=getattr(odb, 'pixel_shader', ColorConverter())
```
2021-05-28 10:53:21 -05:00
Jeff Epler
9ff6ccba48
remove commented-out code
2021-05-27 11:33:17 -05:00
Jeff Epler
11288c1c28
esp32s2: Add rgbmatrix support
2021-05-26 11:21:59 -05:00
Jeff Epler
0d7f257eae
displayio: Pause rgbmatrix during soft-reset
...
We can't handle rgbmatrix's interrupts from here until the display is
reinitialized, so set the display as paused.
With this change, I can survive multiple cycles with wifi+rgbmatrix
on an esp32s2. Before, it usually failed.
2021-05-26 11:18:02 -05:00
Dan Halbert
0f66832829
Merge branch 'main' into hid_devices-gc
2021-05-24 18:17:52 -04:00
Scott Shawcroft
0d92558012
Merge pull request #4800 from dhalbert/too-many-hid-devices
...
Handle too many HID devices properly
2021-05-24 14:26:41 -07:00
Dan Halbert
5a9b95e611
unlock board.I2C() on reset
2021-05-21 17:49:50 -04:00
Dan Halbert
c6eb0283dc
Don't set num_hid_devices before it's validated
2021-05-21 17:34:30 -04:00
Dan Halbert
5a81f275cf
Don't change number of HID devices until it's vetted
2021-05-21 17:29:21 -04:00
Dan Halbert
7d0cda2614
gc all pointers in hid_devices properly
2021-05-21 16:32:55 -04:00
Scott Shawcroft
5643355e90
Merge remote-tracking branch 'adafruit/main' into simplify_status_led
2021-05-20 08:35:15 -07:00
Dan Halbert
aebee2de73
Handle USB_HIGHSPEED for MIDI also
2021-05-19 07:43:47 -04:00
Kamil Tomaszewski
da248d1594
spresense: Fix USB CDC and MSC
2021-05-18 17:02:16 +02:00