w
This commit is contained in:
7
blinky/src/main.spade
Normal file
7
blinky/src/main.spade
Normal file
@ -0,0 +1,7 @@
|
||||
#[no_mangle(all)]
|
||||
entity main(clk: clock, leds: inv [bool; 4]) {
|
||||
|
||||
reg(clk) counter: uint<24> = counter +. 1;
|
||||
|
||||
set leds = (counter >> 20).as_bits()[0..4];
|
||||
}
|
||||
Reference in New Issue
Block a user