Project 7.01 Arno phone home
This project is a quick demonstration of the Keyboard object that it supported by the Arno, Arduino Leonardo, and Olympia Circuit’s LeOlympia. Upload the sketch and then open Google Chrome or another internet browser. Click in the address bar (usually at the top of the browser; it’s the box that says something like “http:/www…”). Now press SW1. You should be direct to the website for Olympia Circuits, birthplace of the Arno.
Concepts: Keyboard object
Circuits: None
Concepts: Keyboard object
Circuits: None
The Keyboard object is easy to use. In the setup() block, we create an instance of the object:
Keyboard.begin();
In the loop() block, we wait for SW1 to be pressed so that it goes to LOW:
if(digitalRead(SW1)==LOW){
Once SW1 is pressed we use the Keyboard.println method to type the web address for Olympia Circuits, followed by a return character:
Keyboard.println("http://www.olympiacircuits.com/");
Finally, we delay 5 seconds before checking SW1 again:
delay(5000);
}
Keyboard.begin();
In the loop() block, we wait for SW1 to be pressed so that it goes to LOW:
if(digitalRead(SW1)==LOW){
Once SW1 is pressed we use the Keyboard.println method to type the web address for Olympia Circuits, followed by a return character:
Keyboard.println("http://www.olympiacircuits.com/");
Finally, we delay 5 seconds before checking SW1 again:
delay(5000);
}