1.1 --- a/Display_COG_Process.c Sun Apr 07 18:35:52 2013 +0000
1.2 +++ b/Display_COG_Process.c Sun May 19 21:18:16 2013 +0000
1.3 @@ -22,6 +22,7 @@
1.4 #include "Display_COG_Process.h"
1.5 #include "Display_Hardware_Driver.h"
1.6 #include "Display_Controller.h"
1.7 +#include <stdio.h>
1.8
1.9
1.10 /******************************************************************************
1.11 @@ -519,32 +520,7 @@
1.12
1.13 void epd_PowerOn(void)
1.14 {
1.15 - epd_discharge_low();
1.16 - epd_rst_low();
1.17 - epd_cs_low();
1.18 - epd_spi_init();
1.19 -
1.20 - epd_pwm_active(5);
1.21 -
1.22 - epd_panelon_on();
1.23 -
1.24 - epd_pwm_active(10);
1.25 -
1.26 - epd_cs_high();
1.27 -
1.28 - //epd_border_high();
1.29 -
1.30 - epd_rst_high();
1.31 -
1.32 - epd_pwm_active(5);
1.33 -
1.34 - epd_rst_low();
1.35 -
1.36 - epd_pwm_active(5);
1.37 -
1.38 - epd_rst_high();
1.39 -
1.40 - epd_pwm_active(5);
1.41 + bsp_PowerOn();
1.42 }
1.43
1.44 void epd_InitializeDriver(uint8_t EPDIndex)
1.45 @@ -599,6 +575,7 @@
1.46 epd_SPI_Send_Byte(0x05, 0x0f);
1.47 epd_delay_ms(30);
1.48 epd_SPI_Send_Byte(0x02, 0x24);
1.49 + printf("Done initialisation.\n");
1.50 }
1.51
1.52 void epd_Display (uint8_t *pNewImg, uint8_t *pPrevImg)
1.53 @@ -633,18 +610,7 @@
1.54 epd_SPI_Send_Byte(0x04, 0xA0);
1.55 epd_delay_ms(40);
1.56 epd_SPI_Send_Byte(0x04, 0x00);
1.57 -
1.58 - epd_rst_low();
1.59 - epd_cs_low();
1.60 - epd_spi_detach();
1.61 - epd_panelon_off();
1.62 -
1.63 - //epd_border_low();
1.64 -
1.65 - epd_discharge_high();
1.66 - epd_delay_ms(150);
1.67 - epd_discharge_low();
1.68 +
1.69 + printf("Shutdown...\n");
1.70 + bsp_Shutdown();
1.71 }
1.72 -
1.73 -
1.74 -