Wykres commitów

786 Commity (522c83dc196883eb13b0a6b944711f8efe5f3892)

Autor SHA1 Wiadomość Data
Philip Howard a108fddf56
Merge pull request #198 from pimoroni/patch-blinka-613-platformdetect-3153
Bump Blinka and PlatformDetect
2021-08-27 14:35:13 +01:00
Phil Howard f505be910a Bump Blinka and PlatformDetect
* Blinka 6.13
* PlatformDetect 3.15.3
2021-08-27 12:46:07 +01:00
Philip Howard c117d345e6
Merge pull request #196 from pimoroni/patch-pico-unicorn-soft-reset
Pico Unicorn: fix MP soft reset & cleanup
2021-08-27 11:14:14 +01:00
Phil Howard 90c01f613c Pico Unicorn: Add rainbow.py example 2021-08-27 10:52:26 +01:00
Philip Howard d1ca596201
Merge pull request #195 from pimoroni/patch-ioexpander-delays
Slow set/clr_bit writes a little
2021-08-27 10:45:11 +01:00
Phil Howard ab3951cd15 Pico Unicorn: fix MP soft reset & cleanup
* Enhance the soft reset guard to properly reinitialise the PIO/DMA and resume display operation
* Remove dead code and debug pin wiggle.
2021-08-26 21:58:37 +01:00
Phil Howard b5c7add90d APA102: Extra clocks to flush pixels
This covers an edge case where pixels are updated intermittently - such as the once that happens when clearing before a Python soft reset.

Under normal circumstances users should `start` the LED strip and allow it to continuously update.
2021-08-26 18:14:39 +01:00
Phil Howard 2cc6514583 Slow set/clr_bit writes a little
We chased a bug with handling/clearing interrupts on Encoder into the depths of madness, finding that a Debug build would magically fix the bug.

Turns out it was probably just us being a little aggressive with the poor little MS51-based Encoder driver.

* Fix delays to be more delayey.
* Replace big 'ol loop and boolean with straight up checks and an early exit- the bit-addressed regs are never going to change
2021-08-26 16:35:05 +01:00
Philip Howard 07f3d65a14
Merge pull request #194 from pimoroni/patch_plasma2040_examples
Extra examples and bug fixes for Plasma2040
2021-08-26 14:36:22 +01:00
Phil Howard e283d460d4 Make ws2812 and apa102 responsibly only for their own buffers
This fixes a bug where delete[] would be called on a bytearray buffer allocated by MicroPython on gc_heap.
2021-08-25 22:00:16 +01:00
Phil Howard 5abdad05a8 Fix MicroPython alloc'd bytearray support in APA102 driver
A bytearray allocated in Python would point to uninitialised bytes, missing the SOF byte and brightness for APA102 pixels.

Add a blunt loop over the MicroPython buffer, calling "brightness" for each RGB element to ensure the SOF byte and brightness are initialized.
2021-08-25 22:00:12 +01:00
ZodiusInfuser bb23ba22db Added C++ port of accelerometer example 2021-08-25 18:12:10 +01:00
Phil Howard 03a7cbee06 Fix speed gauge 2021-08-25 16:06:51 +01:00
Phil Howard 53429e0c6f Do not pio_sm_unclaim for MicroPython
Adds an ifdef guard around `pio_sm_unclaim` that prevents it being called when MicroPython cleans up/finalizes classes.

