1.1 --- a/Display_COG_Process.c Sun May 19 21:42:23 2013 +0000
1.2 +++ b/Display_COG_Process.c Tue May 21 15:23:53 2013 +0000
1.3 @@ -520,7 +520,32 @@
1.4
1.5 void epd_PowerOn(void)
1.6 {
1.7 - bsp_PowerOn();
1.8 + epd_discharge_low();
1.9 + epd_rst_low();
1.10 + epd_cs_low();
1.11 + epd_spi_init();
1.12 +
1.13 + epd_pwm_active(5);
1.14 +
1.15 + epd_panelon_on();
1.16 +
1.17 + epd_pwm_active(10);
1.18 +
1.19 + epd_cs_high();
1.20 +
1.21 + //epd_border_high();
1.22 +
1.23 + epd_rst_high();
1.24 +
1.25 + epd_pwm_active(5);
1.26 +
1.27 + epd_rst_low();
1.28 +
1.29 + epd_pwm_active(5);
1.30 +
1.31 + epd_rst_high();
1.32 +
1.33 + epd_pwm_active(5);
1.34 }
1.35
1.36 void epd_InitializeDriver(uint8_t EPDIndex)
1.37 @@ -611,6 +636,14 @@
1.38 epd_delay_ms(40);
1.39 epd_SPI_Send_Byte(0x04, 0x00);
1.40
1.41 - printf("Shutdown...\n");
1.42 - bsp_Shutdown();
1.43 + epd_rst_low();
1.44 + epd_cs_low();
1.45 + epd_spi_detach();
1.46 + epd_panelon_off();
1.47 +
1.48 + //epd_border_low();
1.49 +
1.50 + epd_discharge_high();
1.51 + epd_delay_ms(150);
1.52 + epd_discharge_low();
1.53 }