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.
Fork of ESE350-Whack-a-Mole by
Revision 2:da2bbdea23a3, committed 2015-10-18
- Comitter:
- prithviganeshk
- Date:
- Sun Oct 18 21:09:36 2015 +0000
- Parent:
- 1:3ead502a934a
- Commit message:
- whack a mole slave node final working
Changed in this revision
whack_slave.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/whack_slave.cpp Sat Oct 17 23:05:52 2015 +0000 +++ b/whack_slave.cpp Sun Oct 18 21:09:36 2015 +0000 @@ -81,7 +81,7 @@ int main (void) { //Set the channel of the slave - uint8_t channel = 15; + uint8_t channel = 14; mrf.SetChannel(channel); //Analog input @@ -115,7 +115,7 @@ current = timer.read_ms(); val = button.read(); - if(val <= 0.4){ + if(val >= 0.3 && val < 0.6){ strcpy(txBuffer, "y"); ///send "y" if press break; }