Songw Jiang
/
Quad-Rotor
Flight control with nRF and MPU6050
Revision 2:cef800934402, committed 2018-09-26
- Comitter:
- Ucial
- Date:
- Wed Sep 26 02:45:14 2018 +0000
- Parent:
- 1:23afaebeed15
- Commit message:
- Flight control of drone
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Aug 31 10:17:41 2018 +0000 +++ b/main.cpp Wed Sep 26 02:45:14 2018 +0000 @@ -6,8 +6,10 @@ DigitalOut myled(LED1); -int main() { - while(1) { +int main() +{ + while(1) + { myled = 1; // LED is ON wait(0.2); // 200 ms myled = 0; // LED is OFF