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.
bluetoothFunc.h
00001 bool bluetoothFunc(int& num, int& upOrDown){ 00002 char bnum = blue.getc(); 00003 bool dataValid = false; 00004 if (bnum =='!') { 00005 bnum = blue.getc(); 00006 if (bnum == 'B') { 00007 bnum = blue.getc(); 00008 num = bnum - '0'; 00009 upOrDown = blue.getc() - '0'; 00010 dataValid = true; 00011 } 00012 } 00013 if(dataValid){ 00014 return true; 00015 } else { 00016 return false; 00017 } 00018 }
Generated on Thu Jul 14 2022 20:08:03 by
