#elif defined (ILI9486_1)
Command = 0x01; //SW RST
SglBeatWR_nPrm_8(Command,0 ,0);
delay(120);
Command = 0x11; // Sleep out, also SW reset
SglBeatWR_nPrm_8(Command, 0, 0);
delay(20);
Command = 0xF2; // ?????
CommandValue[0U] = 0x1C;
CommandValue[1U] = 0xA3;
CommandValue[2] = 0x32;
CommandValue[3] = 0x02;
CommandValue[4] = 0xb2;
CommandValue[5] = 0x12;
CommandValue[6] = 0xFF;
CommandValue[6] = 0x12;
CommandValue[8] = 0x00;
SglBeatWR_nPrm_8(Command, CommandValue, 9);
Command = 0xF1; // ?????
CommandValue[0] = 0x36;
CommandValue[1] = 0xA4;
SglBeatWR_nPrm_8(Command, CommandValue, 2);
Command = 0xF8; // ?????
CommandValue[0] = 0x21;
CommandValue[1] = 0x04;
SglBeatWR_nPrm_8(Command, CommandValue, 2);
Command = 0xF9; // ?????
CommandValue[0] = 0x00;
CommandValue[1] = 0x08;
SglBeatWR_nPrm_8(Command, CommandValue, 2);
Command = 0xC0; // Power Control 1
CommandValue[0U] = 0x0d;
CommandValue[1] = 0x0d;
SglBeatWR_nPrm_8(Command, CommandValue, 2);
Command = 0xC1; // Power Control 2
CommandValue[0U] = 0x43;
CommandValue[1] = 0x00;
SglBeatWR_nPrm_8(Command, CommandValue, 2);
Command = 0xC2; // Power Control 3
CommandValue[0U] = 0x00;
SglBeatWR_nPrm_8(Command, CommandValue, 1);
Command = 0xC5; // VCOM Control
CommandValue[0U] = 0x00;
CommandValue[1] = 0x48;
SglBeatWR_nPrm_8(Command, CommandValue, 2);
Command = 0xB6; // Display Function Control
CommandValue[0U] = 0x00;
CommandValue[1] = 0x22; // 0x42 = Rotate display 180 deg.
CommandValue[2] = 0x3B;
SglBeatWR_nPrm_8(Command, CommandValue, 3);
Command = 0xE0; // PGAMCTRL (Positive Gamma Control)
CommandValue[0U] = 0x0f;
CommandValue[1] = 0x24;
CommandValue[2] = 0x1c;
CommandValue[3] = 0x0a;
CommandValue[4] = 0x0f;
CommandValue[5] = 0x08;
CommandValue[6] = 0x43;
CommandValue[7] = 0x88;
CommandValue[8] = 0x32;
CommandValue[9] = 0x0f;
CommandValue[10] = 0x10;
CommandValue[11] = 0x06;
CommandValue[12] = 0x0f;
CommandValue[14] = 0x07;
CommandValue[15] = 0x00;
SglBeatWR_nPrm_8(Command, CommandValue, 16);
Command = 0xE1; // NGAMCTRL (Negative Gamma Control)
CommandValue[0U] = 0x0F;
CommandValue[1] = 0x38;
CommandValue[2] = 0x30;
CommandValue[3] = 0x09;
CommandValue[4] = 0x0f;
CommandValue[5] = 0x0f;
CommandValue[6] = 0x4e;
CommandValue[7] = 0x77;
CommandValue[8] = 0x3c;
CommandValue[9] = 0x07;
CommandValue[10] = 0x10;
CommandValue[11] = 0x05;
CommandValue[12] = 0x23;
CommandValue[13] = 0x1b;
CommandValue[14] = 0x00;
SglBeatWR_nPrm_8(Command, CommandValue, 15);
Command = 0x20; // Display Inversion OFF
CommandValue[0U] = 0x00;//C8
SglBeatWR_nPrm_8(Command, CommandValue, 1);
Command = 0x36; // Memory Access Control
CommandValue[0U] = 0x0A;
SglBeatWR_nPrm_8(Command, CommandValue, 1);
Command = 0x3A; // Interface Pixel Format
CommandValue[0U] = 0x55;
SglBeatWR_nPrm_8(Command, CommandValue, 1);
Command = 0x2A; // Column Addess Set
CommandValue[0U] = 0x00;
CommandValue[1] = 0x00;
CommandValue[2] = 0x01;
CommandValue[3] = 0xDF;
SglBeatWR_nPrm_8(Command, CommandValue, 4);
Command = 0x002B; // Page Address Set
CommandValue[0U] = 0x00;
CommandValue[1] = 0x00;
CommandValue[2] = 0x01;
CommandValue[3] = 0x3f;
SglBeatWR_nPrm_8(Command, CommandValue, 3);
delay(50);
Command = 0x0029; // Display ON
SglBeatWR_nPrm_8(Command, 0, 0);
Command = 0x002C; // Memory Write
SglBeatWR_nPrm_8(Command, 0, 0);
delay(120);
Serial.println("ILI9486 Initialized");