Philip Howard
c3919bd648
Merge pull request #840 from MichaelBell/patch-pretty-poly-perf
...
Improve pretty_poly performance
2023-09-11 12:03:25 +01:00
Philip Howard
ed3ce45f00
Merge pull request #842 from MichaelBell/patch-fix-text-newline
...
Fix newlines in rotated text
2023-09-11 11:37:38 +01:00
Philip Howard
1a7deaab71
Merge pull request #841 from MichaelBell/patch-fix-vector-transform
...
Initialize all matrix values
2023-09-11 11:36:52 +01:00
Philip Howard
9735402ee3
Merge pull request #839 from MichaelBell/feature/fast-blend
...
Allow pen function for fast tile alpha blending
2023-09-11 11:36:04 +01:00
Mike Bell
80e1e16782
Fixes from compiling with gcc 12
2023-09-10 21:02:16 +01:00
Mike Bell
cdd648f3f6
Small improvements to rotated font rendering
2023-09-10 17:20:44 +01:00
Mike Bell
81f42f25b6
Fix newlines in rotated text
2023-09-10 17:20:10 +01:00
Mike Bell
841c141ebf
Interpolators for line segment, and faster transforms
2023-09-10 13:22:21 +01:00
Mike Bell
c812eec432
Initialize all matrix values
2023-09-10 13:18:13 +01:00
Mike Bell
41eb2b503e
Additional improvements to pretty_poly
2023-09-10 00:08:35 +01:00
Mike Bell
581481c2ef
Improve pretty_poly performance
...
(cherry picked from commit 1077a12ff4fd958a7ea6d9e4fa5a86551eba5126)
2023-09-09 01:30:10 +01:00
Mike Bell
e908d5e53e
Allow pen function for fast tile alpha blending
2023-09-08 23:48:16 +01:00
Mike Bell
34b8ac9f0c
Wrap pio.h includes in NO_QSTR so a fresh Micropython build doesn't fall over.
2023-09-08 18:59:25 +01:00
Philip Howard
a334899b61
Merge pull request #783 from pimoroni/feature/ppaf
...
PicoVector.
2023-09-06 15:15:30 +01:00
Pete Favelle
8a9ef39158
Added includes to allow for libraries to be linked to out-of-tree
2023-08-31 10:05:08 +01:00
Phil Howard
c443f8d206
PicoVector: Tweak polygon tile rendering loop.
2023-08-22 09:32:28 +01:00
Phil Howard
cfe8b3c096
PicoVector: Text rotation support.
2023-08-22 09:32:28 +01:00
Phil Howard
7c5ebfce8c
PicoVector: Matrix transforms and polygon type.
2023-08-22 09:32:28 +01:00
Phil Howard
61c9d7e9b6
PicoVector: Experimental matrix transforms.
2023-08-22 09:32:28 +01:00
Phil Howard
c7d9fe411a
PicoVector: Bugfixes and font/aa options.
2023-08-22 09:32:28 +01:00
Phil Howard
4671607b3a
PicoVector: Vector anti-aliasing support.
2023-08-22 09:32:28 +01:00
Phil Howard
95ab839ba5
PicoVector: Text wrap support.
2023-08-22 09:32:28 +01:00
Phil Howard
9e430fd68c
PicoVector: Better separation of concerns, add Alright Fonts support.
2023-08-22 09:32:28 +01:00
Phil Howard
e8dba75aff
PicoGraphics: Use std:: prefix, fix some type issues.
2023-08-22 09:32:28 +01:00
Phil Howard
09a58b269f
PicoGraphics: Various compile warning fixes for Pretty Poly.
2023-08-22 09:32:28 +01:00
Phil Howard
cc7219b44a
PicoGraphics: Experimental Pretty Poly bring-up.
2023-08-22 09:32:28 +01:00
Phil Howard
1157e605a1
Picovision: Remove DV stick drivers to PV repo.
2023-08-21 14:04:49 +01:00
Mike Bell
a6bd626334
RGB888 JPEG decode (implemented in some cases only)
2023-08-14 12:40:15 +01:00
Mike Bell
575e806cc8
Remove unnecessary data from JPEG range tables
2023-08-14 12:40:15 +01:00
Mike Bell
daf7232024
Limited support for palette and RGB888 modes
2023-08-14 12:40:15 +01:00
Mike Bell
a7435c6a5e
GPIO High and palette mode support
2023-08-14 12:40:15 +01:00
Mike Bell
5f8e7556f0
Begin DV Stick display driver
2023-08-14 12:40:15 +01:00
Phil Howard
004c8de8eb
Bitmap Fonts: Add rotation support.
...
* Fix bug with word-wrap ignoring \n
* Fix bug with word-wrap miscalculating word size
2023-08-03 16:30:25 +01:00
Phil Howard
1630ddbbb2
PicoGraphics: Add support for PNG decoding.
2023-07-19 16:04:05 +01:00
thinkier
aa8b158ba3
📝 maybe a copypaste error
2023-07-04 11:19:32 +10:00
Phil Howard
70a1b26041
ADC: Avoid re-initialising ADC.
...
Only init the ADC if it's not already running.
In MicroPython this could trounce an already initialised and configured ADC,
and would disable the temperature sensor if it had been enabled by a user
before initialising any of the affected libraries.
2023-06-04 21:46:23 +01:00
Phil Howard
bff6bd023e
Unicorn: Move gamma LUTs to pimoroni_common.
2023-06-04 21:46:12 +01:00
ZodiusInfuser
7aa75e57a4
Add C++ examples for Stellar, and fix init
2023-05-30 12:06:58 +01:00
ZodiusInfuser
68f610184f
Possible fix for stellar pio?
2023-05-30 11:16:51 +01:00
ZodiusInfuser
aabe789f21
Initial setup for StellarUnicorn build
2023-05-30 10:32:25 +01:00
Phil Howard
fba7b53c36
PicoGraphics: Fixed-width bitmap font support.
2023-05-15 11:03:39 +01:00
Philip Howard
8648196cc2
Merge pull request #774 from pimoroni/breakout_encoder_wheel
...
Support for RGB Encoder Wheel Breakout
2023-05-12 11:58:15 +01:00
Mike Bell
5b31e018ff
Possible ghosting fix for Cosmic
2023-05-10 20:09:59 +01:00
ZodiusInfuser
d00185d831
Added C & MP interrupt example
2023-05-10 16:57:38 +01:00
ZodiusInfuser
0120975b3c
Readme improvements
2023-05-10 16:08:51 +01:00
ZodiusInfuser
12e38c1157
Implemented GPIO MP support for Encoder wheel
2023-05-10 14:54:32 +01:00
ZodiusInfuser
653090c89e
Exposed support for GPIO pins on encoder wheel
2023-05-10 12:46:00 +01:00
Ray Bellis
67df015bfe
fonts need cstdint
2023-05-08 13:17:16 +01:00
ZodiusInfuser
8966cbf348
Added C++ readme
2023-05-04 14:59:01 +01:00
ZodiusInfuser
9f925b5259
Ported most encoder wheel examples to C++
2023-05-03 17:22:58 +01:00
ZodiusInfuser
e3f9f14dcf
Fix ioe reset timing out too early, and encoder reversed
2023-05-03 12:34:59 +01:00
ZodiusInfuser
1cfae8b5f8
More work on encoder wheel C++, adding reset to ioe
2023-05-02 22:55:19 +01:00
ZodiusInfuser
387df3bd12
Progress on encoder wheel C++ and MP
2023-05-02 17:31:11 +01:00
ZodiusInfuser
d4d6cd1936
Progress on encoder wheel C++ and MP
2023-05-02 16:19:22 +01:00
ZodiusInfuser
15978e5ddc
Temporary fix for compiler issues
2023-05-02 10:22:14 +01:00
ZodiusInfuser
59d57a193b
Initial support for Encoder wheel breakout
2023-05-02 10:22:14 +01:00
Phil Howard
761e8b5c3c
MicroPython: Don't include Hershey font map.
2023-03-27 15:11:30 +01:00
Phil Howard
1b0b783a2f
Pico Scroll: Add support for PicoGraphics.
2023-03-16 16:59:31 +00:00
Phil Howard
f2751ba6e9
Pico Unicorn: Add support for PicoGraphics.
2023-03-16 15:02:28 +00:00
Phil Howard
3eb42336e6
Pico Unicorn: Refactor into class.
...
Borrow heavily from Galactic/Cosmic Unicorn for the PIO/chained-DMA setup.
2023-03-16 13:25:19 +00:00
Phil Howard
044313551b
Pico Scroll: Refactor to class.
2023-03-16 13:25:19 +00:00
Phil Howard
bd3651d97d
Pico RGB Keypad: Refactor to class.
...
Because `mp_tracked_calloc` does not survive a soft reset but the memory region will, resulting in half-initialised frankenclasses that behave unpredictably.
Using the class pattern fixes this since it's always guaranteed to be initialised when a user instantiates it, and __del__ can handle cleanup.
2023-03-16 13:25:19 +00:00
Phil Howard
73f50e43ec
Hershey Fonts: Replace map lookup to avoid std::string.
2023-03-16 13:25:19 +00:00
Phil Howard
375df60ff3
PicoGraphics: Switch to string_view.
...
MicroPython's GET_STR_DATA_LEN macro returns a const byte array and len, which std::string would copy into heap.
Using string_view lets us wrap the existing const values.
2023-03-16 13:25:19 +00:00
Hel Gibbons
d0e2425e07
Merge pull request #655 from pimoroni/patch/i75-userbutton
...
i75/i75w: Auto-detect board and set up user button.
2023-03-16 11:58:59 +00:00
Phil Howard
a8a8321405
PicoGraphics: (Try to) handle non-div-2 thickness.
2023-03-08 14:49:09 +00:00
Phil Howard
83f88c034d
PicoGraphics: Enable thickness for all pens. Document.
2023-03-08 14:34:28 +00:00
Phil Howard
cacb5749ae
Inky Frame: Add thickness support for Hershey text.
2023-03-08 11:35:07 +00:00
Phil Howard
5f3f14e5ce
Galactic Unicorn: Add support for P4 and P8 pen modes.
2023-02-27 20:00:17 +00:00
Hel Gibbons
6fc8ebd024
Cosmic: update C/C++ function reference
2023-02-27 15:09:58 +00:00
Phil Howard
0c0a7b3bf6
PicoGraphics: Include dependencies if necessary.
...
Replaces #346
Co-authored-by: Charlie Birks <charlie@daft.games>
Co-authored-by: ThomasPDye <tompdye@googlemail.com>
2023-02-23 17:23:59 +00:00
Phil Howard
bfb2f8d2ba
Inky 7.3: Drop unpredictable taupe from dither palette.
2023-02-23 14:37:06 +00:00
Phil Howard
bff2e79a56
Inky 5.7: Dithered drawing ported from 7.3.
2023-02-23 14:17:54 +00:00
Phil Howard
a5b0633469
Inky 7.3: Dither pixel spans, move RGB flag out of RGB888.
2023-02-23 13:35:41 +00:00
Phil Howard
80fab77270
Inky 7.3: Remove side-effect from set_pixel_dither.
...
Do not change "color" when dithering the same colour across multiple pixels.
2023-02-23 13:12:07 +00:00
Phil Howard
c9f6dfec4f
PicoGraphics: from_hsv to RGB::from_hsv.
2023-02-23 12:59:19 +00:00
Phil Howard
3e0cd28876
Inky 7.3: Support dithering of arbitrary colours.
...
`create_pen` returns an int with the most significant byte set to indicate it is an RGB888 colour.
Pen values without the most significant byte set are treated as palette entries and handled normally.
2023-02-23 12:09:52 +00:00
Phil Howard
bea90dfd60
JPEGDEC: Experimental 3bit/4bit palette no-dither.
2023-02-22 15:40:22 +00:00
Phil Howard
d3a1a571d3
Inky 7.3: C++ library and JPEG example compatibility.
2023-02-22 14:34:25 +00:00
Gee Bartlett
8637967605
Made edits from review
2023-02-22 11:41:05 +00:00
Phil Howard
f4b0434229
PicoGraphics: Add create_pen_hsv to p4, p8 and rgb332 pens.
2023-02-21 12:52:46 +00:00
Phil Howard
bbeac41785
Cosmic Unicorn: Implement RGB888 frame convert.
2023-02-21 12:52:46 +00:00
Phil Howard
aa9c5b6538
Cosmic Unicorn: Add P4 and P8 support.
2023-02-21 12:52:46 +00:00
Phil Howard
72ad4dcc47
Cosmic Unicorn: Optimise buffer flip.
2023-02-21 12:52:46 +00:00
Gee Bartlett
9bc616690e
Cosmic Unicorn: MicroPython bindings.
...
started on MP driver
removed duplacte audio_i2s.pio
disabled GU lib options
bug fixes
bringing Picographics into line
Update picographics.cpp
fixing naming Cosmic to cosmic fixed H and W
2023-02-21 12:52:44 +00:00
lowfatcode
c3672d7e3d
Cosmic Unicorn: Driver and C++ examples.
2023-02-21 12:50:48 +00:00
Phil Howard
776383c111
Inky 7.3: Add ordered dither support.
2023-02-20 12:29:59 +00:00
AndrewCapon
0067b101a0
Inky 7.3: Direct pen & PSRAM update.
2023-02-20 12:29:52 +00:00
ZodiusInfuser
5a62a79a93
Renamed thick_line
2023-02-16 10:28:07 +00:00
Phil Howard
c3ad87765d
PicoGraphics: Extremely cursed thickness support for 1bit pens.
...
Experimental. There must be less cursed way to do this.
2023-02-10 22:15:07 +00:00
Mike Bell
3371b6c751
Select new row earlier to avoid lighting pixel on previous row very slightly
2023-02-10 10:36:56 +00:00
Philip Howard
c4decc5003
PicoGraphics: HSV Pen ( #665 )
...
Co-authored-by: Gee Bartlett <122281230+ageeandakeyboard@users.noreply.github.com>
2023-02-09 16:13:37 +00:00
Pete Favelle
d84d9f4520
Added PEN_RGB332 support
2023-01-31 12:57:35 +00:00
Philip Howard
ec0077ae71
Merge pull request #603 from ahnlak/unicorn-volume-fix
...
Unicorn volume fix
2022-12-16 21:03:04 +00:00
Philip Howard
930784df08
Merge pull request #600 from pimoroni/patch-jpegdec-rgb888
...
JPEGDEC/PicoGraphics: Add support for RGB888 target.
2022-12-16 20:53:55 +00:00
Gee Bartlett
104c819412
Hub75: Update to use Picographics ( #601 )
...
* have a basic pg working needs optimizing
* working well ported some examples from GU
* started on micropython module
* Fixes to get new Hub75 compiling in MP
* stripped down for faster compilling
* Update hub75.cmake
* added hub75 to galatic and eviro as it is needed for picographics
* Update picographics.c
* added hu75 update
* added _ModPicoGraphics_obj_t
* Update hub75.cpp
* update bindings
* some examples needs linting
* added other panel sizes and linted
* Update picographics.cpp
* Update picographics.c
* fixing gc memory allocation
* Update hub75.cpp
* Update interstate75_balls_demo.cpp
* review
* broke
* working with built in panel defs
* still borked
* not much change needs review
* Update hub75.cpp
* reverted alot of things
* adding i75 lib
* lots of updates ready to test compile mp
* Update picographics.h
* little tweaks
* an inability to count fixed!
* fixed some readme's
* lots of tiding
* fixed linting and removed experimental code
* Minor formatting
* Minor formatting and cmake tidy
* Removed unneeded parts of examples
* Final tidy
* tidy examples and adding more
* updated to new library
* documentation tweaks
* fixed inclusion of interstate75 module
* syncing some stuff
* fixed linting
Co-authored-by: ZodiusInfuser <christopher.parrott2@gmail.com>
2022-12-16 20:53:16 +00:00
Phil Howard
13414b5037
JPEGDEC: Clip drawing to iWidthUsed.
...
Corrects clipping width using new iWidthUsed value, noticable particularly on smaller jpegs and those that aren't a multiple of the MCU sized.
Fixes #573
2022-12-14 18:42:03 +00:00
Phil Howard
241e725464
JPEGDEC: Sync with upstream.
...
Adds setUserPointer and pDraw->pUser which we now use to store a pointer to the PicoGraphics instance.
2022-12-13 14:21:57 +00:00
Pete Favelle
b81c43f479
Removed const from picosynth volume
2022-12-08 17:19:35 +00:00
Pete Favelle
875119da70
Adjust PicoSynth volume when setting it in the Galactic Unicorn API
2022-12-08 17:07:07 +00:00