Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
void init_display()
{
unsigned __int8 temp_buffer[20]; // [sp+0h] [bp-38h]@1
mem_clear(temp_buffer, 20u);
temp_buffer[0] = -2;
write_Command_Display((int)temp_buffer, 1u);
temp_buffer[0] = -17;
write_Command_Display((int)temp_buffer, 1u);
temp_buffer[0] = -21;
temp_buffer[1] = 20;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = -124;
temp_buffer[1] = 64;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = -123;
temp_buffer[1] = -15;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = -122;
temp_buffer[1] = -104;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = -121;
temp_buffer[1] = 40;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = -120;
temp_buffer[1] = 10;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = -118;
temp_buffer[1] = 0;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = -117;
temp_buffer[1] = -128;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = -116;
temp_buffer[1] = 1;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = -115;
temp_buffer[1] = 0;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = -114;
temp_buffer[1] = -33;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = -113;
temp_buffer[1] = 82;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = -74;
temp_buffer[1] = 32;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = 54;
temp_buffer[1] = 72;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = 58;
temp_buffer[1] = 5;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = -112;
temp_buffer[1] = 8;
temp_buffer[2] = 8;
temp_buffer[3] = 8;
temp_buffer[4] = 8;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 4);
temp_buffer[0] = -67;
temp_buffer[1] = 6;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = -90;
temp_buffer[1] = 116;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = -65;
temp_buffer[1] = 28;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = -89;
temp_buffer[1] = 69;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = -87;
temp_buffer[1] = -69;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = -72;
temp_buffer[1] = 99;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = -68;
temp_buffer[1] = 0;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = -1;
temp_buffer[1] = 96;
temp_buffer[2] = 1;
temp_buffer[3] = 4;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 3);
temp_buffer[0] = -61;
temp_buffer[1] = 23;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = -60;
temp_buffer[1] = 23;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = -55;
temp_buffer[1] = 37;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = -66;
temp_buffer[1] = 17;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = -31;
temp_buffer[1] = 16;
temp_buffer[2] = 14;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 2);
temp_buffer[0] = -33;
temp_buffer[1] = 33;
temp_buffer[2] = 16;
temp_buffer[3] = 2;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 3);
temp_buffer[0] = -16;
temp_buffer[4] = 8;
temp_buffer[5] = 38;
temp_buffer[1] = 69;
temp_buffer[2] = 9;
temp_buffer[6] = 42;
temp_buffer[3] = 8;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 6);
temp_buffer[0] = -15;
temp_buffer[1] = 67;
temp_buffer[2] = 112;
temp_buffer[3] = 114;
temp_buffer[4] = 54;
temp_buffer[5] = 55;
temp_buffer[6] = 111;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 6);
temp_buffer[0] = -14;
temp_buffer[4] = 8;
temp_buffer[5] = 38;
temp_buffer[1] = 69;
temp_buffer[2] = 9;
temp_buffer[6] = 42;
temp_buffer[3] = 8;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 6);
temp_buffer[0] = -13;
temp_buffer[1] = 67;
temp_buffer[2] = 112;
temp_buffer[3] = 114;
temp_buffer[4] = 54;
temp_buffer[5] = 55;
temp_buffer[6] = 111;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 6);
temp_buffer[0] = -19;
temp_buffer[1] = 27;
temp_buffer[2] = 11;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 2);
temp_buffer[0] = -84;
temp_buffer[1] = 71;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = -82;
temp_buffer[1] = 119;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = -53;
temp_buffer[1] = 2;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = -51;
temp_buffer[1] = 99;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = 112;
temp_buffer[1] = 7;
temp_buffer[2] = 9;
temp_buffer[3] = 4;
temp_buffer[4] = 14;
temp_buffer[5] = 15;
temp_buffer[6] = 9;
temp_buffer[7] = 7;
temp_buffer[8] = 8;
temp_buffer[9] = 3;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 9);
temp_buffer[0] = -24;
temp_buffer[1] = 52;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = 98;
temp_buffer[1] = 24;
temp_buffer[2] = 13;
temp_buffer[4] = -19;
temp_buffer[8] = 15;
temp_buffer[9] = 113;
temp_buffer[5] = 112;
temp_buffer[10] = -17;
temp_buffer[6] = 112;
temp_buffer[3] = 113;
temp_buffer[7] = 24;
temp_buffer[11] = 112;
temp_buffer[12] = 112;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 12);
temp_buffer[0] = 99;
temp_buffer[1] = 24;
temp_buffer[2] = 17;
temp_buffer[8] = 19;
temp_buffer[4] = -15;
temp_buffer[9] = 113;
temp_buffer[5] = 112;
temp_buffer[10] = -13;
temp_buffer[6] = 112;
temp_buffer[3] = 113;
temp_buffer[7] = 24;
temp_buffer[11] = 112;
temp_buffer[12] = 112;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 12);
temp_buffer[0] = 100;
temp_buffer[1] = 40;
temp_buffer[2] = 41;
temp_buffer[4] = 1;
temp_buffer[5] = -15;
temp_buffer[6] = 0;
temp_buffer[7] = 7;
temp_buffer[3] = -15;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 7);
temp_buffer[0] = 102;
temp_buffer[1] = 60;
temp_buffer[2] = 0;
temp_buffer[3] = -51;
temp_buffer[4] = 103;
temp_buffer[5] = 69;
temp_buffer[8] = 0;
temp_buffer[6] = 69;
temp_buffer[9] = 0;
temp_buffer[7] = 16;
temp_buffer[10] = 0;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 10);
temp_buffer[0] = 103;
temp_buffer[1] = 0;
temp_buffer[2] = 60;
temp_buffer[4] = 0;
temp_buffer[5] = 0;
temp_buffer[6] = 1;
temp_buffer[7] = 84;
temp_buffer[8] = 16;
temp_buffer[9] = 50;
temp_buffer[10] = -104;
temp_buffer[3] = 0;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 10);
temp_buffer[0] = 116;
temp_buffer[1] = 16;
temp_buffer[2] = -128;
temp_buffer[3] = -128;
temp_buffer[4] = 0;
temp_buffer[5] = 0;
temp_buffer[6] = 78;
temp_buffer[7] = 0;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 7);
temp_buffer[0] = 53;
temp_buffer[1] = 0;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 1);
temp_buffer[0] = 33;
write_Command_Display((int)temp_buffer, 1u);
delay_0(120);
temp_buffer[0] = 17;
write_Command_Display((int)temp_buffer, 1u);
delay_0(120);
temp_buffer[0] = 41;
write_Command_Display((int)temp_buffer, 1u);
delay_0(120);
temp_buffer[0] = 42;
temp_buffer[1] = 0;
temp_buffer[2] = 0;
temp_buffer[4] = -17;
temp_buffer[3] = 0;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 4);
temp_buffer[0] = 43;
temp_buffer[1] = 0;
temp_buffer[2] = 0;
temp_buffer[4] = -17;
temp_buffer[3] = 0;
write_Command_Display((int)temp_buffer, 1u);
write_data_display((int)&temp_buffer[1], 4);
temp_buffer[0] = 0x2C;
write_Command_Display((int)temp_buffer, 1u);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment