| 1 | |
| 2 | mod board; |
| 3 | mod drivers; |
| 4 | |
| 5 | use drivers::display::Display; |
| 6 | |
| 7 | fn main() { |
| 8 | // It is necessary to call this function once. Otherwise, some patches to the runtime |
| 9 | // implemented by esp-idf-sys might not link properly. See https://github.com/esp-rs/esp-idf-template/issues/71 |
| 10 | esp_idf_svc::sys::link_patches(); |
| 11 | |
| 12 | // Bind the log crate to the ESP Logging facilities |
| 13 | esp_idf_svc::log::EspLogger::initialize_default(); |
| 14 | |
| 15 | log::info!("ORION-RF Booted!!"); |
| 16 | let mut display = Display::new(); |
| 17 | |
| 18 | display.init(); |
| 19 | display.draw_text("ORION-RF"); |
| 20 | |
| 21 | } |