Skip to content

Commit 3630309

Browse files
committed
update hal to 0.14.0
1 parent 53a21ae commit 3630309

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
22
name = "esp32-conways-game-of-life-rs"
3-
version = "0.3.0"
3+
version = "0.4.0"
44
authors = ["Juraj Michálek <juraj.michalek@espressif.com>"]
55
edition = "2021"
66
license = "MIT OR Apache-2.0"
77

88
[dependencies]
9-
hal = { package = "esp32s3-hal", version = "0.13.0" }
9+
hal = { package = "esp32s3-hal", version = "0.14.0" }
1010
esp-backtrace = { version = "0.9.0", features = ["esp32s3", "panic-handler", "exception-handler", "print-uart"] }
1111
esp-println = { version = "0.7.0", features = ["esp32s3","log"] }
1212
log = { version = "0.4.18" }
@@ -17,4 +17,4 @@ display-interface = "0.4.1"
1717
display-interface-spi = "0.4.1"
1818
heapless = "0.8.0"
1919
embedded-dma = "0.2.0"
20-
spi-dma-displayinterface = { git = "https://github.com/georgik/esp32-spooky-maze-game.git", package = "spi-dma-displayinterface", features = [ "esp32s3" ], rev = "ad47396" }
20+
spi-dma-displayinterface = { git = "https://github.com/georgik/esp32-spooky-maze-game.git", package = "spi-dma-displayinterface", features = [ "esp32s3" ], rev = "fb5f755" }

src/main.rs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,10 @@ fn main() -> ! {
167167
println!("About to initialize the SPI LED driver");
168168
let io = IO::new(peripherals.GPIO, peripherals.IO_MUX);
169169

170-
let sclk = io.pins.gpio7;
171-
let mosi = io.pins.gpio6;
172-
let cs = io.pins.gpio5;
173-
let miso = io.pins.gpio2;
170+
let lcd_sclk = io.pins.gpio7;
171+
let lcd_mosi = io.pins.gpio6;
172+
let lcd_cs = io.pins.gpio5;
173+
let lcd_miso = io.pins.gpio2;
174174
// let sda = io.pins.gpio8;
175175
// let scl = io.pins.gpio18;
176176
let dc = io.pins.gpio4.into_push_pull_output();
@@ -185,13 +185,14 @@ fn main() -> ! {
185185

186186
let spi = Spi::new(
187187
peripherals.SPI2,
188-
sclk,
189-
mosi,
190-
miso,
191-
cs,
192188
60u32.MHz(),
193189
SpiMode::Mode0,
194190
&clocks,
191+
).with_pins(
192+
Some(lcd_sclk),
193+
Some(lcd_mosi),
194+
Some(lcd_miso),
195+
Some(lcd_cs),
195196
)
196197
.with_dma(dma_channel.configure(
197198
false,

0 commit comments

Comments
 (0)