Guest User

Untitled

a guest
Feb 12th, 2018
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #include <VirtualWire.h>
  2.  
  3. char msg[6];
  4.  
  5. void setup() {
  6.  
  7. vw_setup(2000);
  8. vw_set_tx_pin(12);
  9. }
  10.  
  11. void loop() {
  12. float temperatura = 17;
  13. dtostrf(temperatura, 6, 2, msg);
  14. vw_send((uint8_t *)msg, strlen(msg));
  15. vw_wait_tx();
  16. delay(200);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment