Skip to content

Commit

Permalink
add some missing include & fixed display output on sh1104 (#319)
Browse files Browse the repository at this point in the history
* add some missing include

* Fixed display on SH1106
  • Loading branch information
tuanpmt authored and sheinz committed Jan 2, 2017
1 parent 5eae166 commit 2b915c1
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions core/app_main.c
Expand Up @@ -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"

Expand Down
1 change: 1 addition & 0 deletions core/debug_dumps.c
Expand Up @@ -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"

Expand Down
1 change: 1 addition & 0 deletions extras/i2s_dma/i2s_dma.c
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion extras/ssd1306/ssd1306.c
Expand Up @@ -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");
Expand Down
2 changes: 2 additions & 0 deletions open_esplibs/libmain/user_interface.c
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions open_esplibs/libwpa/wpa_main.c
Expand Up @@ -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;
Expand Down

0 comments on commit 2b915c1

Please sign in to comment.