![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
whack a mole slave node
Fork of ESE350-Whack-a-Mole by
Diff: whack_slave.cpp
- Revision:
- 2:da2bbdea23a3
- Parent:
- 1:3ead502a934a
diff -r 3ead502a934a -r da2bbdea23a3 whack_slave.cpp --- 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; }