Commit Graph

1933 Commits

Author SHA1 Message Date
Hel Gibbons 0666dc885a
Scroll Pack: Fix demo.py 2023-03-21 14:24:03 +00:00
Hel Gibbons 5392c5aa03
Merge pull request #713 from pimoroni/examples/inky_frame
Inky Frame: add new examples and update sample images
2023-03-20 14:18:43 +00:00
Philip Howard cb5db1d594
Merge pull request #711 from pimoroni/patch-jpegdec-filename
MicroPython: Avoid heap allocations in all C++ modules.
2023-03-17 14:08:27 +00:00
Phil Howard 587588dca5 CI: Bump MicroPython to 05bb260.
Changes: 294098d28e...05bb26010e
2023-03-17 11:22:56 +00:00
Phil Howard bb004e03a6 Badger: Deprecate firmware builds.
Remove builds for Badger 2040 and Badger 2040 W, these now live at: https://github.com/pimoroni/badger2040/
2023-03-17 11:18:45 +00:00
Phil Howard f9b46ba3a7 Pico Scroll: PicoGraphics scrolling text example. 2023-03-16 17:34:52 +00:00
helgibbons ec4c6c83f4 Inky Frame: correct typo 2023-03-16 17:13:23 +00:00
helgibbons 6f06ab246c Inky Frame: update image_gallery.py 2023-03-16 17:10:16 +00:00
Phil Howard 1b0b783a2f Pico Scroll: Add support for PicoGraphics. 2023-03-16 16:59:31 +00:00
helgibbons 9aa0465d8b hub75: function correction 2023-03-16 16:52:17 +00:00
Phil Howard b83bdbf198 MicroPython: Pico W parity with Pico build. 2023-03-16 15:02:32 +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 9964ed716b Servo/Motor: Use m_new instead of new. 2023-03-16 13:25:19 +00:00
Phil Howard af2b74d65d Servo/Motor/PWM: Avoid runtime memory alloc. 2023-03-16 13:25:19 +00:00
Phil Howard a45eeb1623 Pico Wireless: Use tracked alloc. 2023-03-16 13:25:19 +00:00
Phil Howard aa91450f59 Pico Unicorn: Use tracked alloc. 2023-03-16 13:25:19 +00:00
Phil Howard dd7ea6fdc3 Pico Scroll: Use tracked alloc. 2023-03-16 13:25:19 +00:00
Phil Howard e4cb7ce95f Pico RGB Keypad: Use tracked alloc. 2023-03-16 13:25:19 +00:00
Phil Howard 157841f9db MicroPython: Add tracked alloc/free class helpers. 2023-03-16 13:25:19 +00:00
Phil Howard a0ab44067f BMP280: Avoid runtime memory allocation. 2023-03-16 13:25:19 +00:00
Phil Howard 1f0302bd66 BME280: Check read status and throw error on fail. 2023-03-16 13:25:19 +00:00
Phil Howard bcebccca1d BME68X: Avoid runtime memory allocation. 2023-03-16 13:25:19 +00:00
Phil Howard 59ae107982 BME280: Avoid runtime memory allocation. 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
Phil Howard b74b371d2b JPEGDEC: Don't pass filename through std::string.
The result of GET_STR_DATA_LEN should be null terminated, so converting to a std::string and then using .c_str() is both redundant and need
s heap.
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
Hel Gibbons 60fe949fc5 fix link 2023-03-15 16:57:15 +00:00
Hel Gibbons d4d2b6fcbc
Merge pull request #715 from mogenson/clock-modulo
clock.py: constrain hour to 0 to 24
2023-03-15 14:02:10 +00:00
Hel Gibbons 0e6dbc1a6c add link 2023-03-15 11:22:23 +00:00
Hel Gibbons 9bee6d7431 tweak carbon intensity example 2023-03-15 10:39:54 +00:00
Michael Mogenson 2f26c172ed clock.py: constrain hour to 0 to 24
Use a modulo to constrain the displayed hour to 0 - 24 after applying
the UTC offset.
2023-03-14 21:22:59 -04:00
Hel Gibbons 2db116ccec update readme 2023-03-14 14:29:20 +00:00
Hel Gibbons 9ed2c40808 add carbon intensity example 2023-03-14 14:22:28 +00:00
Hel Gibbons 9730fee753 update readmes 2023-03-13 17:12:29 +00:00
Hel Gibbons 0138980849 update images, add new random image example 2023-03-13 16:56:28 +00:00
helgibbons 6f73f8fc83 Inky Frame: add more space images 2023-03-09 23:56:28 +00:00
Philip Howard 94d5b0cd33
Merge pull request #709 from pimoroni/refactor/micropython-cmake
MicroPython: Tidy up CMake files for our boards.
2023-03-09 20:25:31 +00:00
Phil Howard 13599b55a1 MicroPython: Tidy up CMake files for our boards.
* Feature parity between Badger 2040 and Tufty 2040.
* Add ulab to Tufty 2040.
* Don't include modules_py modules for boards that don't use/need them.
* Tweak modules_py.cmake so modules can be copied by parent CMake files.
* Simplify copy_module function to avoid repetition.
2023-03-09 11:36:55 +00:00
Philip Howard faf4efac34
Merge pull request #702 from pimoroni/docs/inky73
Inky 7.3 tweaks & docs
2023-03-08 21:02:06 +00:00
Phil Howard a448043870 Inky Frame: Document buttons & LEDs.
Expand upon memoryview caveat with Inky 7.3.
2023-03-08 20:48:58 +00:00
Phil Howard 75d56d04ad Inky Frame: Use PWMLED for button LEDs. 2023-03-08 20:31:30 +00:00
Phil Howard f255f419a1 Inky Frame: Use new PWMLED for led_busy and led_wifi. 2023-03-08 20:15:38 +00:00
Phil Howard 3f92caee22 Inky Frame: Better document colour constants. 2023-03-08 16:57:33 +00:00
Hel Gibbons 3d597e7d03 Inky Frame: make image_gallery work with all sizes 2023-03-08 16:54:36 +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