Example Code for graphics
Posted: Wed Sep 03, 2014 9:58 pm
Hello people. I am new to arduino and would like to start with thanks to stanley for the hard work he has put it to make it simple for someone of my experience level to get up and running with little effort.
So on to my query, i have managed so far to write text and numbers to the LCD screen (i have logger kit #2) of various sizes and colours but i would like to draw some graphics like circles and rectangles (hollow and filled in). The read me for the MultiLCD library states that i can use the UTFT API commands to achieve this however i have tried using the following:
but the arduino IDE gives me the following error: "error: 'class LCD_ILI9325D' has no member named 'fillRect'"
I assume i am doing something very basic incorrectly and would be very appreciative if someone could either point me in the right direction or provide a sample example code with some basic shapes drawn on the LCD
Thanks in advance
So on to my query, i have managed so far to write text and numbers to the LCD screen (i have logger kit #2) of various sizes and colours but i would like to draw some graphics like circles and rectangles (hollow and filled in). The read me for the MultiLCD library states that i can use the UTFT API commands to achieve this however i have tried using the following:
Code: Select all
lcd.fillRect(x1,y1,x2,y2);
but the arduino IDE gives me the following error: "error: 'class LCD_ILI9325D' has no member named 'fillRect'"
I assume i am doing something very basic incorrectly and would be very appreciative if someone could either point me in the right direction or provide a sample example code with some basic shapes drawn on the LCD
Thanks in advance