Hel Gibbons
29a13305d2
Update README.md
2023-09-13 10:57:56 +01:00
Phil Howard
ae7e6e8c6c
PicoVector: Add a bounds method for polygon bounds.
2023-09-12 13:18:33 +01:00
Mike Bell
841c141ebf
Interpolators for line segment, and faster transforms
2023-09-10 13:22:21 +01:00
Phil Howard
c725b4eee0
Tufty 2040: Vector examples.
...
Add AdvRe.af for PicoW Explorer and Tufty 2040 spectrometer examples.
2023-09-07 10:14:32 +01:00
Philip Howard
a334899b61
Merge pull request #783 from pimoroni/feature/ppaf
...
PicoVector.
2023-09-06 15:15:30 +01:00
Phil Howard
cca2d569e4
PicoVector: Add vector spectrometer example for PicoW Explorer.
2023-09-06 14:07:23 +01:00
Phil Howard
788f6c3232
PicoVector: Add clock example for PicoW Explorer.
2023-09-06 10:31:40 +01:00
Phil Howard
231ceb70f2
PicoVector: Add basic polygon center of mass function.
2023-09-06 10:12:08 +01:00
Phil Howard
c9fd68ec58
PNGDEC: Remove PNG RAM debug text.
2023-09-06 09:39:28 +01:00
Hel Gibbons
386a3594c0
Cosmic Unicorn: add link
2023-09-05 17:31:25 +01:00
Pete Favelle
8c3a21ec1a
Made sure all columns are used!
2023-09-05 16:09:02 +01:00
Pete Favelle
2f44e85431
Added some PicoGraphics based MP examples for the PicoUnicorn
2023-09-04 14:31:32 +01:00
Phil Howard
5a92a9c735
PNGDEC: Support for 2bpp indexed PNGs, fix open_RAM.
2023-09-04 13:55:15 +01:00
Phil Howard
591058fb12
PicoVector: Store pointer to PP mem.
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
9d0501a43c
PicoVector: Polygon iter interface.
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
9e430fd68c
PicoVector: Better separation of concerns, add Alright Fonts support.
2023-08-22 09:32:28 +01:00
Phil Howard
c9a8d5ef49
PicoVector: Move polygon drawing to a new home.
2023-08-22 09:32:28 +01:00
Phil Howard
38aaa04c5d
Tufty 2040: Basic pretty polygon example.
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
cc7219b44a
PicoGraphics: Experimental Pretty Poly bring-up.
2023-08-22 09:32:28 +01:00
Philip Howard
57042bfed3
Merge pull request #821 from pimoroni/dv_stick_minimal
...
PicoVision: Minimal changes required to support PV specific drivers/pen types.
2023-08-22 09:31:30 +01:00
Hel Gibbons
157180c476
stellar: correct path to font
2023-08-21 14:28:08 +01:00
Hel Gibbons
7344e4d1a4
stellar: correct path to 3x5 font
2023-08-21 14:16:25 +01:00
Philip Howard
b82d16e8ae
Merge pull request #817 from pimoroni/feature/pico-explorer-pins
...
PicoGraphics: Add Pico W Explorer SPI pins.
2023-08-15 15:52:51 +01:00
Hel Gibbons
095122c606
Merge pull request #816 from pimoroni/helgibbons-patch-1
...
Galactic Unicorn: add link
2023-08-14 12:42:36 +01:00
Mike Bell
be943bd5a0
Fix build
2023-08-14 12:40:15 +01:00
Mike Bell
f4b8bc9025
Fix Micropython build
2023-08-14 12:40:15 +01:00
Simon Prickett
710863099d
Another go at the linter.
2023-08-14 10:40:43 +01:00
Simon Prickett
316957c263
Import order changed.
2023-08-12 13:39:18 +01:00
Simon Prickett
9b18ed2594
Further linter checks after running pylint in VSCode.
2023-08-12 13:38:25 +01:00
Simon Prickett
658025a99b
Linter issues.
2023-08-12 13:33:03 +01:00
Hel Gibbons
fef22530ea
Galactic Unicorn: add link
2023-08-11 16:38:33 +01:00
Andrew Wilkinson
14c7f6c9c8
fix: Only set time if the wlan is connected
...
Previously, if we dropped out of the wlan loop early because of an error (wlan.status() < 0) it would still print "Connected", and try to set the time.
2023-08-10 15:58:52 +01:00
Simon Prickett
14eabf360f
Adds carbon intensity graph example.
2023-08-07 22:47:01 +01:00
Simon Prickett
fe805a711a
Adds carbon intensity graph example.
2023-08-07 22:46:55 +01:00
Philip Howard
d93839d56a
Merge pull request #793 from awjlogan/enviro-tidy
...
Enviro Pico description generation did not match f-string rounding
2023-08-04 10:43:06 +01:00
Phil Howard
4ad6df5cc3
PNGDEC: Rotation support.
2023-08-03 16:30:25 +01:00
Phil Howard
b744f78a46
CI: Fix linting issues.
2023-08-03 16:06:24 +01:00
Philip Howard
5bc85c0e6d
Merge pull request #797 from North101/main
...
Make Galactic clock example responsive
2023-08-03 15:56:33 +01:00
Irvin
6306d5e753
Minor formatting changes
2023-08-03 15:26:24 +01:00
Irvin
f0bfc7c13b
Improved readability
2023-08-03 15:19:01 +01:00
Irvin
e1e467185a
Minor changes on the unicorns
2023-08-03 15:03:55 +01:00
Irvin
7e65c15cfb
Reduced flickering
2023-08-03 14:01:29 +01:00
Irvin Makosa
462724210c
Modified the calculate_brightness function to reduce flickering on gu
2023-08-02 23:33:15 +01:00
Irvin Makosa
0b0474e062
Added light sensor example to the su
2023-08-02 01:15:38 +01:00
Irvin Makosa
90a2076b7b
display percentage icon
2023-08-02 00:56:16 +01:00
Irvin Makosa
e14903dd27
Added light sensor example on cu
2023-08-02 00:43:48 +01:00
Irvin Makosa
f06d1035a4
Modified gu readme
2023-08-01 22:59:03 +01:00
Hel Gibbons
d0c40af766
Merge pull request #807 from makosa-irvin/main
...
Added light sensor example with auto brightness feature
2023-08-01 12:35:44 +01:00
Irvin Makosa
8bb5e17e65
Fixed minor formatting issues
2023-08-01 00:34:39 +01:00
Irvin
b8cdff8f4f
Added light sensor example with auto brightness feature
2023-07-31 17:31:02 +01:00
Hel Gibbons
eb31f9b043
Add link
2023-07-31 17:28:52 +01:00
Phil Howard
b368950f02
PicoGraphics: Add Pico W Explorer SPI pins.
2023-07-27 17:14:01 +01:00
Philip Howard
51574f839d
Merge pull request #802 from pimoroni/feature/pngdec
...
PicoGraphics: Add support for PNG decoding.
2023-07-27 11:01:40 +01:00
Phil Howard
5ec6903f7f
PNGDEC: Clean up API, add get_palette and index copy.
2023-07-21 13:23:08 +01:00
helgibbons
c696cd5e2d
Tiny 2040: add button/LED example
2023-07-21 13:03:44 +01:00
Phil Howard
6db7a9a0a6
PNGDEC: Add crude cropping/scaling.
2023-07-21 10:19:31 +01:00
Phil Howard
1630ddbbb2
PicoGraphics: Add support for PNG decoding.
2023-07-19 16:04:05 +01:00
Hel Gibbons
25237c54ce
Merge pull request #795 from pimoroni/patch/stellar-examples
...
Stellar: tidy examples
2023-07-04 19:06:17 +01:00
Alexander Wilde
16c2dc0356
Make Galatic clock example responsive
2023-07-04 10:41:33 +01:00
Hel Gibbons
52df18e550
stellar: lint BME280/68x examples
2023-07-03 14:34:10 +01:00
Hel Gibbons
1d1b521dfb
stellar: add BME280 and BME68x examples
2023-07-03 14:29:56 +01:00
Hel Gibbons
3786cbdfe6
Stellar: correct typo
2023-07-03 13:18:18 +01:00
Hel Gibbons
58cdc85b1f
stellar: add encoder wheel demo
2023-07-03 12:15:12 +01:00
helgibbons
6b67f652c7
Stellar: adjust exchange_ticker.py
2023-07-02 19:17:24 +01:00
helgibbons
37638172ae
Stellar: add temperature example
2023-07-02 19:02:08 +01:00
helgibbons
3236503805
Stellar: add pizazz to weather example
2023-07-02 17:48:53 +01:00
helgibbons
ce24330842
Stellar: move font to common
2023-07-02 15:19:32 +01:00
helgibbons
130685eeeb
Stellar: adjust html text example
2023-07-02 15:14:25 +01:00
Hel Gibbons
6afdfef45b
Stellar: update weather example
2023-06-27 17:36:08 +01:00
Angus Logan
1e6e68356a
Add rounding to lux report to prevent unit being overwritten
...
Correct unit for centigrade
2023-06-23 20:27:10 +01:00
Angus Logan
d25c6953d0
Correct comment for backlight button functionality
2023-06-23 20:22:18 +01:00
Angus Logan
0a0b72701e
Match descriptive terms to Python f-string rounding
2023-06-23 20:20:23 +01:00
Hel Gibbons
d9064f0162
SCD41: update Plasma Stick example
2023-06-23 15:23:41 +01:00
Hel Gibbons
dc1f000134
SCD41: add Plasma 2040 example
2023-06-23 12:11:05 +01:00
Hel Gibbons
32ae70d16d
SCD41: update example to use default pins
2023-06-23 11:55:25 +01:00
LionsPhil
a0fe954b7c
Document PicoGraphics fixed_width
...
(VSCode also stubbornly fixed some trailing space.)
Closes #765 .
2023-06-22 23:58:03 +01:00
Hel Gibbons
951fe4d8b8
SCD41: update example to use default pins
2023-06-22 17:12:55 +01:00
Hel Gibbons
cbaf1fa27d
fix co2.py formatting
2023-06-22 12:20:25 +01:00
Hel Gibbons
16f8f0ab05
Adjust lava_lamp.py
2023-06-21 16:50:21 +01:00
Hel Gibbons
d759522b08
Adjust clock.py
...
Clock now uses smaller font so it fits on the screen
2023-06-21 16:49:13 +01:00
Hel Gibbons
9307ea1360
add co2 example
2023-06-21 16:24:37 +01:00
Phil Howard
b0d63ef777
PicoGraphics: Add MicroPython support for custom font data.
2023-06-16 11:25:17 +01:00
Phil Howard
090ce9d2c6
MicroPython: Enable Bluetooth support for Pico W builds.
2023-06-15 11:58:41 +01:00
Phil Howard
19c57ebb20
Stellar: Refined stalemate detection in Life.
2023-06-01 20:21:24 +01:00
Phil Howard
94c5d74894
Stellar: Tweak & tidy examples.
2023-05-31 13:54:34 +01:00
ZodiusInfuser
67152e32e5
Copied Cosmic MPy examples to Stellar
2023-05-30 12:42:27 +01:00
ZodiusInfuser
aabe789f21
Initial setup for StellarUnicorn build
2023-05-30 10:32:25 +01:00
ZodiusInfuser
bd4238945d
Fixed case of some CosmicUnicorn variables
2023-05-30 10:25:33 +01:00
ZodiusInfuser
ae252fbc6e
Removed comma in *Unicorn readme code
2023-05-30 10:24:28 +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
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
Phil Howard
05cad0c157
Ulab: Bump to 6.0.12.
2023-05-10 13:03:47 +01:00
Philip Howard
1c39da4997
Merge pull request #746 from mutatrum/main
...
Fix web server only serving file once and wifi country configuration
2023-05-09 14:15:04 +01:00
Philip Howard
092fbe472f
Merge pull request #748 from Quitsoon/patch-1
...
pico_rtc.py, Just a little PR for a possible typo :)
2023-05-09 14:00:18 +01:00
Hel Gibbons
1be888f397
Cosmic: add links
2023-05-05 12:11:50 +01:00
ZodiusInfuser
8966cbf348
Added C++ readme
2023-05-04 14:59:01 +01:00
Pete Favelle
a59aa35df5
Improved inky's sleep_for, now handles up to 28 days ( #754 )
2023-05-04 14:54:23 +01:00
ZodiusInfuser
5619274d3d
Added MP readme
2023-05-04 14:10:39 +01:00
ZodiusInfuser
862806f357
Simplified example I2C setup
2023-05-04 14:10:12 +01:00
Phil Howard
7951ef9668
CI: Hack: Patch MicroPython to remove exception handling.
...
Force "-specs=nano.specs" on MicroPython builds and disable various stack unwinding and exception handling features for C++ modules.
2023-05-04 14:09:23 +01:00
Phil Howard
b30d9ca554
CI: Switch py modules from cmake hacks to manifest.py.
...
A long overdue fix. Uses board-specific manifest.py files to freeze Python modules, instead of polluting ports/rp2/modules.
2023-05-03 18:04:55 +01:00
ZodiusInfuser
e0a405739c
Fix namespace issue
2023-05-03 17:41:18 +01:00
ZodiusInfuser
9f925b5259
Ported most encoder wheel examples to C++
2023-05-03 17:22:58 +01:00
ZodiusInfuser
226e7507dd
Fix
2023-05-02 22:58:38 +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
Phil Howard
45a2e0f5b1
MicroPython: Set hostname for Enviro and Inky.
2023-05-02 16:35:37 +01:00
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
ZodiusInfuser
d4d6cd1936
Progress on encoder wheel C++ and MP
2023-05-02 16:19:22 +01:00
ZodiusInfuser
928c28b677
Switch to rom_map
2023-05-02 13:28:49 +01:00
ZodiusInfuser
2d45ed6ace
Updated mp function list
2023-05-02 12:51:05 +01:00
ZodiusInfuser
178afd1469
remove description prints
2023-05-02 10:22:14 +01:00
ZodiusInfuser
6464f44437
Fix micropython config
2023-05-02 10:22:14 +01:00
ZodiusInfuser
cd83a51e8a
Fix micropython config
2023-05-02 10:22:14 +01:00
ZodiusInfuser
f353525090
First porting of python examples
2023-05-02 10:22:14 +01:00
ZodiusInfuser
e3c3692e31
Test python for encoder
2023-05-02 10:22:14 +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
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
Quitsoon
f6206876b7
Update pico_rtc.py
...
Just a little correction of the word "timer" instead of "alarm" for the last test.
2023-04-11 21:17:35 +02:00
mutatrum
7bdd85d677
Fix web server only serving file once and wifi country configuration
2023-04-08 16:57:01 +02: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
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
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
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
83f88c034d
PicoGraphics: Enable thickness for all pens. Document.
2023-03-08 14:34:28 +00:00
Phil Howard
aed14aca22
PicoGraphics: Expose line thickness support.
2023-03-08 12:08:47 +00:00
Phil Howard
cacb5749ae
Inky Frame: Add thickness support for Hershey text.
2023-03-08 11:35:07 +00:00
Anton Mosich
aee0a2879b
Fix small typo in README
2023-03-06 23:28:47 +01:00
Phil Howard
63d4c23cd5
Inky Frame: Basic RTC demo.
2023-03-06 10:51:21 +00:00
Phil Howard
a6e35e207d
Inky Frame: Check current button state in woken_by_button.
...
Makes it easier to test wakeup logic in Thonny by holding a button when hitting "Run."
2023-03-06 10:51:21 +00:00
Phil Howard
07a5aac48f
Inky Frame: Python Documentation.
2023-03-06 10:51:16 +00:00
Hel Gibbons
f194715108
Merge pull request #701 from LionsPhil/autobrightstandalone
...
Contribute an automatic display brightness example
2023-03-03 11:34:16 +00:00
Phil Howard
56e5878b62
Inky Frame: Fix button masks, fakesleep on USB.
2023-03-03 10:56:50 +00:00
Phil Howard
b6d0e54803
Inky Frame: Add RTC helper functions to Python module.
2023-03-02 17:33:30 +00:00
Phil Howard
9e120995b2
Inky Frame: Add colour constants to Python module.
2023-03-02 13:09:55 +00:00
Phil Howard
f4f5c6319a
Inky Frame: Add dithering example.
2023-03-02 13:09:14 +00:00
Phil Howard
64632559f9
Inky 7.3: Raise error on PicoGraphics buffer operations.
2023-03-02 13:08:44 +00:00
Philip Howard
6be46dd429
Merge pull request #700 from pimoroni/examples/galactic-co2
...
Galactic: add CO2 breakout example
2023-03-02 11:44:04 +00:00
LionsPhil
0a6d6b91b3
Contribute an automatic display brightness example
...
Standalone smoothed display auto-brightness, reactive to the on-board
LUX and battery ADC sensors, with debugging keys so it's easier to test
(and play with).
Closes pull requests #628 and #629 , which did this to the retro_badge
example, but made it too complicated.
2023-03-02 00:29:23 +00:00
Hel Gibbons
3d96ff9d92
Galactic: update examples readme
2023-03-01 14:16:12 +00:00
Hel Gibbons
421e715f06
Galactic: lint CO2 example
2023-03-01 13:55:40 +00:00
Hel Gibbons
8e91108ce5
Merge pull request #695 from pimoroni/inkyframe7-launch
...
Launcher for Inky Frame 7.3"
2023-03-01 12:32:38 +00:00
thirdr
b66fc524ae
adjustment to joke delivery position
2023-03-01 12:11:18 +00:00
thirdr
0cec01cf37
Switching from using JPEG to JSON files
2023-03-01 11:08:49 +00:00
Hel Gibbons
1dbd3ea312
Merge pull request #546 from Corteil/Galactic-Unicorn-CheerLights
...
CheerLights example for the Galactic Unicorn
2023-03-01 09:52:12 +00:00
Brian Corteil
f882efc901
Update cheerlights.py
...
removed white space from line 20 in cheerlights
2023-02-28 23:39:35 +00:00
Hel Gibbons
bc49a69416
Galactic: add co2 example
2023-02-28 17:51:08 +00:00
Philip Howard
5abbf9b5c8
Merge pull request #699 from pimoroni/docs/picographics_create_pen_hsv
...
PicoGraphics: correct hsv pen reference
2023-02-28 16:57:28 +00:00
Hel Gibbons
5ca10794a8
PicoGraphics: clarify hsv units
2023-02-28 15:43:19 +00:00
Hel Gibbons
1cb170664e
PicoGraphics: correct hsv pen reference
2023-02-28 15:16:08 +00:00
Phil Howard
07a1bf645a
Cosmic Unicorn: RGB channels example in ulab/numpy.
2023-02-28 14:46:41 +00:00
thirdr
45a12892b8
adding blank secrets.py
2023-02-28 13:36:25 +00:00
Hel Gibbons
de6b7e2828
Inky Frame: fix more typo
2023-02-28 13:10:44 +00:00
Hel Gibbons
579b8daa4e
fix typo
2023-02-28 12:54:28 +00:00
Phil Howard
0fda232dcb
Cosmic Unicorn: Melody Maker.
2023-02-28 10:10:57 +00:00
Phil Howard
cbc21e52be
Galactic/Cosmic Unicorn: Add sound to 80s computer.
2023-02-28 08:48:15 +00:00
Phil Howard
b4d72d250d
Galactic/Cosmic Unicorn: Remove loop from life.
...
More numpy magic to remove the Python loop and drastically increase life generation performance.
2023-02-27 23:13:44 +00:00
Phil Howard
10ea8757ea
Galactic/Cosmic Unicorn: Life.
2023-02-27 22:31:52 +00:00
Phil Howard
c836f9f8fe
Galactic Unicorn: Backport Cosmic ulab/numpy examples.
2023-02-27 20:47:39 +00:00
Phil Howard
d750532180
Cosmic Unicorn: Fix typo in lava_lamp.
...
Found while backporting to Galactic.
2023-02-27 20:34:03 +00:00
Phil Howard
ad5e4cc10e
Cosmic Unicorn: Eighties super computer in numpy/ulab.
2023-02-27 19:52:56 +00:00
Hel Gibbons
ec601de9a4
Cosmic: Update examples readme
2023-02-27 16:47:08 +00:00
Hel Gibbons
6aa5aaf50c
Cosmic: update examples readme
2023-02-27 16:01:37 +00:00
Hel Gibbons
8069ae0e8f
Cosmic: make examples consistent
2023-02-27 15:43:38 +00:00
Hel Gibbons
3459cc5f62
Cosmic: update clock example
2023-02-27 15:09:58 +00:00
Hel Gibbons
931b3b26b2
PicoGraphics: add note about HSV pen
2023-02-27 15:09:58 +00:00
Hel Gibbons
b6042e78c1
Cosmic: update function reference
2023-02-27 15:09:58 +00:00
Hel Gibbons
c194fc7a2b
Cosmic: add examples readme
2023-02-27 15:09:58 +00:00
Hel Gibbons
3e44edf66a
Galactic/Cosmic: fix #556
2023-02-27 15:09:58 +00:00
Hel Gibbons
c2b1eb47e5
Galactic - fix #661
2023-02-27 15:09:58 +00:00
Hel Gibbons
86c304d192
Cosmic - update remaining examples
2023-02-27 15:09:58 +00:00
thirdr
b762ee8861
more colour and layout adjustments
2023-02-27 14:54:27 +00:00
thirdr
36458436bc
oops, linting fix
2023-02-27 14:54:27 +00:00
thirdr
d29666b87a
colour adjustments
2023-02-27 14:54:27 +00:00
thirdr
797c0bbfd4
added exception handling
2023-02-27 14:54:27 +00:00
thirdr
9f8596c031
Switched from Taupe to Orange background text
2023-02-27 14:54:27 +00:00
thirdr
2357e8225b
removed taupe colour from launcher
2023-02-27 14:54:27 +00:00
thirdr
bc89afb58c
Updated layout for Inky Frame 7 & 4
2023-02-27 14:54:27 +00:00
thirdr
e8ff06dac8
Updated standalone examples for Inky Frame 7
2023-02-27 14:54:27 +00:00