Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Adafruit_ImageReader.h"
- #include "Adafruit_GFX.h"
- #include <SPI.h>
- #include <SD.h>
- #include "Adafruit_ILI9341.h"// Hardware-specific library
- #include <MCUFRIEND_kbv.h>
- MCUFRIEND_kbv tft;
- #define YP A3 // must be an analog pin, use "An" notation!
- #define XM A2 // must be an analog pin, use "An" notation!
- #define YM 9 // can be a digital pin
- #define XP 8 // can be a digital pin
- #include <Fonts\GOTHICBI30pt7b.h>
- #include <Fonts\GOTHICBI10pt7b.h>
- #define BLACK 0x0000
- #define NAVY 0x000F
- #define DARKGREEN 0x03E0
- #define DARKCYAN 0x03EF
- #define MAROON 0x7800
- #define PURPLE 0x780F
- #define OLIVE 0x7BE0
- #define LIGHTGREY 0xC618
- #define DARKGREY 0x7BEF
- #define BLUE 0x001F
- #define GREEN 0x07E0
- #define CYAN 0x07FF
- #define RED 0xF800
- #define MAGENTA 0xF81F
- #define YELLOW 0xFFE0
- #define WHITE 0xFFFF
- #define ORANGE 0xFD20
- #define GREENYELLOW 0xAFE5
- #define PINK 0xF81F
- Adafruit_ImageReader reader;
- Adafruit_Image img;
- void setup() {
- // put your setup code here, to run once:
- Serial.begin(9600);
- tft.reset();
- tft.begin();
- ImageReturnCode stat;
- Adafruit_ImageReader reader;
- Adafruit_Image img;
- tft.setRotation(0);
- tft.fillScreen(BLACK);
- tft.setFont(&GOTHICBI30pt7b);
- tft.setTextSize(1);
- tft.setTextColor(WHITE);
- tft.setCursor(5, 10);
- tft.setFont(&GOTHICBI10pt7b);
- tft.print("_______________________");
- tft.setCursor(49, 166);
- tft.setFont(&GOTHICBI30pt7b);
- tft.print("192");
- tft.setCursor(150, 166);
- tft.setFont(&GOTHICBI10pt7b);
- tft.print("km/h");
- stat = reader.loadBMP("/tt_logo1.bmp", img);
- img.draw(tft, 21, 180);
- tft.setCursor(5, 300);
- tft.print("_______________________");
- }
- void loop(void) {
- // put your main code here, to run repeatedly:
- }
- //*
- C:\Users\ST\Documents\Arduino\192font\192font.ino: In function 'void setup()':
- 192font:64:36: error: no matching function for call to 'Adafruit_Image::draw(MCUFRIEND_kbv&, int, int)'
- Adafruit_Image::draw(tft, 21, 180);
- ^
- In file included from C:\Users\ST\Documents\Arduino\192font\192font.ino:1:0:
- C:\Users\ST\Documents\Arduino\libraries\Adafruit_ImageReader-master/Adafruit_ImageReader.h:45:20: note: candidate: void Adafruit_Image::draw(Adafruit_SPITFT&, int16_t, int16_t)
- void draw(Adafruit_SPITFT &tft, int16_t x, int16_t y);
- ^
- C:\Users\ST\Documents\Arduino\libraries\Adafruit_ImageReader-master/Adafruit_ImageReader.h:45:20: note: no known conversion for argument 1 from 'MCUFRIEND_kbv' to 'Adafruit_SPITFT&'
- exit status 1
- no matching function for call to 'Adafruit_Image::draw(MCUFRIEND_kbv&, int, int)'
- *//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement