add some missing include & fixed display output on sh1104 (#319)
* add some missing include * Fixed display on SH1106
This commit is contained in:
parent
5eae1664e5
commit
2b915c11c7
6 changed files with 8 additions and 1 deletions
|
@ -21,6 +21,8 @@
|
|||
#include "esp/spi_regs.h"
|
||||
#include "esp/dport_regs.h"
|
||||
#include "esp/wdev_regs.h"
|
||||
#include "esp/wdt_regs.h"
|
||||
#include "esp/rtcmem_regs.h"
|
||||
#include "esp/hwrand.h"
|
||||
#include "os_version.h"
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
#include "xtensa_ops.h"
|
||||
#include "esp/rom.h"
|
||||
#include "esp/uart.h"
|
||||
#include "esp/dport_regs.h"
|
||||
#include "espressif/esp_common.h"
|
||||
#include "esplibs/libmain.h"
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@
|
|||
#include "esp/iomux.h"
|
||||
#include "esp/i2s_regs.h"
|
||||
#include "esp/interrupts.h"
|
||||
#include "esp/iomux.h"
|
||||
#include "common_macros.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
|
|
@ -259,7 +259,7 @@ int ssd1306_load_frame_buffer(const ssd1306_t *dev, uint8_t buf[])
|
|||
#if (SSD1306_I2C_SUPPORT)
|
||||
case SSD1306_PROTO_I2C:
|
||||
for (i = 0; i < len; i++) {
|
||||
if(dev->screen == SH1106_SCREEN) sh1106_go_coordinate(dev,0,i/dev->width);
|
||||
if(dev->screen == SH1106_SCREEN && i%dev->width == 0) sh1106_go_coordinate(dev,0,i/dev->width);
|
||||
i2c_start();
|
||||
if (!i2c_write(dev->addr << 1)) {
|
||||
debug("Error while xmitting I2C slave address\n");
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
#include "esp/sar_regs.h"
|
||||
#include "esp/wdev_regs.h"
|
||||
#include "esp/uart.h"
|
||||
#include "esp/rtc_regs.h"
|
||||
#include "esp/iomux.h"
|
||||
|
||||
#include "etstimer.h"
|
||||
#include "espressif/sdk_private.h"
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
#include "esplibs/libwpa.h"
|
||||
#include "esplibs/libpp.h"
|
||||
#include "lwip/dhcp.h"
|
||||
#include "esp/rtcmem_regs.h"
|
||||
|
||||
static void wpa_callback1(struct pbuf* pb) {
|
||||
struct netif *netif = sdk_g_ic.v.station_netif_info->netif;
|
||||
|
|
Loading…
Reference in a new issue