@DM1985 wrote:
Hi everyone,
Newbie. Quite simply how do I code for input sensors.
For example I am trying to get a IR obstacle sensor to work in input 1 but don’t know how to write it into code for the explorer hat. There doesn’t appear to be any instructions (can only find info for analogue sensors).
I’m a newbie so a little lost. All I want to do is for a program to print ‘object detected’ when it is within say 10cm or print whenever a change occurs (perhaps the distance value?). Any advice would be great.
Thanks,
Dee
Posts: 3
Participants: 2