Zalo bán hàng : 0981 949 841
Email: sales@dientubachviet.com
———————-CODE THAM KHẢO———————
/* * Kết nối: * VCC ----- 5V (Arduino) * OUT1 ----- 3 (Arduino) * OUT2 ----- 4 (Arduino) * OUT3 ----- 5 (Arduino) * OUT4 ----- 6 (Arduino) * OUT5 ----- 7 (Arduino) * GND ----- GND (Arduino) */ void setup() { Serial.begin(9600); } void loop() { Serial.print(digitalRead(3)); Serial.print(digitalRead(4)); Serial.print(digitalRead(5)); Serial.print(digitalRead(6)); Serial.println(digitalRead(7)); }