Laser Sensing Display for UI interfaces in the real world
Fork of skinGames_forktest by
Diff: main.cpp
- Revision:
- 17:356ca5690a59
- Parent:
- 16:2ff1cb2ae1b1
- Child:
- 18:d72935b13858
diff -r 2ff1cb2ae1b1 -r 356ca5690a59 main.cpp --- a/main.cpp Fri Apr 13 07:43:09 2012 +0000 +++ b/main.cpp Sat Apr 28 09:33:49 2012 +0000 @@ -181,6 +181,8 @@ // (b)Sending Data: // PUT THIS IN AN INTERRUPT OR USE A TIMER!!! it may be TOO FAST... // NOTE: better use a timer, so the only ISR "ticker" is the laser rendering (otherwise the laser rendering will be interrupted by the sending of data - the other way is ok): + + if (measureSendPeriod.read_ms()>25) { measureSendPeriod.stop(); measureSendPeriod.reset();