Commit Graph

279 Commits

Author SHA1 Message Date
foamyguy
b799b2e846 fix spi include in fourwire. validate i2c_bus in I2CDisplay 2021-10-09 16:31:45 -05:00
foamyguy
e8a2e4a62b use mp_arg_validate_type instead of if None 2021-10-09 13:10:17 -05:00
foamyguy
6c00ab7c97 change error message 2021-10-09 12:36:28 -05:00
foamyguy
d3317b002e check for None spi when initializing FourWire 2021-10-09 12:11:07 -05:00
Dan Halbert
1acafbf675 Fix n_args_min on many MP_DEFINE_CONST_FUN_OBJ_KW() 2021-10-07 16:55:19 -04:00
James Carr
f5c015285f
Update Display.fill_row() to accept all WriteableBuffers 2021-09-19 17:55:52 +01:00
James Carr
a1e4105f1e
Documentation update for ColorConverter 2021-09-02 20:29:53 +01:00
James Carr
b3aea212cb
Documentation update for Display.refresh()
Update the documentation for `Display.refresh()` which had two paragraphs starting 'When auto refresh is off,'
2021-09-02 14:00:23 +01:00
foamyguy
6af0038a84 update TileGrid docstrings to include OnDiskBitmap 2021-09-01 20:01:15 -05:00
foamyguy
b1d7b6efd2 update TileGrid docstrings to include Shape 2021-08-31 19:52:43 -05:00
Scott Shawcroft
838d30b3a4
Fix incorrect macros 2021-08-30 14:40:14 -07:00
Jeff Epler
83120eb1b2 Actually fix building ports without parallel displays 2021-08-29 11:49:47 -05:00
Jeff Epler
f4bb3cc2c8 Fix stubs & doc redirects 2021-08-29 11:43:51 -05:00
Jeff Epler
7520feed1c Move ParallelBus to its own module 2021-08-29 07:33:54 -05:00
Scott Shawcroft
b17216d9d4
Merge pull request #5199 from aramcon-badge/aramcon/quick-refresh
Adding quick refresh support
2021-08-27 08:54:44 -07:00
amit-sides
27502f90cd
Fixed formatting 2021-08-26 20:51:32 +03:00
amit-sides
23bb0bd262
Improved documentation
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2021-08-26 20:45:38 +03:00
amit-sides
24fcc3f955
Added type hints
Co-authored-by: Scott Shawcroft <scott@tannewt.org>
2021-08-26 20:44:27 +03:00
Amit Sides
98f026fbb4 Fixing comments for PR 2021-08-25 15:07:19 -07:00
James Carr
86d8d9f6a7
Minor docs fix in FourWire.c 2021-08-25 11:23:33 +01:00
Rob Capellini
17af5cd492 Use MP_REGISTER_MODULE with displayio, terminalio, and fontio
Convert from using MICROPY_PORT_BUILTIN_MODULES_STRONG_LINKS to using MP_REGISTER_MODULE for displayio, terminalio, and fontio modules.

Related to #5183.
2021-08-24 20:07:10 -04:00
Jeff Epler
379461df7d Deprecate Display's constructor arg set_vertical_scroll 2021-08-23 09:17:59 -05:00
James Carr
e35bcd348a
Use the modified args to sort in displayio.Group 2021-08-23 12:34:13 +01:00
Amit Sides
1b6283a5ae Adding quick refresh support 2021-08-21 23:51:24 +03:00
microDev
78f073c457
Merge pull request #5138 from jepler/refresh-defaults
Displayio: change refresh minimum_frames_per_second default to 0
2021-08-13 09:35:50 +05:30
Jeff Epler
a89f1c806f
Update Display.c 2021-08-12 12:50:38 -05:00
Jeff Epler
e8df829714 Displayio: change refresh minimum_frames_per_second default to 0
Closes: #5133
2021-08-12 12:00:07 -05:00
James Carr
670d295db5 Update the __init__ documentation for EPaperDisplay.
The unknown parameter `single_byte_bounds` was removed.
The missing parameters `set_current_column_command` and `set_current_row_command` were added.
2021-08-12 14:05:17 +01:00
Kenny
6be952d3ba found more documentation dependencies that needed updating 2021-08-05 00:13:10 -07:00
James Carr
45fd6dd68c Remove the max_size parameter from displayio.Group
max_size has been ignored for a while with the intention of removing it in 7.0
2021-07-22 19:41:45 +01:00
Jeff Epler
7896bf7fa3 fix stubs 2021-07-19 10:35:17 -05:00
Jeff Epler
1bbe7282e0 OnDiskBitmap: Allow a filename to be passed to the constructor
.. eventually we'll phase out the old way of constructing with an
open file, but this allows for compatibility between 6.x and 7.0.
2021-07-19 10:08:40 -05:00
Scott Shawcroft
9fdecacec7
Merge pull request #4903 from jepler/split-type-objects
Split type objects
2021-07-12 16:37:55 -07:00
Jeff Epler
52540a9830 Rename EXTENDED_FIELDS -> MP_TYPE_EXTENDED_FIELDS 2021-07-12 06:57:59 -05:00
Jeff Epler
7302bc09a7 rename the type flag to EXTENDED for consistency 2021-07-09 14:59:37 -05:00
James Carr
2e068d0384
Minor docs fix in TileGrid.c 2021-07-07 22:30:30 +01:00
Jeff Epler
d37f8a1a5a milestone: a selection of builds succeed 2021-07-06 10:57:44 -05: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
259d5b9e7d Fix displayio.Display __init__() signature documentation 2021-06-28 09:32:50 -04:00
Jeff Epler
193f8b7264 Fixes needed after micropython merges
.. this branch was old and stale, it turns out
2021-05-28 11:13:55 -05: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
Scott Shawcroft
3fda0c0a1b
Fix board builds and use MP_ERROR_TEXT in py and extmod 2021-05-05 17:51:52 -07:00
Jeff Epler
52589691b8
Merge pull request #4651 from lesamouraipourpre/minor-docs-fixes
Minor docs fixes in displayio.Bitmap
2021-04-29 08:12:47 -05:00
Scott Shawcroft
17fcd499b2
Merge pull request #4649 from tannewt/merge_1.11_2
Merge MicroPython v1.11 into CircuitPython
2021-04-27 11:02:02 -07:00
Scott Shawcroft
76033d5115
Merge MicroPython v1.11 into CircuitPython 2021-04-26 15:47:41 -07:00
Jeff Epler
8565a9ab90 shared-bindings: Fix type of Colorspace values in docs 2021-04-23 12:39:37 -05:00
Jeff Epler
05a81a066e displayio: Improve docs about Colorspaces 2021-04-23 09:57:24 -05:00
James Carr
0be610fd2b
Changes as requested for Bitmap docs. 2021-04-23 14:41:47 +01:00
James Carr
07059dd373
Minor docs fixes in displayio.Bitmap 2021-04-23 12:56:44 +01:00
Jeff Epler
76d68f21ac displayio: Add RGB555/565/_SWAPPED format support
This is helpful when displaying frames from an OV7670 camera, which
uses the RGB565_SWAPPED format internally.
2021-04-19 10:23:47 -05:00