mirror of
https://github.com/italicsjenga/rp-hal-boards.git
synced 2024-12-24 05:01:31 +11:00
cf86e08749
* Add the Pimoroni Plasma 2040 board This PR adds the board support package and a simple example. The example just blinks the on-board RGB LED. An example should be added for using the board to control an LED strip. This should probably use smart-leds with the associated PIO driver. An example or functionality should be added for the current sensor. * Rename LED data line from dat to data to match schematic * Add an example for driving WS2812 LEDs This is pretty much a copy-paste of the awesome pico_ws2812_led example. * Remove reference in README to rp-pico * Remove reference to pico board clock speed I have removed this in the Plasma 2040 repository and where I copied it from, tiny2040_blinky. * Remove redundant namespace * Add self-reference in README to the current board's GitHub README Fix the erroneous link in the pimoroni-tiny2040 README from which I copied.
33 lines
1 KiB
TOML
33 lines
1 KiB
TOML
[package]
|
|
name = "pimoroni-plasma-2040"
|
|
version = "0.1.0"
|
|
authors = ["Jordan Williams <jordan@jwillikers.com>", "The rp-rs Developers"]
|
|
edition = "2018"
|
|
homepage = "https://github.com/rp-rs/rp-hal/tree/main/boards/pimoroni-plasma-2040"
|
|
description = "Board Support Package for the Pimoroni Plasma 2040"
|
|
license = "MIT OR Apache-2.0"
|
|
repository = "https://github.com/rp-rs/rp-hal.git"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[dependencies]
|
|
cortex-m = "0.7.2"
|
|
rp2040-boot2 = { version = "0.2.0", optional = true }
|
|
rp2040-hal = { path = "../../rp2040-hal", version = "0.4.0"}
|
|
cortex-m-rt = { version = "0.7", optional = true }
|
|
embedded-time = "0.12.0"
|
|
|
|
[dev-dependencies]
|
|
panic-halt= "0.2.0"
|
|
embedded-hal ="0.2.5"
|
|
smart-leds = "0.3.0"
|
|
ws2812-pio = { git = "https://github.com/ithinuel/ws2812-pio-rs", rev = "fd6b6604d65a66242b52ccf7f24a95ca325991dd" }
|
|
|
|
defmt = "0.2.0"
|
|
defmt-rtt = "0.2.0"
|
|
|
|
[features]
|
|
default = ["boot2", "rt"]
|
|
boot2 = ["rp2040-boot2"]
|
|
rt = ["cortex-m-rt","rp2040-hal/rt"]
|