Alvaro Cassinelli
/
skinGames_forktest
just a test
Fork of scoreLight_Advanced by
Diff: main.cpp
- Revision:
- 35:35af5086ab4f
- Parent:
- 34:1244fa3f2559
- Child:
- 36:233b12d0b1f0
--- a/main.cpp Wed Nov 07 14:41:55 2012 +0000 +++ b/main.cpp Tue Nov 13 04:40:08 2012 +0000 @@ -493,7 +493,6 @@ } } - else if (!strcmp(address[0], "vertical_pinball")) { int value=data[0]; if (value!=-1) { // otherwise do nothing, this is a reception error (there was no data) @@ -610,6 +609,8 @@ if (value!=-1) { // otherwise do nothing, this is a reception error (there was no data) for (int i=0; i< blobconf.numBlobs; i++) blobconf.blobArray[i]->displaySensingBuffer.setThresholdMode(value); } + // set led and switch state (global value of threshold): + IO.setSwitchOneState(value>0); } // (a) AUTO THRESHOLD: