Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#define CS2 LATBbits.LATB12
#define CS1 LATBbits.LATB11
#define DI LATBbits.LATB10
#define RW LATBbits.LATB9
#define E LATBbits.LATB8
//Then all you need is:
CS1 = 0; DI = 1; RW = 0; //etc.
union {
unsigned char byte;
struct {
unsigned bits0_2:3;
unsigned bits3_5:3;
unsigned bits6_7:2;
};
} OddBit
OddBit.byte = 0;
for( OddBit.bits3_5 = 0x7; OddBit.bits3_5 > 0; OddBit.bits3_5-- )
{ OddBit.bits0_2++; }
OddBit.byte = 0x55;