code thoughts - st7565r

functions for writing 'commands' and 'data':

void data(int value) { nCS = 0; nCD = 1; _spi.write(value); nCS = 1;

} void command(int value) { nCS = 0; nCD = 0; _spi.write(value); nCS = 1;


Please log in to post comments.