I am reading through the code and am a bit confused about what my Ping))) code is actually doing.
Take for example, the following:
#define PINGPIN 7 // assign a pin to the Ping Sensor
#define DDR DDRF
PORT_ON(DDR, PINGPIN); // Switch PingPin to OUPUT
I follow this over to SoR_Utils.h and see that
#define PORT_ON( port_letter, number ) port_letter |= (1<<number)
is there. I understand that this runs the PORT_ON macro using DDRF and 7 as the arguments. So it does a bitwise operation on them. But what happens then? I don't see where something is done with that new bitwise piece. It seems like some function must be called with it, but I don't see where that's happening.
Thanks
J