clang
This commit is contained in:
parent
d3932bb27f
commit
ea58ebcd65
5 changed files with 18 additions and 19 deletions
|
|
@ -2,16 +2,16 @@
|
|||
#define _ADAFRUIT_THINKINK_H_
|
||||
|
||||
#include "Adafruit_EPD.h"
|
||||
#include "panels/ThinkInk_154_Grayscale4_M05.h"
|
||||
#include "panels/ThinkInk_154_Grayscale4_T8.h"
|
||||
#include "panels/ThinkInk_154_Mono_D27.h"
|
||||
#include "panels/ThinkInk_154_Mono_D67.h"
|
||||
#include "panels/ThinkInk_154_Mono_M10.h"
|
||||
#include "panels/ThinkInk_154_Grayscale4_M05.h"
|
||||
#include "panels/ThinkInk_154_Tricolor_RW.h"
|
||||
#include "panels/ThinkInk_154_Tricolor_Z17.h"
|
||||
#include "panels/ThinkInk_154_Tricolor_Z90.h"
|
||||
#include "panels/ThinkInk_213_Grayscale4_T5.h"
|
||||
#include "panels/ThinkInk_213_Grayscale4_MFGN.h"
|
||||
#include "panels/ThinkInk_213_Grayscale4_T5.h"
|
||||
#include "panels/ThinkInk_213_Mono_B72.h"
|
||||
#include "panels/ThinkInk_213_Mono_B73.h"
|
||||
#include "panels/ThinkInk_213_Mono_BN.h"
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ void Adafruit_SSD1680::begin(bool reset) {
|
|||
void Adafruit_SSD1680::update() {
|
||||
uint8_t buf[1];
|
||||
|
||||
buf[0] = _display_update_val; // varies for mono vs gray4 mode
|
||||
buf[0] = _display_update_val; // varies for mono vs gray4 mode
|
||||
EPD_command(SSD1680_DISP_CTRL2, buf, 1);
|
||||
EPD_command(SSD1680_MASTER_ACTIVATE);
|
||||
busy_wait();
|
||||
|
|
@ -189,7 +189,7 @@ void Adafruit_SSD1680::powerUp() {
|
|||
if (_epd_lut_code) {
|
||||
EPD_commandList(_epd_lut_code);
|
||||
}
|
||||
|
||||
|
||||
// Set display size and driver output control
|
||||
buf[0] = (WIDTH - 1);
|
||||
buf[1] = (WIDTH - 1) >> 8;
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ void Adafruit_SSD1681::update() {
|
|||
uint8_t buf[1];
|
||||
|
||||
// display update sequence
|
||||
buf[0] = _display_update_val; // varies for mono vs gray4 mode
|
||||
buf[0] = _display_update_val; // varies for mono vs gray4 mode
|
||||
EPD_command(SSD1681_DISP_CTRL2, buf, 1);
|
||||
|
||||
EPD_command(SSD1681_MASTER_ACTIVATE);
|
||||
|
|
@ -279,8 +279,6 @@ void Adafruit_SSD1681::powerUp() {
|
|||
buf[1] = (WIDTH - 1) >> 8;
|
||||
buf[2] = 0x00;
|
||||
EPD_command(SSD1681_DRIVER_CONTROL, buf, 3);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**************************************************************************/
|
||||
|
|
|
|||
|
|
@ -86,13 +86,13 @@ static const uint8_t ti_154m05_monofull_lut_code[] = {
|
|||
|
||||
class ThinkInk_154_Grayscale4_M05 : public Adafruit_SSD1681 {
|
||||
public:
|
||||
ThinkInk_154_Grayscale4_M05(int16_t SID, int16_t SCLK, int16_t DC, int16_t RST,
|
||||
int16_t CS, int16_t SRCS, int16_t MISO,
|
||||
int16_t BUSY = -1)
|
||||
ThinkInk_154_Grayscale4_M05(int16_t SID, int16_t SCLK, int16_t DC,
|
||||
int16_t RST, int16_t CS, int16_t SRCS,
|
||||
int16_t MISO, int16_t BUSY = -1)
|
||||
: Adafruit_SSD1681(200, 200, SID, SCLK, DC, RST, CS, SRCS, MISO, BUSY){};
|
||||
|
||||
ThinkInk_154_Grayscale4_M05 (int16_t DC, int16_t RST, int16_t CS, int16_t SRCS,
|
||||
int16_t BUSY = -1, SPIClass* spi = &SPI)
|
||||
ThinkInk_154_Grayscale4_M05(int16_t DC, int16_t RST, int16_t CS, int16_t SRCS,
|
||||
int16_t BUSY = -1, SPIClass* spi = &SPI)
|
||||
: Adafruit_SSD1681(200, 200, DC, RST, CS, SRCS, BUSY, spi){};
|
||||
|
||||
void begin(thinkinkmode_t mode = THINKINK_GRAYSCALE4) {
|
||||
|
|
@ -128,7 +128,7 @@ class ThinkInk_154_Grayscale4_M05 : public Adafruit_SSD1681 {
|
|||
layer_colors[EPD_GRAY] = 0b01;
|
||||
layer_colors[EPD_LIGHT] = 0b00;
|
||||
layer_colors[EPD_DARK] = 0b01;
|
||||
|
||||
|
||||
setRotation(3);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -116,13 +116,14 @@ static const uint8_t ti_213mfgn_gray4_lut_code[] = {
|
|||
|
||||
class ThinkInk_213_Grayscale4_MFGN : public Adafruit_SSD1680 {
|
||||
public:
|
||||
ThinkInk_213_Grayscale4_MFGN(int16_t SID, int16_t SCLK, int16_t DC, int16_t RST,
|
||||
int16_t CS, int16_t SRCS, int16_t MISO,
|
||||
int16_t BUSY = -1)
|
||||
ThinkInk_213_Grayscale4_MFGN(int16_t SID, int16_t SCLK, int16_t DC,
|
||||
int16_t RST, int16_t CS, int16_t SRCS,
|
||||
int16_t MISO, int16_t BUSY = -1)
|
||||
: Adafruit_SSD1680(250, 122, SID, SCLK, DC, RST, CS, SRCS, MISO, BUSY){};
|
||||
|
||||
ThinkInk_213_Grayscale4_MFGN (int16_t DC, int16_t RST, int16_t CS, int16_t SRCS,
|
||||
int16_t BUSY = -1, SPIClass* spi = &SPI)
|
||||
ThinkInk_213_Grayscale4_MFGN(int16_t DC, int16_t RST, int16_t CS,
|
||||
int16_t SRCS, int16_t BUSY = -1,
|
||||
SPIClass* spi = &SPI)
|
||||
: Adafruit_SSD1680(250, 122, DC, RST, CS, SRCS, BUSY, spi){};
|
||||
|
||||
void begin(thinkinkmode_t mode = THINKINK_GRAYSCALE4) {
|
||||
|
|
@ -161,7 +162,7 @@ class ThinkInk_213_Grayscale4_MFGN : public Adafruit_SSD1680 {
|
|||
layer_colors[EPD_GRAY] = 0b01;
|
||||
layer_colors[EPD_LIGHT] = 0b00;
|
||||
layer_colors[EPD_DARK] = 0b01;
|
||||
|
||||
|
||||
setRotation(0);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue