parent
e3fd07a28e
commit
cb95755998
3 changed files with 9 additions and 8 deletions
|
|
@ -23,7 +23,7 @@ use esp_hal::handler;
|
|||
use core::cell::RefCell;
|
||||
use esp_hal::time::{Duration, Instant};
|
||||
use esp_hal::timer::timg::TimerGroup;
|
||||
|
||||
use esp_backtrace as _;
|
||||
use critical_section::Mutex;
|
||||
use rtt_target::rprintln;
|
||||
mod dc_driver;
|
||||
|
|
@ -38,7 +38,10 @@ fn panic(_: &core::panic::PanicInfo) -> ! {
|
|||
//
|
||||
static EMERGENCY_BUTTON: Mutex<RefCell<Option<Input>>> = Mutex::new(RefCell::new(None));
|
||||
extern crate alloc;
|
||||
|
||||
//target RPM
|
||||
const DEFAULT_TARGET_RPM: u32 = 1000;
|
||||
//in seconds
|
||||
const DEFAULT_SPIN_TIME:u32 = 10;
|
||||
// This creates a default app-descriptor required by the esp-idf bootloader.
|
||||
// For more information see: <https://docs.espressif.com/projects/esp-idf/en/stable/esp32/api-reference/system/app_image_format.html#application-description>
|
||||
esp_bootloader_esp_idf::esp_app_desc!();
|
||||
|
|
@ -98,12 +101,6 @@ fn main() -> ! {
|
|||
.unwrap()
|
||||
.with_rx(peripherals.GPIO5)
|
||||
.with_tx(peripherals.GPIO7);
|
||||
// uart0.write(b"page page0");
|
||||
// uart0.write(b"\xff");
|
||||
// uart0.write(b"\xff");
|
||||
// uart0.write(b"\xff");
|
||||
// uart0.write(b"\xff");
|
||||
// rprintln!("WRITE HAPPENED!");
|
||||
let mut display = Nextion::new(&mut uart0);
|
||||
display.send_command(b"page page0");
|
||||
loop {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue