Advertisement
schreiberstein

arduino-megast-keyboard-01

Dec 29th, 2012
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1. #include <SoftwareSerial.h>
  2.  
  3. SoftwareSerial atari_rxtx(7, 8);
  4.  
  5. void setup() {
  6.  
  7.   Serial.begin(9600);
  8.   atari_rxtx.begin(7812.5);
  9.   Serial.println("Welcome! We're now waiting for the Atari input!\n-----------------------------------------------\n");
  10.  
  11. }
  12.  
  13. void loop() {
  14.   if (atari_rxtx.available() > 0) {
  15.     Serial.println(atari_rxtx.read());
  16.   }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement