be80be
Well-Known Member
I'm trying to get my head around how to send bit's out a 2 ports. I have 2 ports RB0 and RB1 then RC0 to RC7
Code:
#define BIT8 0x01
#define BIT7 0x02
#define BIT8 0x04
#define BIT7 0x08
#define BIT6 0x10
#define BIT5 0x20
#define BIT4 0x40
#define BIT3 0x80
#define BIT2 0x100
#define BIT1 0x200
char bits[10] = {BIT1, BIT2, BIT3, BIT4, BIT5, BIT6, BIT7, BIT8, BIT9, BIT10};
// how would I use this here to set it to say 1023