I hate to waste an analog pin on a digital PIR but I need to hook the sensor to regulated (not battery) power since I'm using 6 V in and it will only take 5V max,...
I have my PIR hooked to K7 AKA analog 15 ( which is by default an analog pin) what do need to include in my program so that one port is digital not analog?
I looked in SofR_UTILS.h and found a comment about making an analog port digital but couldn't discern the correct example...
I assume then I can read with :
(bit_is_set(PINK, 7)
for a device that will go high when active.
BTW, LOVE the AXON! Finally, plenty of memory, UARTS, pins, interrupts, etc. Great library to work with as well!
Thanks
Doug