Phil Howard
62818a5f49
PicoGraphics: Palettes as RGB, Scanline convert with callback.
2022-06-13 20:12:03 +01:00
Phil Howard
8917505175
JPEGDEC: Add open_file.
2022-06-13 20:12:03 +01:00
Phil Howard
7f0fe44881
JPEGDEC: Move to libraries, use C++, draw into PicoGraphics.
2022-06-13 20:12:03 +01:00
Phil Howard
1a9ebb7b6e
PicoGraphics: More pen conversion, better names.
2022-06-13 20:12:03 +01:00
Phil Howard
024518ed9a
PicoGraphics: Don't require wordwrap.
2022-06-13 20:12:03 +01:00
Phil Howard
bfea30b662
Pimoroni Bus: Allow SPIBus to take mosi arg, no backlight by default.
2022-06-13 20:12:03 +01:00
Phil Howard
4500497e3c
PicoGraphics: Add get_buffer_size.
...
Take the guesswork out of correctly sizing a bytearray. Accepts a display and pen type.
2022-06-13 20:12:03 +01:00
Phil Howard
49b62515c2
PicoGraphicS: Hershey support, bugfixes, tidyup.
2022-06-13 20:12:03 +01:00
Phil Howard
fc1561e54b
PicoGraphics: Fix set_framebuffer.
2022-06-13 20:12:03 +01:00
Phil Howard
b13470b4fb
PicoGraphics: Add set_palette and set_font.
2022-06-13 20:12:03 +01:00
Phil Howard
f5d7f34145
ulab: Fix broken submodule.
2022-06-13 20:12:03 +01:00
Phil Howard
67f1331b23
ST7789 -> PicoGraphics
...
* Absorb ST7735 support into the generic ST7789 driver and rename to PicoGraphics
* Delete obsolete MicroPython modules
* Refactor PicoGraphics to inherited class for each pen type
* Refactor ST7789 and ST7735 to derive from DisplayDriver
* Allow user to set pen_type in MicroPython constructor for RGB565, RGB332, P8 and P4 modes
2022-06-13 20:11:49 +01:00
Phil Howard
1a251822f5
ST7735: Update 160x80 LCD to new PicoGraphics<PenRGB565>
2022-06-13 20:11:09 +01:00
Phil Howard
cf6b6e04f4
ST7789: Simplify MicroPython bindings.
...
Kwargs should not be used unless there are non-required arguments with default values.
Save ~290 bytes and a bunch of noisy lines of code.
2022-06-13 20:11:09 +01:00
Phil Howard
7e4725d1cd
ST7789/PicoGraphics: Templated framebuffer formats.
2022-06-13 20:11:09 +01:00
Phil Howard
dbed4a463f
ST7789: Minor code tidyup.
2022-06-13 20:11:09 +01:00
Phil Howard
b66da12c1b
ST7789/PicoDisplay: Update C++ examples. Rename GenericST7789 -> PicoDisplayST7789.
2022-06-13 20:11:09 +01:00
Phil Howard
ae22838151
Pimoroni Bus: Tidy up. Print pins.
2022-06-13 20:11:09 +01:00
Phil Howard
13f0813d8a
ST7789/PicoDisplay: Collapse make_new into one using pimoroni_bus.
2022-06-13 20:11:09 +01:00
Phil Howard
cf842d559e
Badger2040: Remove deprecated modules.
2022-06-13 20:11:09 +01:00
Phil Howard
6ace09dbc3
Re-renable Pico Explorer and enable Pimoroni Bus
2022-06-13 20:11:09 +01:00
Phil Howard
c13f53092d
ST7789/PicoGraphics: Fix palette bugs, add reserve.
2022-06-13 20:11:09 +01:00
Phil Howard
a483b2aad4
ST7789/PicoGraphics: Refactor for init & rotation.
2022-06-13 20:11:09 +01:00
Phil Howard
ef6179e77d
ST7789/PicoGraphics: Refactor & make modes more explicit.
2022-06-13 20:11:09 +01:00
Phil Howard
1cd58ed298
Remove debug print
2022-06-13 20:11:09 +01:00
Phil Howard
73f73a0ac5
Make colour truncation from 565 to 332 optional
2022-06-13 20:11:09 +01:00
Phil Howard
3f9f28c60b
Add measure_text, fixed default palette init
2022-06-13 20:11:09 +01:00
Phil Howard
51ad7edb09
Prefer RGB332, add palette management functions
2022-06-13 20:11:09 +01:00
Phil Howard
7abe4aae7f
ST7789: Experimental 8bit framebuffer.
2022-06-13 20:11:09 +01:00
Phil Howard
446db105f9
Tufty2040: JPEG Decode
2022-06-13 20:11:09 +01:00
Phil Howard
b42425b000
Tufty2040: MicroPython bindings for ST7789Parallel.
2022-06-13 20:11:09 +01:00
Phil Howard
a9eb58a3ce
MicroPython: Fix Class name QSTRs.
2022-06-13 20:06:39 +01:00
Phil Howard
ff5d175eb2
AS7262: Optimize function types. Saves 600 bytes.
2022-06-13 19:21:21 +01:00
Phil Howard
8d638e2744
MicroPython: Drop redundant Print. Saves 4K.
2022-06-13 18:59:51 +01:00
Phil Howard
8cb15d5b5c
PCF85063a: Optimise functions, drop print.
2022-06-13 18:36:49 +01:00
ZodiusInfuser
df63655c76
Added MP support for rtc
2022-05-30 15:33:10 +01:00
Philip Howard
7db6d62515
Merge pull request #375 from pimoroni/experimental/build-tweaks
...
Customise MicroPython C++ modules per board to avoid blowing 640K binary limit on 2MB Pico boards
2022-05-27 11:56:57 +01:00
Phil Howard
a860b0fba8
ulab: bump to 4.0.0
2022-05-27 11:32:55 +01:00
Phil Howard
9a494828bc
CI: Customised MPY modules per-board
2022-05-27 11:32:52 +01:00
Phil Howard
5c92ac3762
ADCFFT: Use util.hpp
2022-05-27 11:04:13 +01:00
Phil Howard
f7c42e90a8
ADC FFT library & MicroPython Bindings
2022-05-23 16:12:22 +01:00
Phil Howard
bc0390b86c
MicroPython: Use placement new to alloc classes on GC_HEAP
2022-05-23 15:34:49 +01:00
Phil Howard
0b73535ac1
ST7789: Add fixes from #344
...
Fix line and triangle primitives.
Rename any "x1, y1" kwargs to just "x, y" if no subsequent coordinates accepted.
2022-05-23 13:54:44 +01:00
Philip Howard
db60553322
Merge pull request #327 from pimoroni/feature/merged-st7789
...
ST7789: Create generic display driver
2022-05-18 13:37:56 +01:00
Phil Howard
1feefde00c
MicroPython: Promote machine.I2C() to PimoroniI2C.
...
Create a new PimoroniI2C object internally if a "machine.I2C()" object is supplied in constructors.
2022-05-18 13:20:33 +01:00
Phil Howard
7d3b48c509
MicroPython: Make Pimoroni I2C compatible with machine.I2C
2022-05-18 13:15:12 +01:00
Phil Howard
c2256c481b
VL53L5CX: Autoload firmware in MicroPython bindings.
2022-05-17 14:05:32 +01:00
Phil Howard
aeceefea59
VL53L5CX: Sideload firmware from user-supplied .bin
2022-05-17 12:33:07 +01:00
ZodiusInfuser
717ad908cb
Optimized some encoder functions
2022-05-12 23:57:22 +01:00
ZodiusInfuser
51d08bebd9
Optimized most motor functions
2022-05-12 23:49:31 +01:00