Wykres commitów

1901 Commity (bcebccca1d2242ae866004e13b90655f8b754648)

Autor SHA1 Wiadomość Data
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 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
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
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
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
Hel Gibbons 789e63bd81
Merge pull request #708 from antonmosich/patch-1
Fix small typo in README
2023-03-07 08:57:58 +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 cb39d5c0f3 PCF85063A: Remove static keyword.
The use of "static" in `set_datetime` meant that "data" was only getting set to the correct values *once.*
2023-03-02 15:38:08 +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
Philip Howard f1809f3ebe
Merge pull request #697 from pimoroni/patch-cosmic-esc-numpy
Cosmic Unicorn: Eighties super computer in numpy/ulab.
2023-02-28 16:56:14 +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