4
« on: May 16, 2019, 06:38:26 PM »
Hello EVE programmers. I have a matrix orbital 29a tft and the arduino shield. I can draw a big button 208x86 in the middle of the screen which is 320x102. Now I'd like to add a couple of 1 pixel wide horz lines at the top of the button like from 58,10 to 250,10 and 2 lines below that. Here's what Ive got
//------------------------------------------
void MakeScreen_Kln(void)
{
Send_CMD(CMD_DLSTART);
Send_CMD(CLEAR_COLOR_RGB(0,0,0));
Send_CMD(CLEAR(1,1,1));
Send_CMD(COLOR_RGB(60,60,60)); //color gray
Cmd_FGcolor(0xffffff); //white
Send_CMD(CMD_SETROTATE); //works
Send_CMD(1); //inverted landscape
//---------x y w h fnt opt
Cmd_Button(56, 8, 208, 86, 28, 0xff, "208x86"); //gets here!
// Send_CMD(LINE_WIDTH(1)); //these 7 lines dont work
Cmd_FGcolor(0x000000); //black
Send_CMD(BEGIN(LINES));
Send_CMD(VERTEX2F(58,10)); //thin horz line
Send_CMD(VERTEX2F(250,10));
Send_CMD(VERTEX2F(58,12)); //thin horz line
Send_CMD(VERTEX2F(250,12));
Send_CMD(DISPLAY());
Send_CMD(CMD_SWAP);
UpdateFIFO(); // Trigger the CoProcessor to start processing the FIFO
}
I guess you see I am using the matrix orbital arduino example, please forgive me. Any idea how to get the lines to draw at the top of the button? Thanks.