hello need help with coding for 2.8" TFT touch srceen
i have 2.8" tft touch srceen , have of coding done trying 1 thing. want start set of if/else statements when push button. here part of coding working with.
touchscreenbutton buttons[] = {
touchscreenbutton("start test",tsc.createcolor(255, 255, 255), tsc.createcolor(0, 0, 0), 30, tsc.getscreenheight() - 70, 2, 10),
touchscreenbutton("endofform")
};
touchscreenform *curform = &form1;
i want start
if(val1 == high)
{
digitalwrite(led1, high);
digitalwrite(led2, low);
delay(2000);
}
else
{
digitalwrite(led2, high);
digitalwrite(led1, low);
delay(2000);
}
touchscreenbutton buttons[] = {
touchscreenbutton("start test",tsc.createcolor(255, 255, 255), tsc.createcolor(0, 0, 0), 30, tsc.getscreenheight() - 70, 2, 10),
touchscreenbutton("endofform")
};
touchscreenform *curform = &form1;
i want start
if(val1 == high)
{
digitalwrite(led1, high);
digitalwrite(led2, low);
delay(2000);
}
else
{
digitalwrite(led2, high);
digitalwrite(led1, low);
delay(2000);
}
hi,
first of all, there no question in post.
do have questions, or see how getting along building code ?
second, code supposed put in code tags.
you can clicking # button above edit field, , paste code.
that make text better legible , prevents unwanted formatting of text you're pasting.
you can use multiple if...else statements in code.
you can consider using switch...case, 1 much.
first of all, there no question in post.
do have questions, or see how getting along building code ?
second, code supposed put in code tags.
you can clicking # button above edit field, , paste code.
that make text better legible , prevents unwanted formatting of text you're pasting.
you can use multiple if...else statements in code.
you can consider using switch...case, 1 much.
Arduino Forum > Using Arduino > Displays > hello need help with coding for 2.8" TFT touch srceen
arduino
Comments
Post a Comment