#ifndef _7IN5_EPD_SPI_
#define _7IN5_EPD_SPI_
#include "Arduino.h"

//IO settings
//SCK--GPIO23(SCLK)
//SDIN---GPIO18(MOSI)
#define TEST_Pin  7 
#define BUSY_Pin  13 
#define RES_Pin   33 
#define DC_Pin    14 

#define CS_Pin    27 
#define SCK_Pin   18 
#define SDI_Pin   23

#define isEPD_W21_BUSY digitalRead(BUSY_Pin)  //BUSY
#define EPD_W21_RST_0 digitalWrite(RES_Pin,LOW)  //RES
#define EPD_W21_RST_1 digitalWrite(RES_Pin,HIGH)
#define EPD_W21_DC_0  digitalWrite(DC_Pin,LOW) //DC
#define EPD_W21_DC_1  digitalWrite(DC_Pin,HIGH)
#define EPD_W21_CS_0 digitalWrite(CS_Pin,LOW) //CS
#define EPD_W21_CS_1 digitalWrite(CS_Pin,HIGH)


void SPI_Write(unsigned char value);
void EPD_W21_WriteDATA(unsigned char datas);
void EPD_W21_WriteCMD(unsigned char command);


#endif 
