w
This commit is contained in:
1
blinky/.gitignore
vendored
Normal file
1
blinky/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
build/
|
||||
BIN
blinky/.surfer/translators/spade_translator.wasm
Normal file
BIN
blinky/.surfer/translators/spade_translator.wasm
Normal file
Binary file not shown.
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];
|
||||
}
|
||||
2
blinky/swim.lock
Normal file
2
blinky/swim.lock
Normal file
@ -0,0 +1,2 @@
|
||||
[spade]
|
||||
commit = "7dddfabc0c38800ebe097bfd2c88f85e63366831"
|
||||
1
blinky/swim.toml
Normal file
1
blinky/swim.toml
Normal file
@ -0,0 +1 @@
|
||||
name = "blinky"
|
||||
Reference in New Issue
Block a user