aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
blob: ee48cf86138903d633deb8954d256bae27ae1cd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
mod board;
mod drivers;

use drivers::display::Display;

fn main() {
    // It is necessary to call this function once. Otherwise, some patches to the runtime
    // implemented by esp-idf-sys might not link properly. See https://github.com/esp-rs/esp-idf-template/issues/71
    esp_idf_svc::sys::link_patches();

    // Bind the log crate to the ESP Logging facilities
    esp_idf_svc::log::EspLogger::initialize_default();

    log::info!("ORION-RF Booted!!");
    let mut display = Display::new();

    display.init();
    display.draw_text("ORION-RF");

}