For some reason this appeared to be causing a hardfault.
2021-08-25 16:06:51 +01:00
ZodiusInfuser 08a54a600f Linting fixes 2021-08-25 15:23:22 +01:00
ZodiusInfuser 9d505f208a Added MP accelerometer example 2021-08-25 15:06:05 +01:00
ZodiusInfuser 4393372726 Linting Fixes 2021-08-24 16:10:23 +01:00
ZodiusInfuser f92d35a014 Added I2C defines 2021-08-24 16:06:44 +01:00
ZodiusInfuser d8d0a538c0 Renamed Time to Speed to match MP example 2021-08-24 16:02:29 +01:00
ZodiusInfuser 51d4901e34 Added rotary encoder MP example 2021-08-24 16:01:51 +01:00
ZodiusInfuser 8a4c4d8af8 Exposed clear on rotary breakout 2021-08-24 15:35:14 +01:00
ZodiusInfuser cf4b45acc7 Exposed Get to MP, and added I2C pin numbers 2021-08-24 15:21:14 +01:00
ZodiusInfuser dc7da7d07a Switch rotary back to ws2812 2021-08-24 14:26:35 +01:00
ZodiusInfuser a347eb468f Fixed indentation of rainbow example 2021-08-24 14:16:27 +01:00
ZodiusInfuser a46ea3b097 Bug fix and tweaks to rotary example 2021-08-24 14:15:58 +01:00
ZodiusInfuser a5d9fcf48a Renamed bme68x plasma example to Monitor 2021-08-24 11:41:56 +01:00
Philip Howard 0b7076d751
Merge pull request #188 from pimoroni/patch-sdcard-pio
Add support for SD over PIO SPI
2021-08-24 11:18:02 +01:00
ZodiusInfuser c8f90ea846 Changed default color order to GRB to match our strips 2021-08-23 17:18:34 +01:00
ZodiusInfuser 5b40899e44 Linting fixes 2021-08-23 16:30:03 +01:00
ZodiusInfuser a98252993d Linting fixes 2021-08-23 16:28:27 +01:00
ZodiusInfuser 88a9449e0a Added micropython version of bme example, and backported some fixes 2021-08-23 16:21:38 +01:00
ZodiusInfuser bfcb688264 Moved some variables to constants 2021-08-23 14:58:38 +01:00
ZodiusInfuser b72e0a1bb9 Added Plasma2040 example that displays data from the BME68x 2021-08-20 18:17:39 +01:00
Philip Howard c4ea05a763
Merge pull request #191 from pimoroni/patch_plasma2040
Updates to Plasma 2040 C++ and MP examples
2021-08-19 21:59:47 +01:00
ZodiusInfuser 4976c90ab3
Updated readme with changes, and description of current sensing 2021-08-19 16:15:38 +01:00
ZodiusInfuser 41365fd89e Updated button example for new mp 2021-08-19 15:50:16 +01:00
ZodiusInfuser 681edd255b Changed default ws2812 freq to 800khz 2021-08-19 15:36:25 +01:00
ZodiusInfuser 7496e8c8ba Renamed plasma mp directory to match module name 2021-08-19 15:25:12 +01:00
ZodiusInfuser c4e0316fd8 Linting fix 2021-08-19 15:19:01 +01:00
ZodiusInfuser 0faa312358 Updated micropython example to use working submodule 2021-08-19 15:16:40 +01:00
ZodiusInfuser aac8c8d2fc Test of sub module 2021-08-19 14:51:37 +01:00
ZodiusInfuser 3d34d70722 Removed unneeded statics 2021-08-19 14:22:43 +01:00
ZodiusInfuser 8e763f5efe Added a plasma2040 namespaces 2021-08-19 14:12:56 +01:00
ZodiusInfuser 823729dc24 Move apa and ws PIO into drivers so they can be easily used with more boards 2021-08-19 13:40:46 +01:00
ZodiusInfuser 29954080e9 Merge branch 'patch_plasma2040' of https://github.com/pimoroni/pimoroni-pico into patch_plasma2040 2021-08-19 12:59:59 +01:00
ZodiusInfuser c1cc505e0a Tweak to rotary, for consistency 2021-08-19 12:58:13 +01:00
ZodiusInfuser 64e6d248d5 Updated rainbow example to be consistant across languages 2021-08-19 12:58:13 +01:00
ZodiusInfuser ae09498953 Added analog class for plasma current reading 2021-08-19 12:58:13 +01:00
ZodiusInfuser 281288a6f4 Added Dat and Clk defines 2021-08-19 12:58:13 +01:00
ZodiusInfuser f5aba96419 Added user button to rainbow example 2021-08-19 12:58:13 +01:00