acd52832 blinky example
Diff: main.cpp
- Revision:
- 0:796985b808bc
- Child:
- 1:8fd903e4bcef
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu Sep 15 11:57:29 2016 +0000
@@ -0,0 +1,25 @@
+/* Copyright (c) 2016 Aconno. All Rights Reserved.
+ *
+ * Licensees are granted free, non-transferable use of the information. NO
+ * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
+ * the file.
+ *
+ * aconno simple example program
+ * blinky LED LD1
+ */
+
+#include "mbed.h"
+#include "acd52832_bsp.h"
+
+#define pause 1 // Pause in seconds
+
+DigitalOut LD1(PIN_LED);
+
+int main(){
+ while(1){
+ LD1 = 1;
+ wait(pause);
+ LD1 = 0;
+ wait(pause);
+ }
+}
\ No newline at end of file