Phil Howard
90c01f613c
Pico Unicorn: Add rainbow.py example
2021-08-27 10:52:26 +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
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
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
a5d9fcf48a
Renamed bme68x plasma example to Monitor
2021-08-24 11:41:56 +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
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
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
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
64e6d248d5
Updated rainbow example to be consistant across languages
2021-08-19 12:58:13 +01:00
ZodiusInfuser
281288a6f4
Added Dat and Clk defines
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
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
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
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
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
a0c2201df2
BH1745: Add I2C address constants
2021-07-30 13:46:28 +01:00
Phil Howard
b80b714c4f
BH1745 MicroPython bindings & example
2021-07-30 12:41:06 +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
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
Phil Howard
b4c0d78ef7
Fix RTC year argument for #176
2021-07-07 17:11:02 +01:00
Phil Howard
ff8917cbe0
Retry failed HTTP connections in cheerlights.py
...
As discussed on https://forums.pimoroni.com/t/pico-wireless-pack-fetching-data-from-web/17215/ the cheerlights.py example was stalling on the first HTTP request.
I have added a timeout in this case, so the code will stop waiting and retry after the 60second polling wait period. Users report this does the trick!
2021-06-05 19:45:07 +01:00
frankdrn
f65d2d00ed
Fix character positioning for colourlcd160x80
2021-06-05 09:09:20 +01:00
frankdrn
a2d2165f81
Fix character positioning for colourlcd240x240
2021-06-05 09:07:08 +01:00