Phil Howard
e90ae33a99
CI: All MicroPython builds use local board dirs.
...
Simplify the build to use *only* local (to pimoroni-pico) copies of MicroPython board config dirs.
This allows us to specify MICROPY_C_HEAP_SIZE (and potentially other options) in board config rather than at build-time.
2023-05-02 16:21:11 +01:00
andrewmk
49e0b25557
Fix relative link to PicoGraphics documentation
2023-04-26 11:27:44 +01:00
Phil Howard
af99d6d5f8
MicroPython: Set board manifest for Inky, Enviro.
2023-04-24 15:05:21 +01:00
Hel Gibbons
cb5dcb965e
Merge pull request #750 from pimoroni/helgibbons-patch-1
...
Galactic: add link
2023-04-19 11:02:55 +01:00
phennessey7
d78fffcd54
Update noise.py
...
Replaced extra blank line after edit on line 112 that was mistakenly deleted!
2023-04-14 10:04:07 -07:00
phennessey7
7b7959ef20
Update noise.py
...
Updated the song notes to play a more accurate version of the "Sailor's Hornpipe" tune!
2023-04-13 12:15:55 -07:00
Hel Gibbons
39eae8d42c
Galactic: add link
2023-04-13 13:31:01 +01:00
Philip Howard
7b7352130f
Merge pull request #739 from pimoroni/helgibbons-patch-1
...
PicoGraphics: document `dither=False`
2023-03-29 11:38:07 +01:00
Phil Howard
3bdb27458f
CI: Don't monkey with manifest.py paths.
2023-03-28 22:12:00 +01:00
Phil Howard
cce02feabd
CI: Set MICROPY_BOARD_DIR in CI workflow.
...
Move out of the USER_C_MODULES .cmake file.
2023-03-28 22:04:41 +01:00
Phil Howard
aeca08f275
CI: Restore Tufty 2040 board def.
...
Set the PICO_BOARD_HEADER_DIRS environment variable as per https://github.com/raspberrypi/pico-sdk/blob/master/src/boards/generic_board.cmake
Add our local search path alongside the existing Pico SDK boards dir.
2023-03-28 21:25:22 +01:00
Phil Howard
d69797689a
CI: Reduce repetition in product names.
2023-03-28 21:06:07 +01:00
Phil Howard
883d751f52
CI: Switch to MICROPY_BOARD_DIR and simplify fixups.
2023-03-28 21:05:05 +01:00
Hel Gibbons
5fa99c0690
PicoGraphics: add link
2023-03-28 16:44:30 +01:00
Hel Gibbons
75602b3fbb
Galactic: add link
2023-03-28 16:17:45 +01:00
Hel Gibbons
6e7ec899eb
PicoGraphics: document `dither=False`
2023-03-28 15:56:15 +01:00
Phil Howard
540bc2f75f
Pico Unicorn/Scroll: Add buttons/dimensions to both module and class.
2023-03-27 15:11:30 +01:00
Phil Howard
bad6a9e8d6
CPPMEM: Reduce fixed C++ heap to 1k.
...
Removing the use of std::map from LTP305's "dotfont" dramatically reduced init heap usage. Reduce the fixed buffer to account for this.
2023-03-27 15:11:30 +01:00
Phil Howard
049a121974
Dot Matrix: Allow set char from string.
2023-03-27 15:11:30 +01:00
Phil Howard
140fe913ae
MicroPython: Don't include wireless pack in W builds.
2023-03-27 15:11:30 +01:00
Philip Howard
9f71c04ea8
Merge pull request #731 from pimoroni/patch-wifi-examples
...
MicroPython: Various networking fixes to code & examples.
2023-03-27 11:16:44 +01:00
Phil Howard
0d0dc6a781
MicroPython: Various networking fixes to code & examples.
...
Replaces https://github.com/pimoroni/pimoroni-pico/pull/712 , https://github.com/pimoroni/pimoroni-pico/pull/632 and https://github.com/pimoroni/pimoroni-pico/pull/630
Co-authored-by: ben4github <ben4github@users.noreply.github.com>
Co-authored-by: Alexander Gee <bostwickenator@gmail.com>
2023-03-27 11:06:36 +01:00
Philip Howard
2303702c15
Merge pull request #730 from pimoroni/patch-boot-py
...
Move boot.py to modules_py.cmake
2023-03-27 10:59:25 +01:00
Phil Howard
0148e5f5e7
MicroPython: Move boot.py to modules_py.cmake.
...
The cppmem module *must* be switched into MicroPython heap mode or C++ code will inevitably run out of RAM.
Thus boot.py needs to be included in every build.
2023-03-27 10:41:16 +01:00
Phil Howard
f5859ad371
Badger: Drop deprecated cmake files.
2023-03-27 10:31:12 +01:00
Phil Howard
393879581a
Badger 2040: Add deprecation warnings and firmware links.
2023-03-27 10:30:19 +01:00
Philip Howard
c6b4a30c09
Merge pull request #725 from pimoroni/patch-frame-convert-heap
...
MicroPython: Magic C++ Memory Management.
2023-03-27 10:28:16 +01:00
Janos P Toth
be1b827cfc
Update README.md
2023-03-25 10:14:58 -07:00
Phil Howard
2c0310ca9a
MicroPython: Switch C++ allocation mode in boot.py.
2023-03-24 20:37:26 +00:00
Phil Howard
667faf70d1
MicroPython: Magic C++ allocator module.
...
This module redirects all pre-init object memory allocations into a static, fixed-sized, linear, non-freeing memory pool.
It then auto-switches into "MICROPYTHON" mode, whereupon all C++ `new` and `delete` calls are remapped to `m_malloc` and `m_free` respectively.
2023-03-24 15:11:07 +00:00
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
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
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
1f0302bd66
BME280: Check read status and throw error on fail.
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