Skip to content

Commit

Permalink
add ED097TC2 timings
Browse files Browse the repository at this point in the history
  • Loading branch information
vroland committed Apr 22, 2020
1 parent 04eadd6 commit 9eaa952
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 12 deletions.
9 changes: 0 additions & 9 deletions software/firmware/Makefile

This file was deleted.

3 changes: 3 additions & 0 deletions software/firmware/components/epd_driver/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@ menu "E-Paper Driver"

config EPD_DISPLAY_TYPE_ED060SC4
bool "ED060SC4"

config EPD_DISPLAY_TYPE_ED097TC2
bool "ED097TC2"
endchoice
endmenu
7 changes: 7 additions & 0 deletions software/firmware/components/epd_driver/epd_driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,16 @@ uint32_t skipping;
#define CLEAR_BYTE 0B10101010
#define DARK_BYTE 0B01010101

#if defined(CONFIG_EPD_DISPLAY_TYPE_ED097OC4) || defined(CONFIG_EPD_DISPLAY_TYPE_ED060SC4)
/* 4bpp Contrast cycles in order of contrast (Darkest first). */
const uint8_t contrast_cycles_4[15] = {3, 3, 2, 2, 3, 3, 3, 4,
4, 5, 5, 5, 10, 20, 30};
#elif defined(CONFIG_EPD_DISPLAY_TYPE_ED097TC2)
const uint8_t contrast_cycles_4[15] = {1, 1, 1, 1, 2, 2, 2, 2,
2, 2, 2, 3, 5, 10, 20};
#else
#error "no display type defined!"
#endif

// Heap space to use for the EPD output lookup table, which
// is calculated for each cycle.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "esp_attr.h"
#include <stdint.h>

#ifdef CONFIG_EPD_DISPLAY_TYPE_ED097OC4
#if defined(CONFIG_EPD_DISPLAY_TYPE_ED097OC4) || defined(CONFIG_EPD_DISPLAY_TYPE_ED097TC2)
/// Width of the display area in pixels.
#define EPD_WIDTH 1200
/// Height of the display area in pixels.
Expand Down
5 changes: 3 additions & 2 deletions software/firmware/sdkconfig
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,9 @@ CONFIG_WL_SECTOR_SIZE=4096
CONFIG_WIFI_PROV_SCAN_MAX_ENTRIES=16
CONFIG_WIFI_PROV_AUTOSTOP_TIMEOUT=30
CONFIG_WPA_MBEDTLS_CRYPTO=y
# CONFIG_EPD_DISPLAY_TYPE_ED097OC4 is not set
CONFIG_EPD_DISPLAY_TYPE_ED060SC4=y
CONFIG_EPD_DISPLAY_TYPE_ED097OC4=y
# CONFIG_EPD_DISPLAY_TYPE_ED060SC4 is not set
# CONFIG_EPD_DISPLAY_TYPE_ED097TC2 is not set
# CONFIG_LEGACY_INCLUDE_COMMON_HEADERS is not set

# Deprecated options for backward compatibility
Expand Down

0 comments on commit 9eaa952

Please sign in to comment.