/********************************************************* CHARACTER STRINGS *********************** You can also use these to send a line of text you would like to display************************************************** *************************************************/char const text1[] = ("Testing OLED Display")char const text2[] = ("NewHaven Display L 2")char const text3[] = (" Line 3 Test ")char const text4[] = (" Line 4 ")

WriteDataInit();//WriteDataInit() must only be executed once before starting to write data//if WriteDataInit() is executed between writes, the display will recognize the two bits as data bits and not RS/RW bits. for(j=0; j<20; j++){WriteData(i++);delay(10);}

C_S = 1;//Pulling C_S High means write data is completed//if next instruction to the display is data, must use WriteDataInit() first//if write command is executed without pulling C_S high, it will recognize the following instruction on the bus as data regardlessWriteCommand(0xC0);//Line 2WriteDataInit();for(j=0; j<20; j++){WriteData(i++);delay(10);}C_S = 1;WriteCommand(0x94);//Line 3