Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Arduino.h>
- int powerPin = 5;
- byte messageA[] = {0xA6, 0x12, 0x02, 0x10, 0x14, 0xCF};
- byte messageB[] = {0xA6, 0x12, 0x02, 0x11, 0x14, 0x0B};
- byte messageC[] = {0xA6, 0x12, 0x02, 0x15, 0x14, 0x30};
- void setup() {
- // initialize Serial: Serial.begin(9600);
- pinMode(powerPin, OUTPUT);
- digitalWrite(powerPin, HIGH);
- }
- void loop() {
- delay(500);
- Serial.write(messageC, sizeof(messageC));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement