help w/ educontroller

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.

Thanks!