31 #if defined(CONFIG_AVR_UART_AVAILABLE) && defined(CONFIG_AVR_UART_ENABLE) 35 static void ssd1306_uartStart(
void)
39 static void ssd1306_uartStop(
void)
44 static void ssd1306_uartSendByte(uint8_t data)
46 if ((data == 0x7E) || (data == 0x7D))
54 static void ssd1306_uartSendBytes(
const uint8_t * buffer, uint16_t len)
58 ssd1306_uartSendByte(*buffer);
65 if (!baud) baud = 115200;
void(* send)(uint8_t data)
static void uart_init(uint32_t baud)
Initializes uart module.
void(* close)(void)
deinitializes internal resources, allocated for interface.
ssd1306_interface_t ssd1306_intf
void ssd1306_uartInit_Builtin(uint32_t baud)
void(* send_buffer)(const uint8_t *buffer, uint16_t size)
Sends bytes to SSD1306 device.
void uart_send_byte(uint8_t c)
Sends single byte over UART.