Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include "hwlib.hpp"
  2.  
  3.  
  4.  
  5.  
  6. int main() {
  7.  
  8. // IR output LED
  9. auto ir = hwlib::target::d2_36kHz();
  10.  
  11. for(;;){
  12.  
  13. ir.write(1);
  14. ir.flush();
  15. ir.write(0);
  16. ir.flush();
  17.  
  18.  
  19.  
  20. }
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27. return 0;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement