12 struct sercom_data sercom;
14 int uoled_write_cmd(u_int8_t *buff, int size) {
19 printf("sending command: ");
21 printf("%02x ",*(buff+i));
25 ret = write(sercom.fd, buff, size);
29 /* read(sercom.fd, &rep, 1);
31 printf("Response: %02x\n", rep);
40 int uoled_switch_mode_rep() {
42 u_int8_t msg[ERASE_MSG_SIZE];
44 lcd_erase(msg, ERASE_MSG_SIZE);
46 ret = ulcdd_write_cmd(msg, ERASE_MSG_SIZE);