Sam Grove
/
Re-InvokeISP
Testing documentation
Diff: main.h
- Revision:
- 3:987ee333d593
- Child:
- 4:3f1a2b5dc176
diff -r 60a7f968d4ad -r 987ee333d593 main.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.h Mon Apr 18 04:14:57 2011 +0000 @@ -0,0 +1,38 @@ +/** Servo control class, based on a PwmOut + * + * Example: + * @code + * // Continuously sweep the servo through it's full range + * #include "mbed.h" + * #include "Servo.h" + * + * Servo myservo(p21); + * + * int main() { + * while(1) { + * for(int i=0; i<100; i++) { + * myservo = i/100.0; + * wait(0.01); + * } + * for(int i=100; i>0; i--) { + * myservo = i/100.0; + * wait(0.01); + * } + * } + * } + * @endcode + */ +/** Create a servo object connected to the specified PwmOut pin + * + * @param pin PwmOut pin to connect to + */ + + /** A brief description of the function foo + * + * More details about the function goes here + * and here + * + * @param x a variable used by foo + * @returns something magical done with x + */ +int foo(int x) {...} \ No newline at end of file