Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <RH_ASK.h>
- #include <SPI.h> // Not actually used but needed to compile
- RH_ASK driver;
- void setup()
- {
- Serial.begin(9600); // Debugging only
- if (!driver.init())
- Serial.println("init failed");
- }
- void loop()
- {
- const char *msg = "1";
- driver.send((uint8_t *)msg, strlen(msg));
- driver.waitPacketSent();
- delay(1000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement