|
Re: help w/ educontroller
Quote:
|
Originally Posted by jjv
Hi,
I'm in the process of getting the beacons up and running on the EduController.
I have one connected to PWM IN 1, and would like to put a IR detector on Digital In 1 to monitor it.
I would then like to have a debug that shows the status of this input.
All that I have tried has created errors though.
Any hints?
|
Use the beacon code and hook the IR sensor to Digital Input 6.
Add printf("%d",(int) rc_dig_in06); anywhere that gets executed regularly, like Process_Data_From_Local_IO. You'll see a stream of 1's when the beacon is off, and a mixture of 1's and 0's when the beacon is on.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Last edited by Mark McLeod : 21-01-2004 at 09:28.
|