You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To better support ulab/numpy pixel wrangling we should:
Add memoryview() support for accessing underlying pixel data
Add memoryview() support for setting underlying pixel data
IE: memoryview(led_strip)[:] = my_pixel_data
This will also make fast, async code easier by allowing the user to watch is_busy() and then perform a simple, fast flip from their local bytearray or numpy.array.
Since Plasma's buffer is stored in pixel order, examples might be a little spicy, but that's the price we pay for fast updates.
v1.0.0 (RELEASED)
Get basic builds working
Add all relevant pins to pins.csv or I2C/SPI defaults
Test pins work
Test machine.I2C() works (gives us the Qw'St socket or otherwise some broken out bus)
Plasma 2040
Plasma Stick 2040
Plasma 2350 - I don't seem to have one!
Plasma 2350 W
Test machine.SPI() gives us the broken-out SPI pins or the SP/CE bus (note, needs id until upstream merge)
Plasma 2040 - machine.SPI(0) Lights up Blue LED, uses pins 16, 18, 19. No broken out SPI pins so we need to disable default instances
Plasma Stick 2040
Plasma 2350
Plasma 2350 W
Port examples:
Use machine.Pin("NAME") instead of the old imported pin defs
Use machine.I2C() instead of PimoroniI2C (this has been supported for ages, but machine.I2C() only recently supported a clean, no-args, default instance.
Use ezwifi/secrets.py
The text was updated successfully, but these errors were encountered:
v1.1.0
To better support ulab/numpy pixel wrangling we should:
memoryview()
support for accessing underlying pixel datamemoryview()
support for setting underlying pixel dataIE:
memoryview(led_strip)[:] = my_pixel_data
This will also make fast, async code easier by allowing the user to watch
is_busy()
and then perform a simple, fast flip from their local bytearray or numpy.array.Since Plasma's buffer is stored in pixel order, examples might be a little spicy, but that's the price we pay for fast updates.
v1.0.0 (RELEASED)
machine.I2C()
works (gives us the Qw'St socket or otherwise some broken out bus)machine.SPI()
gives us the broken-out SPI pins or the SP/CE bus (note, needs id until upstream merge)machine.SPI(0)
Lights up Blue LED, uses pins 16, 18, 19. No broken out SPI pins so we need to disable default instancesmachine.Pin("NAME")
instead of the old imported pin defsmachine.I2C()
instead ofPimoroniI2C
(this has been supported for ages, butmachine.I2C()
only recently supported a clean, no-args, default instance.The text was updated successfully, but these errors were encountered: