auto clicker for coockieclicker

Dependencies:   USBDevice mbed

Fork of DigitalIn_HelloWorld_Mbed by mbed official

Files at this revision

API Documentation at this revision

Comitter:
mbed_official
Date:
Wed Feb 13 16:09:04 2013 +0000
Child:
1:2cf612e040e0
Commit message:
digitalIn hello world

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Feb 13 16:09:04 2013 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+ 
+DigitalIn enable(p5);
+DigitalOut led(LED1);
+ 
+int main() {
+    while(1) {
+        if(enable) {
+            led = !led;
+        }
+        wait(0.25);
+    }
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Feb 13 16:09:04 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/0954ebd79f59
\ No newline at end of file