Example Code for graphics

Discussion about software developed by Freematics, including Freematics Builder and Freematics Emulator GUI
Post Reply
Brian Cotton
Posts: 1
Joined: Wed Sep 03, 2014 9:46 pm

Example Code for graphics

Post by Brian Cotton »

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:

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
protomor
Posts: 99
Joined: Wed Oct 14, 2015 9:17 am

Re: Example Code for graphics

Post by protomor »

year old bump
Post Reply