Wykres commitów

478 Commity (07f3d65a14b05337304e3fe9d77dd01e91a6c7ed)

Autor SHA1 Wiadomość Data
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
ZodiusInfuser 373a7df923 Linting fixes 2021-08-19 12:58:13 +01:00
ZodiusInfuser 336791ed77 Updated plasma mp examples to use user_sw and current sensing 2021-08-19 12:58:13 +01:00
ZodiusInfuser 5b27d7ac0d Fix for "Changed rgb to use full pwm range" 2021-08-19 12:58:13 +01:00
ZodiusInfuser 2b8fbde659 Changed rgb to use full pwm range 2021-08-19 12:58:13 +01:00
ZodiusInfuser a9883788f8 Added pins for user sw and current sense 2021-08-19 12:58:13 +01:00
Philip Howard c003834573
Merge pull request #192 from rabid-inventor/main
added staker game demo for plasma2040
2021-08-19 12:51:40 +01:00
Gee Bartlett 54e59bae27 added staker game demo for plasma2040 2021-08-18 17:26:51 +01:00
ZodiusInfuser 33dcdd2e22 Tweak to rotary, for consistency 2021-08-18 12:19:10 +01:00