Commit Graph

759 Commits

Author SHA1 Message Date
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
ZodiusInfuser fa4cf86126 Updated rainbow example to be consistant across languages 2021-08-18 12:18:25 +01:00
ZodiusInfuser fa17f2e77e Added analog class for plasma current reading 2021-08-18 12:16:51 +01:00
ZodiusInfuser 84acf406a2 Added Dat and Clk defines 2021-08-18 11:59:22 +01:00
ZodiusInfuser 49b944a40a Added user button to rainbow example 2021-08-18 10:54:31 +01:00
ZodiusInfuser 71e95805fa Linting fixes 2021-08-17 13:43:42 +01:00
ZodiusInfuser e045cb9615 Updated plasma mp examples to use user_sw and current sensing 2021-08-17 13:25:46 +01:00
ZodiusInfuser 5a911ad46e Fix for "Changed rgb to use full pwm range" 2021-08-17 13:07:34 +01:00
ZodiusInfuser 78952ff070 Changed rgb to use full pwm range 2021-08-17 12:59:36 +01:00
ZodiusInfuser 6672e9d683 Added pins for user sw and current sense 2021-08-17 12:48:45 +01:00
Philip Howard 852fdcaa45
Merge pull request #181 from pimoroni/plasma2040
Plasma 2040 library & examples
2021-08-17 10:07:19 +01:00
Phil Howard eb91f04129 Add general purpose Analog wrapper for isense
Add ADC_GAIN and SHUNT_RESISTOR values to plasma for configuring Analog current sense.
2021-08-12 15:47:59 +01:00
Philip Howard b50aae883a
Merge pull request #190 from pimoroni/patch-docs-submodule
Add submodule init to instructions for #189
2021-08-04 11:10:17 +01:00
Phil Howard 0f7c9a1053 Add submodule init to instructions for #189 2021-08-04 10:30:33 +01:00
Phil Howard 1e5e4c2f94 Add support for SD over PIO SPI 2021-08-04 10:16:48 +01:00
Phil Howard 6ce80cd289 Plasma WS2812: Add RGBW and color-order support 2021-08-02 14:37:07 +01:00
Phil Howard 693e84c73d Allow uP allocated buffer for Plasma LEDs 2021-08-02 14:37:07 +01:00
Phil Howard 59d3c91f1b Demo and document RGBLED and Button
Add constants to `plasma` module for Plasma 2040 pins.
2021-08-02 14:37:07 +01:00
Phil Howard 596fb55a57 Add "plasma" MicroPython module
Includes "WS2812" and "APA102" modules, wrapping the libraries.

Uses a destructor to clean up the LED strip and resources when MicroPython is stopped/restarted.
2021-08-02 14:37:06 +01:00
Phil Howard 815e784625 Plasma 2040 library & examples
Library:

Includes classes for driving WS2812 and APA102 LEDs and defines for Plasma features.

Encoder Example:

Supports connecting a Rotary Encoder via the Qw'St connector.

Works with APA102 or WS281X pixels.

Pressing A will cycle between:
1. Colour change
2. Brightness change
3. Cycle delay

Pressing B will switch back into auto-cycle mode.

Turning the encoder at any time will switch out of auto cycle mode into parameter adjust mode.

Also includes a bugfix to Rotary Encoder for getting the interrupt correctly.

Rainbow Example:

Basic rainbow cycle, press B to speed up and A to slow down.
2021-08-02 14:36:01 +01:00