Skip to content

Commit

Permalink
Backlight and Dependancy
Browse files Browse the repository at this point in the history
Moved Dependency to Workspace, updated backlight code.
  • Loading branch information
GordonCox committed Jul 31, 2024
1 parent 3f8ae44 commit 9e0a513
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,4 @@ usb-device = "0.3.1"
usbd-hid = "0.7.0"
usbd-serial = "0.2.1"
ws2812-pio = "0.8.0"
gc9a01a_driver = "0.1.3"
5 changes: 2 additions & 3 deletions boards/waveshare-rp2040-lcd-1-28/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ repository = "https://github.com/rp-rs/rp-hal-boards.git"
cortex-m-rt = { workspace = true, optional = true }
rp2040-boot2 = { workspace = true, optional = true }
rp2040-hal.workspace = true
embedded-hal = { version = "0.2" }
gc9a01a_driver = { version = "0.1.3" }

[dev-dependencies]
cortex-m.workspace = true
panic-halt.workspace = true
embedded-hal.workspace = true
fugit.workspace = true
nb.workspace = true
embedded-graphics.workspace = true
gc9a01a_driver = { workspace = true }

[features]
# This is the set of features we enable by default
Expand All @@ -49,4 +49,3 @@ disable-intrinsics = ["rp2040-hal/disable-intrinsics"]

# This enables ROM functions for f64 math that were not present in the earliest RP2040s
rom-v2-intrinsics = ["rp2040-hal/rom-v2-intrinsics"]

Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ use waveshare_rp2040_lcd_1_28::{
Pins, XOSC_CRYSTAL_FREQ,
};

use embedded_hal::digital::v2::OutputPin;

use embedded_graphics::{
pixelcolor::Rgb565,
prelude::*,
Expand Down Expand Up @@ -102,7 +100,7 @@ fn main() -> ! {

// Clear the screen before turning on the backlight
display.clear(Rgb565::BLACK).unwrap();
_lcd_bl.set_high().unwrap();
_lcd_bl.into_push_pull_output_in_state(hal::gpio::PinState::High);
delay.delay_ms(1000);

let lcd_zero = Point::zero();
Expand Down

0 comments on commit 9e0a513

Please sign in to comment.