五月 2016
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

彙整

Arduino 作品分享

繼電器控制LED燈 接線圖

程式碼 int relayPin = 8; // the setup routine runs once when you press reset: void setup() { // initialize the digital pin as an output. pinMode(relayPin, OUTPUT); } // the loop routine runs over and over again forever: void loop() { digitalWrite(relayPin, HIGH); delay(1000); digitalWrite(relayPin, LOW); delay(1000); } LED數碼管 接線圖

[…]