Pin 28 is PC6
Pin 29 is PC7
DDRC is already config'd as output
This is where you make your changes
For example:
in move()
PORTC = R;
writes a '1' to PC1 and PC5 (pins 23 & 27) since 0x22 is 0010 0010
Just remap according to you schematic (or modified schematic)
Pin 29 is PC7
DDRC is already config'd as output
This is where you make your changes
Rich (BB code):
#define FWD 0xAA
#define REV 0x55
#define R 0x22
#define L 0x88
#define CW 0x99
#define CCW 0x66
#define STOP 0x00
#define B 0xFF
in move()
PORTC = R;
writes a '1' to PC1 and PC5 (pins 23 & 27) since 0x22 is 0010 0010
Just remap according to you schematic (or modified schematic)