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