Commit Graph

11 Commits

Author SHA1 Message Date
LionsPhil 033157503b Rewrite the Tufty2040 main menu somewhat
Primarily motivated to get almost everything out of globals and fix
issue #631. This is a stripped-down version of the gist there without
the memory debugging and reboot-into-direct-boot mode.

Mostly move things to functions. Clean up some dead code and comments.
I think the biggest win is not actually the PicoGraphics framebuffer,
which is well-behaved, but random temporary floats that were leaking
previously.

Also type-annotated and lints clean.

Fixes #631. (As much as I think is possible.)
2023-02-12 12:33:28 +00:00
Tim Aidley 213e47ffd7 Fixed chevron size mismatch.
I decided I wanted the first chevron a little smaller, and realized I had the sign of the chevron height value reversed. The initial white triangle is now a bit smaller, and the chevron stripes slightly wider.
2022-09-06 20:13:16 -07:00
Tim Aidley 6292d33cdb Fixes to align with flake8 style 2022-09-06 20:08:12 -07:00
Tim Aidley f1aee84ef1 Add Progress Pride flag to pride badge example.
Adds the chevrons from the progress pride flag as an option on the Tufty pride flag example.
2022-09-01 08:22:17 -07:00
Hel Gibbons 8f5a99258f add non-binary flag! 2022-07-21 15:01:12 +01:00
Hel Gibbons 1337d2abdb
Update examples to use PicoGraphics (#428)
* correct filename in name_badge.py for Tufty

* Update 240x240 round breakout examples to work with PicoGraphics

* Update colourlcd240x240demo.py to work with PicoGraphics

* Fixed rainbow.py for Pico Display and Pico Display 2.0

* Update display examples to work with PicoGraphics

* add new display example 🌈

* adventures in rainbow RAM

* add button example for pico inky pack

* tidy up examples, make names more consistent

* Update Pico Explorer and 160x80 LCD breakout examples

* Accommodate dither
2022-07-07 09:37:47 +01:00
helgibbons aacbef56c6 Add boot button to button test, new LED PWM example 2022-06-21 10:40:58 +01:00
jon 27f1ecb596 Tufty2040: Tidy up examples. Wavy Message.
Co-authored-by: Phil Howard <phil@pimoroni.com>
2022-06-17 15:55:32 +01:00
helgibbons f20049aa26 Tufty2040: MicroPython examples. 2022-06-17 15:15:19 +01:00
thirdr ef1bdff2bd Tufty2040: MicroPython examples.
Co-authored-by: Phil Howard <phil@pimoroni.com>
2022-06-17 15:15:02 +01:00
Phil Howard c66a590142 Tufty2040: Solarized example. 2022-06-13 20:12:03 +01:00