Hola intento dibujar en una tft para hacer un menú pero me da errores, utilizo la librería Adafruit GFX para los gráficos y Adafruit ILI9341 para la pantalla.
el sketch:
#include "SPI.h"
#include "Adafruit_GFX.h"
#include "Adafruit_ILI9341.h"
#include <Fonts/FreeSerif9pt7b.h>
#define TFT_DC 9
#define TFT_CS 10
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
// Color definitions
#define BLACK 0x0000
#define BLUE 0x001F
#define RED 0xF800
#define GREEN 0x07E0
#define CYAN 0x07FF
#define MAGENTA 0xF81F
#define YELLOW 0xFFE0
#define WHITE 0xFFFF
void setup() {
tft.begin();
tft.setFont(&FreeSerif9pt7b);
tft.fillScreen(ILI9341_BLACK);
}
void loop() {
void drawPixel(uint16_t x, uint16_t y, uint16_t RED);
}
El error:
/home/hiddenotebook/Arduino/Proyectos/ArduBonsay3/ArduBonsay3.ino: In function 'void loop()':
ArduBonsay3:13: error: expected ',' or '...' before numeric constant
#define RED 0xF800
^
/home/hiddenotebook/Arduino/Proyectos/ArduBonsay3/ArduBonsay3.ino:28:53: note: in expansion of macro 'RED'
void drawPixel(uint16_t x, uint16_t y, uint16_t RED);
^
exit status 1
expected ',' or '...' before numeric constant
según la librería GFX es simple pero no soy capaz


