chore(examples): remove unused functions or varible to avoid compiling warning

This commit is contained in:
dongheng
2019-06-18 13:07:25 +08:00
parent ed4bbcf610
commit c1d329b78f
2 changed files with 0 additions and 13 deletions

View File

@ -54,18 +54,6 @@ static esp_err_t oled_write_cmd(uint8_t data)
return ESP_OK;
}
// Write an 8-bit data
static esp_err_t oled_write_byte(uint8_t data)
{
uint32_t buf = data << 24;
spi_trans_t trans = {0};
trans.mosi = &buf;
trans.bits.mosi = 8;
oled_set_dc(1);
spi_trans(HSPI_HOST, trans);
return ESP_OK;
}
static esp_err_t oled_rst()
{
gpio_set_level(OLED_RST_GPIO, 0);