diff --git a/fpga/tinyfpga/btled/top.v b/fpga/tinyfpga/btled/top.v index cce9ea9..da97773 100644 --- a/fpga/tinyfpga/btled/top.v +++ b/fpga/tinyfpga/btled/top.v @@ -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;