Skip to content

Commit

Permalink
working via UART
Browse files Browse the repository at this point in the history
  • Loading branch information
thedevleon committed Dec 23, 2023
1 parent 84d243c commit f9206e5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ opt-level = 2

[dependencies]
hal = { package = "esp32c6-hal", version = "0.6.0" }
esp-backtrace = { version = "0.9.0", features = ["esp32c6", "panic-handler", "exception-handler", "print-uart"] }
esp-println = { version = "0.7.0", features = ["esp32c6", "log"] }
esp-backtrace = { version = "0.9.0", default-features = false, features = ["esp32c6", "panic-handler", "exception-handler", "print-uart"] }
esp-println = { version = "0.7.0", default-features = false, features = ["esp32c6", "log", "uart"] }
log = { version = "0.4.18" }
esp-alloc = { version = "0.3.0" }
esp-wifi = { version = "0.1.1", default-features = false, features = ["esp32c6", "ble"] }
Expand Down
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ use hal::{clock::ClockControl, peripherals::*, prelude::*, Rng, IO};

#[entry]
fn main() -> ! {
#[cfg(feature = "log")]
esp_println::logger::init_logger(log::LevelFilter::Info);

let peripherals = Peripherals::take();
Expand All @@ -37,6 +36,8 @@ fn main() -> ! {
let mut debounce_cnt = 500;
let mut bluetooth = peripherals.BT;

println!("Hello, world!");

loop {
let connector = BleConnector::new(&init, &mut bluetooth);
let hci = HciConnector::new(connector, esp_wifi::current_millis);
Expand Down

0 comments on commit f9206e5

Please sign in to comment.