Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
ReadFinalLine.cpp
00001 #include "mbed.h" 00002 #include "MotorDriver.h" 00003 00004 00005 static bool line1 = false; 00006 static bool line2 = false; 00007 00008 void setLine1() 00009 { 00010 line1 = true; 00011 printf("Line1\n"); 00012 } 00013 00014 void setLine2() 00015 { 00016 line2 = true; 00017 printf("Line2\n"); 00018 } 00019 00020 bool readFinalLine(void) 00021 { 00022 if(line1 == true && line2 == true) 00023 { 00024 stop(); 00025 return true; 00026 } 00027 else 00028 { 00029 return false; 00030 } 00031 }
Generated on Fri Jul 15 2022 22:53:33 by
1.7.2