Big Dome Box: Difference between revisions
Jump to navigation
Jump to search
Line 18: | Line 18: | ||
Sketch for Arduino Leornado |
Sketch for Arduino Leornado |
||
<pre> |
<pre> |
||
const int domeButton = 3; |
|||
void setup() { // initialize th button' inputs: |
|||
pinMode(domeButton, INPUT); |
|||
Keyboard.begin(); |
|||
} |
|||
void loop() { |
|||
if (digitalRead(domeButton) == HIGH) { |
|||
Keyboard.write(' '); |
|||
} |
|||
} |
|||
</pre> |
</pre> |
Revision as of 13:39, 5 December 2013
Matériel
- Big Dome Push Button
- MDF 6 mm / Contreplaqué 6 mm
- Arduino Leonardo
Design
Logiciel
Emergency Logout
http://www.arduino.cc/en/Tutorial/KeyboardLogout
Spacebar for Presentation
Sketch for Arduino Leornado
const int domeButton = 3; void setup() { // initialize th button' inputs: pinMode(domeButton, INPUT); Keyboard.begin(); } void loop() { if (digitalRead(domeButton) == HIGH) { Keyboard.write(' '); } }