Advertisement
Guest User

Arduino Code

a guest
Jul 10th, 2013
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.55 KB | None | 0 0
  1. //Arduino Code
  2.  
  3. void setup()      //Initial setups, these are called once on startup only
  4. {
  5.   Serial.begin(19200);                  //Start serial connection to PC
  6.   Serial1.begin(19200);                 //Start listening to Electric Imp
  7.   Serial.println("Platform ready.");    //Message that platform is ready for commands
  8.   Serial1.print("Platform ready.");     //Message to Imp
  9. }
  10.  
  11. void loop()                            
  12. {  
  13.   Serial1.write("Hello World");
  14. }
  15.  
  16. //Notes: The Hello World and Platform Ready strings never show up in the Imp's server log.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement