Hello, I use a uno with ili9341 I want drawPixel display on the screen , but there is an error message.
this is the error message .
Arduino : 1.6.3 (Windows 7), Carte : "Arduino Uno"
projet_lcd.ino: In function 'void loop()':
projet_lcd.ino:22:5: error: 'class Ucglib_ILI9341_18x240x320_SWSPI' has no member named 'SetColor'
projet_lcd.ino:23:7: error: 'class Ucglib_ILI9341_18x240x320_SWSPI' has no member named 'DrawPixel'
Erreur lors de la compilation.
Ce rapport contiendrait plus d'informations si l'option
"Montrer les informations de sortie pendant la compilation"
était activée dans Fichier > Préférences.
#include <SPI.h>
#include "Ucglib.h"
Ucglib_ILI9341_18x240x320_SWSPI ucg(/*sclk=*/ 7, /*data=*/ 6, /*cd=*/ 5 , /*cs=*/ 3, /*reset=*/ 4);
void setup(void)
{
delay(1000);
ucg.begin(UCG_FONT_MODE_TRANSPARENT);
//ucg.begin(UCG_FONT_MODE_SOLID);
ucg.clearScreen();
// rotation de 90°
ucg.setRotate90();
}
void loop(void)
{
ucg.SetColor( 0, 255, 255, 255);
ucg.DrawPixel( 50, 20);
}