Commit Graph

427 Commits

Author SHA1 Message Date
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
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 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
Philip Howard bcde0b6784
Merge pull request #152 from pimoroni/driver/bme280
Driver for BME280 and BMP280
2021-08-02 14:32:57 +01:00
Phil Howard 218d8ea929 Add documentation and features to BMx280 modules 2021-08-02 14:21:00 +01:00
Phil Howard be9b1437db Add MicroPython bindings for BME280 and BMP280 2021-08-02 14:20:59 +01:00
Phil Howard f0eff195fe C++ SDK Support for BME280 and BMP280 2021-08-02 14:20:40 +01:00
Philip Howard c832bf27be
Merge pull request #143 from pimoroni/driver/bme68x
Driver for BME688 and BME680 sensors
2021-08-02 14:17:23 +01:00
Phil Howard 746e21c542 BME68X Add Time/Temp config to Gas, document 2021-08-02 14:12:46 +01:00
Phil Howard 618fd559f9 BME68X Python example, docs and configure 2021-08-02 14:12:46 +01:00
Phil Howard c402d92e0f Basic MicroPython bindings for BME68X
The BME68X library is *linked* against the MicroPython bindings, rather than compiled directly in.
This saves specifing the list of target files twice.
2021-08-02 14:12:46 +01:00
Phil Howard 22d39faf5f Bringup BME688 and BME680 sensors
This changeset brings the BOSCH BME68X Sensor API library in as a submodule and makes it buildable with CMake.

A thin wrapper- the BME68X driver- provides simple init, configure, read_forced and read_parallel functions.

Two BME688 examples are available for forced-mode and parallel-mode operation.
2021-08-02 14:11:56 +01:00
Philip Howard 73d92023e9
Merge pull request #29 from pimoroni/driver-bh1745
Add BH1745 driver
2021-08-02 09:43:46 +01:00
Philip Howard c81b92ecdc
Merge pull request #180 from Daft-Freak/patch-1
Fix some ST7789 regs
2021-08-02 09:20:25 +01:00
Philip Howard f930720666
Merge pull request #187 from pimoroni/patch-ltr559
Fix LTR559 duty cycle
2021-08-02 09:12:25 +01:00
Phil Howard a0c2201df2 BH1745: Add I2C address constants 2021-07-30 13:46:28 +01:00
Phil Howard bd648034f5 Fix LTR559 duty cycle 2021-07-30 13:30:42 +01:00
Phil Howard b80b714c4f BH1745 MicroPython bindings & example 2021-07-30 12:41:06 +01:00
Phil Howard ea6acf2207 Porti BH1745 to Pimoroni I2C 2021-07-30 12:41:06 +01:00
Phil Howard 54169f4150 Add BH1745 driver 2021-07-30 12:41:02 +01:00
Philip Howard 9e1eb6723d
Merge pull request #186 from pimoroni/pymodules
Add python module for RGBLED and Button
2021-07-28 12:52:31 +01:00
Phil Howard 6a4df04ac6 Add python module for RGBLED and Button
Add a pimoroni.py module which includes Python code equivilents of the RGBLED and Button C++ drivers.

This is simpler than binding these drivers into MicroPython and much easier to maintain/extend.
2021-07-28 12:06:57 +01:00
Philip Howard 5f23794c6c
Merge pull request #179 from pimoroni/patch-buttonled
Add RGBLED and Button libraries
2021-07-28 10:12:35 +01:00
Phil Howard 32e226bfca Add RGBLED and Button libraries
"RGBLED" PWMs 3 pins as a single RGB LED and exposes methods to set the colour via HSV/RGB.

"Button" handles tracking the state and changed state of a single GPIO button, in addition to supporting auto-repeat for held-down buttons.
2021-07-20 15:34:24 +01:00
Charlie Birks 47a2f7c1c7
Fix some ST7789 regs
Fixes frame rate/porch register confusion and uses PWCTRL1 instead of 0xd0.
2021-07-20 15:22:31 +01:00
Philip Howard 27fa43087b
Merge pull request #161 from pimoroni/patch-lcdtext
MP Fix for text scaling on lcd breakouts not working, and non-string vars hard-locking
2021-07-12 17:42:52 +01:00
Phil Howard 9d897276f4 Support both kwarg and positional scale
Relies on the default value of the scale argument to avoid needing to explicitly check if it's been supplied.

Fixes x/y (again) on character.
2021-07-12 17:31:17 +01:00
Phil Howard 91c346a17c Change wr to wordwrap for clarity 2021-07-12 16:07:10 +01:00
Philip Howard 141a9670bd
Merge pull request #177 from pimoroni/patch-rv3028
Fix RTC year argument for #176
2021-07-08 09:00:07 +01:00
Phil Howard b4c0d78ef7 Fix RTC year argument for #176 2021-07-07 17:11:02 +01:00
Philip Howard e277bf14dd
Merge pull request #173 from pimoroni/patch-micropython-1.16
Bump MicroPython to v1.16
2021-07-07 16:45:43 +01:00
Phil Howard 09b570ff66 Bump MicroPython to v1.16
* Bump MicroPython from v1.15 to v1.16
* Bump Blinka from 6.10.1 to 6.10.2
* Bump PlatformDetect from 3.13.3 to 3.14.1
* Revert backport patch/hotfix for lwip submodule
2021-06-23 12:47:53 +01:00
Philip Howard 37d86ee766
Merge pull request #171 from pimoroni/patch-pimoroni-pico-import
Add an external import helper module
2021-06-17 12:04:56 +01:00
Phil Howard adaebc33bd Add an external import helper module
Part of the fix for the Pico Boilerplate breakage mentioned in pimoroni/pico-boilerplate#8

This file is included here for posterity and because it's existence is used to validate PIMORONI_PICO_PATH
2021-06-17 11:57:52 +01:00
Philip Howard 28a0a825a8
Merge pull request #166 from pimoroni/patch-cheerlights-try-try-again
Retry failed HTTP connections in cheerlights.py
2021-06-05 19:49:55 +01:00