Advertisement
Guest User

Untitled

a guest
Nov 9th, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void setup() {
  2.   Serial.begin(9600);
  3. }
  4.  
  5. void loop() {
  6.   Serial.write("\xa0\x01\x01\xa2"); // CHIUDE RELE
  7.   delay(1000);
  8.   Serial.write("\xa0\x01"); // APRE RELE
  9.   Serial.write(0x00); // null terminates a string so it has to be sent on its own
  10.   Serial.write(0xa1);
  11.   delay(5000);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement