message: blink: match c version
diff: #![no_std]
  +#![feature(alloc)]
  extern crate tock;
  @@ -7,10 +8,22 @@ use tock::timer;
  use tock::timer::Duration;
  fn main() {
  - let led = led::get(0).unwrap();
  + let num_leds = led::count();
  + // Blink the LEDs in a binary count pattern and scale
  + // to the number of LEDs on the board.
  + let mut count: usize = 0;
  loop {
  - led.toggle();
  - timer::sleep(Duration::from_ms(500));
  + for i in 0..num_leds {
  + if count & (1 << i) == (1 << i) {
  + led::get(i).unwrap().on();
  + } else {
  + led::get(i).unwrap().off();
  + }
  + }
  + count = count.wrapping_add(1);
  +
  + // This delay uses an underlying timer in the kernel.
  + timer::sleep(Duration::from_ms(250));
  }
  }
  