I have a 3.5 inch tft lcd screen for arduino uno. I am trying to make a function that draws a curved line that resembles this white image. black curved line I am struggling and cannot seem to make it work even though it should be really simple. Here is my current code :
void drawCurveLine(){
int startx1 = 0;
int startx2 = startx1 +5;
int starty1 = 110;
int starty3 = 5;
int starty4 = 0;
int count =0;
int count2 = 5;
while(count<14){
tft.drawLine(startx1,starty1,startx2,starty1,WHITE);
tft.drawLine(startx1,starty1-1,startx2,starty1-1,WHITE);
tft.drawLine(startx1,starty1-2,startx2,starty1-2,WHITE);
tft.drawLine(startx1,starty1-3,startx2,starty1-3,WHITE);
tft.drawLine(startx1,starty1-4,startx2,starty1-4,WHITE);
count++;
starty1--;
startx1 =
startx2++;
}
}
I have tried rewriting the draw function numerous times, but the output still isn’t work.
2