TinyFPGA/btled: a comment.
This commit is contained in:
parent
95827da3e1
commit
4770a2bd9c
|
@ -15,6 +15,8 @@ module top (
|
|||
reg pressed = 0;
|
||||
|
||||
assign LED = state;
|
||||
|
||||
// I found the negedge was better for debouncing.
|
||||
always @(negedge PIN_6)
|
||||
state <= !state;
|
||||
|
||||
|
|
Loading…
Reference in New Issue