// N108-1222TBBIG01-H13 // //Newvision // //GC9203 // void Init_Oled(void) { RESB_H; nrf_delay_ms(20); RESB_L; nrf_delay_ms(20); RESB_H; nrf_delay_ms(120); Write_Command(0xff); Write_Data(0x5a); Write_Data(0xa5); Write_Command(0xf6); Write_Data(0x01); Write_Data(0x12); Write_Command(0xef); Write_Data(0x14); Write_Data(0x52); Write_Command(0xa5); Write_Data(0x07); Write_Data(0x80); Write_Command(0x02); Write_Data(0x01); Write_Data(0x00); Write_Command(0x03); Write_Data(0x10); Write_Data(0x38); Write_Command(0xf6); Write_Data(0x01); Write_Data(0x12); Write_Command(0x11); Write_Data(0x10); Write_Data(0x00); Write_Command(0xeb); Write_Data(0x16); Write_Data(0x0a); Write_Command(0xec); Write_Data(0x16); Write_Data(0x0a); Write_Command(0x50); Write_Data(0xf9); Write_Data(0x80); Write_Command(0x51); Write_Data(0x13); Write_Data(0x06); Write_Command(0x52); Write_Data(0x0e); Write_Data(0x09); Write_Command(0x53); Write_Data(0x33); Write_Data(0x09); Write_Command(0x54); Write_Data(0x4e); Write_Data(0x24); Write_Command(0x55); Write_Data(0x1b); Write_Data(0x1c); Write_Command(0x56); Write_Data(0x37); Write_Data(0x36); Write_Command(0x57); Write_Data(0xf5); Write_Data(0x80); Write_Command(0x58); Write_Data(0x13); Write_Data(0x06); Write_Command(0x59); Write_Data(0x0e); Write_Data(0x13); Write_Command(0x5a); Write_Data(0x3f); Write_Data(0x09); Write_Command(0x5b); Write_Data(0x52); Write_Data(0x24); Write_Command(0x5c); Write_Data(0x0f); Write_Data(0x0d); Write_Command(0x5d); Write_Data(0x37); Write_Data(0x36); Write_Command(0x07); Write_Data(0x10); Write_Data(0x13); Write_Command(0x01); Write_Data(0x01); Write_Data(0x1c); Write_Command(0xfe); } void EnterSLP(void) { ///////////////////////////NEW Write_Command(0xff); Write_Data(0x5a); Write_Data(0xa5); Write_Command(0x07); Write_Data(0x00); Write_Data(0x00); nrf_delay_ms(120);//120 Write_Command(0x11); Write_Data(0x00); Write_Data(0x00); nrf_delay_ms(250);//850 Write_Command(0x10); Write_Data(0x00); Write_Data(0x01); Write_Command(0xa5); Write_Data(0xff); Write_Data(0xff); Write_Command(0xe8); Write_Data(0x0f); Write_Data(0x0f); Write_Command(0xed); Write_Data(0x37); Write_Data(0x0f); Write_Command(0xe6); Write_Data(0x00); Write_Data(0xc2); } void address(void) { Write_Command(0x37); Write_Data(0x18); Write_Command(0x36); Write_Data(0x97); Write_Command(0x39); Write_Data(0x00); Write_Command(0x38); Write_Data(0xDB); Write_Command(0x22); } void ExitSLP(void) { Init_Oled(); }