適用於DE2-70
D Flip-Flop 應用
KEY[3:0] 內部有schmitter trigger 電路作為Debounce
module reg_nonBlock(CLOCK_50,KEY,LEDG);
input CLOCK_50; //Clock 50MHZ
input [3:0] KEY;
output reg [7:0] LEDG;
always @ (posedge KEY[0])
LEDG<=~LEDG;
endmodule
Wokwi ESP32 DHT22 & LED + Node-Red + Telegram WOKWI程式 #include " WiFi.h " ; #include < PubSubClient.h > ; #include ...
沒有留言:
張貼留言