/** * \brief Configure GPIO */ void EPD_initialize_gpio(void) { config_gpio_dir_i( EPD_BUSY_PIN); config_gpio_dir_o( EPD_SPI_CS_PIN); config_gpio_dir_o( EPD_RST_PIN); config_gpio_dir_o( EPD_PANELON_PIN); config_gpio_dir_o( EPD_DISCHARGE_PIN); config_gpio_dir_o( EPD_BORDER_PIN); EPD_flash_cs_high(); // dumy EPD_border_low(); /** not used at present config_gpio_dir_o( Flash_CS_PIN); config_gpio_dir_i( Temper_PIN); */ }
/** * \brief Initialize SPI */ void epd_spi_attach (void) { EPD_flash_cs_high(); EPD_cs_high(); epd_spi_init(); }
/** * \brief Set Flash_CS pin to high and EPD_CS to low */ void Flash_cs_high(void) { EPD_flash_cs_high(); EPD_cs_low (); }