Coming from an 8052 background I know how to send a byte to an I/O port. But using C and the Arduino Mega, I am not sure how.
I want to control 2 motors using a motor driver which of course has 2 inputs for each motor and PWM. I know I can used DIGITALWRITE to set a pin but that needs to be done 4 times (or at least 2 times). If I could write one byte (actually a nimble) to some port, I can do it in one statement. Inputs?
Thanks.
JC