Scott Shawcroft
7686f93ef4
Fix crash when getting board.SPI outside the VM
...
If one of the default pins was already in use it would crash.
The internal API has been refined to allow us to get the value
without causing an init of the singleton.
Fixes #1753
2019-04-05 19:06:37 -07:00
Melissa LeBlanc-Williams
97baa7899f
Added comment regarding parameter loop
2019-04-05 11:11:27 -07:00
Melissa LeBlanc-Williams
8f1fc6c07d
Added option to easily treat SPI parameter data as commands
2019-04-04 23:15:00 -07:00
Scott Shawcroft
6fcda1dec4
Support multi-byte values with Bitmap
...
It also corrects the behavior of single byte values.
Fixes #1744
2019-04-04 12:50:35 -07:00
caternuson
5298119aa2
change direction of shift right
2019-04-03 09:21:34 -07:00
Melissa LeBlanc-Williams
f1e4a2ffb9
Removed unnecessary bit-ANDing
2019-04-01 19:52:35 -07:00
Melissa LeBlanc-Williams
8b4ca24e56
Improved readability of Single Byte Bounds code
2019-03-31 14:17:54 -07:00
Melissa LeBlanc-Williams
8087cb41e5
Merge branch 'master' of https://github.com/adafruit/circuitpython into ssd1351-fix
2019-03-27 20:18:37 -07:00
Melissa LeBlanc-Williams
2e0268cb09
Simplified cs toggling into fourwire only
2019-03-27 20:17:22 -07:00
Melissa LeBlanc-Williams
f3ec0514cd
Simplified into fourwire only
2019-03-27 20:11:32 -07:00
Dan Halbert
374f210771
TileGrid: pixel_shader is not always a palette
2019-03-27 10:55:50 -04:00
Melissa LeBlanc-Williams
f4cede4747
Removed parameter so CS is always toggled
2019-03-26 18:46:13 -07:00
Melissa LeBlanc-Williams
b2ad16f5c8
Removed parameter so CS is always toggled
2019-03-26 18:34:07 -07:00
Melissa LeBlanc-Williams
a54493b4ae
Added small delay inside toggle for edge cases
2019-03-26 07:45:17 -07:00
Melissa LeBlanc-Williams
09a1f06bbf
Added small delay inside toggle for edge cases
2019-03-26 07:39:40 -07:00
Melissa LeBlanc-Williams
cc96c39e6d
Fixed wrong operator
2019-03-25 23:58:58 -07:00
Melissa LeBlanc-Williams
c3329e224d
Added Single Byte Boundaries option for certain displays
2019-03-24 23:59:28 -07:00
Melissa LeBlanc-Williams
b25c4baeec
Moving Toggle to before command fixes driver issue
2019-03-23 21:04:25 -07:00
Melissa LeBlanc-Williams
fadb5a1024
Added option to toggle cs in displayio init sequence
2019-03-23 18:34:42 -07:00
Dan Halbert
26262cd477
Merge pull request #1670 from tannewt/fontio
...
Move Glyph and BuiltinFont into fontio
2019-03-20 17:36:04 -04:00
Scott Shawcroft
9f3ca66f97
Merge pull request #1676 from pewpew-game/bug1671
...
Make displayio.Palette support more than 255 colors
2019-03-20 14:13:18 -07:00
Radomir Dopieralski
f5cfd6e1f1
Make displayio.Palette support more than 255 colors
...
Fix #1671
2019-03-20 20:36:05 +01:00
Scott Shawcroft
5e2fec714c
Move Glyph and BuiltinFont into fontio
...
It was confusing in displayio.
Fixes #1662
2019-03-19 16:22:09 -07:00
Dan Halbert
43915133a1
after code.py runs, flush filesystem before resetting heap
2019-03-16 16:49:32 -04:00
Scott Shawcroft
224e9b1009
Standardize TileGrid to x and y properties over position
...
This brings it inline with Group. Also fixes #1613
This also includes a number of fixes for where a method is called
through a subclass. We now correctly get the native object.
Fixes #1567
Lastly, this adds subscript support to TileGrid for changing tile
indices. Similar to Bitmap, it accepts ints or 2-tuples.
2019-03-12 17:18:33 -07:00
Scott Shawcroft
ea45877ca5
Accept x and y kwargs into Group for initial position.
2019-03-12 17:17:32 -07:00
Dan Halbert
1f31877d55
Rework background display task to allow reads from SPI SD card during display. Clarify code. Handle multiple displays better.
2019-03-07 00:08:16 -05:00
Dan Halbert
c854f6617a
check display-bus transaction status and act accordingly
2019-03-06 13:45:48 -05:00
Dan Halbert
2eaa98ad71
Merge pull request #1601 from penguindustin/master
...
added height and width attributes for displayio
2019-03-06 12:43:55 -05:00
Dustin Mendoza
4145f87fcd
changed from mp_int_t to uint16_t
2019-03-05 21:25:09 -08:00
Dan Halbert
146271fa58
Merge pull request #1604 from dhalbert/display_wait_for_frame-check-interrupts
...
Don't wait for display frame if interrupt pending
2019-03-04 13:55:13 -05:00
Bryan Siepert
76dc8e1ac8
fixed typo
2019-03-01 07:32:46 -08:00
Bryan Siepert
014595bff5
fixed whitespace, clarified variable name, and updated error messages
2019-03-01 07:17:50 -08:00
Bryan Siepert
398c7060f8
added monochrome, 8bpp indexed, and 32bpp ARGB BMPs
2019-02-28 23:08:12 -08:00
Dan Halbert
ced37c1001
Don't wait for display frame if interrupt pending
2019-02-28 22:36:50 -05:00
Dustin Mendoza
f127be4dd2
added height and width attributes for displayio
2019-02-25 16:39:20 -08:00
Bryan Siepert
b81072e750
(fork rebuild) Initial support for 16bpp 555&565 and 8bpp grayscale bitmaps
2019-02-23 10:58:46 -08:00
Scott Shawcroft
08158a7c34
Tweak the backlight PWM rate to be higher that audio range. Fixes #1571
2019-02-21 12:02:01 -08:00
Scott Shawcroft
b1e8c43679
Fix reload while display is updating.
2019-02-19 14:51:39 -08:00
Scott Shawcroft
46fd60c703
Prevent infinite display update recursion and fix VFS mounting
...
Fixes #1529
2019-02-19 14:50:31 -08:00
Scott Shawcroft
c9f036ed40
Store the original layer in Group
...
As is we would return the native superclass object only.
Fixes #1551
2019-02-15 14:29:59 -08:00
Scott Shawcroft
473bdf48f6
A safe mode fix and displayio fixes
...
* Fixes safe mode on the SAMD51. The "preserved" value was being
clobbered by the bootloader.
* Fixes auto-reload loop when in safe mode.
* Fixes reading Group children with [].
* Check that a TileGrid actually moves before queueing a refresh.
2019-02-13 15:31:06 -08:00
Dan Halbert
66b0c67f54
Merge pull request #1536 from TG-Techie/patch-4
...
DISPIO: end_x can't be > height of shape
2019-02-12 19:17:10 -05:00
TG-Techie
4fbbb999b9
DISPIO: end_x can't be > height of shape
...
an author must have forgotten to change from height to width after copy paste.
2019-02-12 17:53:11 -05:00
Scott Shawcroft
1e16b3e134
Tweaks based on dhalbert's feedback.
2019-02-12 14:18:53 -08:00
Scott Shawcroft
c17f147be9
A variety of displayio improvements
...
This changes a number of things in displayio:
* Introduces BuiltinFont and Glyph so the built in font can be used by libraries. For boards with
a font it is available as board.TERMINAL_FONT. Fixes #1172
* Remove _load_row from Bitmap in favor of bitmap[] access. Index can be x/y tuple or overall index. Fixes #1191
* Add width and height properties to Bitmap.
* Add insert and [] access to Group. Fixes #1518
* Add index param to pop on Group.
* Terminal no longer takes unicode character info. It takes a BuiltinFont instead.
* Fix Terminal's handling of [###D vt100 commands used when up arrowing into repl history.
* Add x and y positions to Group plus scale as well.
* Add bitmap accessor for BuiltinFont
2019-02-11 20:55:05 -08:00
Scott Shawcroft
448ae64d8e
Add support for display rotation and raw commands
...
Display rotation is relative to the scan order of the display.
The scan order can be found by scrolling the display with command
0x37 `display_bus.send(0x37, struct.pack(">H", i % 128))`
Fixes #1504
2019-02-01 00:32:03 -08:00
Scott Shawcroft
354a26963b
Correctly handle no backlight pin.
2019-01-31 11:42:15 -08:00
Scott Shawcroft
2c069a5685
Polish up comments
2019-01-31 11:42:15 -08:00
Scott Shawcroft
4672866eec
Remove Sprite references
2019-01-31 11:42:14 -08:00