main.rs 293 Bytes
Newer Older
Astro's avatar
Astro committed
1
2
3
#![no_std]
#![no_main]

Astro's avatar
Astro committed
4
5
use core::fmt::Write;
use l0dable::*;
Astro's avatar
Astro committed
6

Astro's avatar
Astro committed
7
8
9
10
11
12
13
14
15
main!(main);
fn main() {
    writeln!(UART, "Hello from Rust\r").unwrap();

    let display = Display::open();
    for x in 0..160 {
        display.print(160 - x, 10, "Hello Rust\0", 0xffff, 0);
        display.update();
    }
Astro's avatar
Astro committed
16
}