blob: fb0c34dd1c6c11044e2147ef56f79784a413eb81 [file] [log] [blame]
#![feature(alloc)]
#![no_std]
extern crate alloc;
extern crate tock;
use alloc::string::String;
use tock::console::Console;
use tock::timer;
use tock::timer::Duration;
// TODO: Make format!/alloc::string::ToString work
fn main() {
let mut console = Console::new();
for i in 0.. {
console.write(String::from("Hello world! "));
console.write(tock::fmt::u32_as_decimal(i));
console.write(String::from("\n"));
timer::sleep(Duration::from_ms(500))
}
}