Completed Snake Program

Dependencies:   N5110 PinDetect PowerControl mbed

Fork of DocTest by Craig Evans

Files at this revision

API Documentation at this revision

Comitter:
eencae
Date:
Wed Mar 11 10:55:42 2015 +0000
Child:
1:6fc14cd8ccf1
Commit message:
Initial commit

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
main.h 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 Mar 11 10:55:42 2015 +0000
@@ -0,0 +1,27 @@
+/**
+@file main.cpp
+
+@brief Program implementation
+
+*/
+#include "main.h"
+
+int main() {
+    while(1) {
+        myled = 1;
+        wait(0.2);
+        myled = 0;
+        wait(0.2);
+    }
+}
+
+
+/**
+*   Doesn't really. Just an example function.
+*   @param a - some random value
+*   @returns the same value
+*/
+int blink(int a) {
+    
+    return a;
+}
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.h	Wed Mar 11 10:55:42 2015 +0000
@@ -0,0 +1,28 @@
+/**
+@file main.h
+
+@brief Header file containing functions prototypes, defines and global variables
+@brief Shows examples of creating Doxygen documentation
+@brief Revision 1.0
+
+@author Craig A. Evans
+@date   March 2015
+
+*/
+
+#ifndef MAIN_H
+#define MAIN_H
+
+#define PI 3.14159265359
+
+#include "mbed.h"
+
+
+DigitalOut myled(LED1); 
+
+int globalInt; /*!< an integer value */
+
+
+int blink(int a);
+
+#endif
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Mar 11 10:55:42 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/7e07b6fb45cf
\ No newline at end of file