pkourany / adafruit_mfgfx_library Goto Github PK
View Code? Open in Web Editor NEWMultifont version of Adafruit_GFX library with Sharp Memory Display drivers and demo
Multifont version of Adafruit_GFX library with Sharp Memory Display drivers and demo
So, this looks like a nice tool. Trying to include it in a sketch for driving an LED matrix. On my initial effort, the installation complains of a lack of "application.h"
Really not sure how I am supposed to use this. Any clues?
Here are my includes:
I tried using this with the Neo Pixeks and neo matrix libraries, Its giving me errors about syncing with the other two libraries.
Hi
The first character printed, repeats endlessly.
It is too big ?
Some variable does not count so much?
Not Compile.
I copied on the scetch:
Adafruit_mfGFX.cpp
Adafruit_mfGFX.h
fonts.cpp
fonts.h
Removed //#include "application.h"
Added #include <stdint.h>
#include <MCUFRIEND_kbv.h>
#define LCD_CS A3 // Chip Select goes to Analog 3
#define LCD_CD A2 // Command/Data goes to Analog 2
#define LCD_WR A1 // LCD Write goes to Analog 1
#define LCD_RD A0 // LCD Read goes to Analog 0
#define LCD_RESET A4 // Can alternately just connect to Arduino's reset pin
#define BLACK 0x0000
#define BLUE 0x001F
#define RED 0xF800
#define GREEN 0x07E0
#define CYAN 0x07FF
#define MAGENTA 0xF81F
#define YELLOW 0xFFE0
#define WHITE 0xFFFF
MCUFRIEND_kbv tft; // Shield has hard-wired pins
void setup() {
tft.reset();
uint16_t identifier = tft.readID();
tft.begin(identifier);
}
void loop() {}
Arduino:1.8.1 (Windows 7), Scheda:"Arduino/Genuino Zero (Native USB Port)"
In file included from sketch\Adafruit_mfGFX.cpp:34:0:
Adafruit_mfGFX.h:11: error: expected class-name before '{' token
class Adafruit_GFX : public Print {
^
Adafruit_mfGFX.h:29: error: 'boolean' has not been declared
invertDisplay(boolean i), ^
Adafruit_mfGFX.h:56: error: 'boolean' has not been declared
setTextWrap(boolean w), ^
Adafruit_mfGFX.h:60: error: 'size_t' does not name a type
virtual size_t write(uint8_t);
^
Adafruit_mfGFX.h:87: error: 'boolean' does not name a type
boolean
^
sketch\Adafruit_mfGFX.cpp: In constructor 'Adafruit_GFX::Adafruit_GFX(int16_t, int16_t)':
Adafruit_mfGFX.cpp:50: error: 'wrap' was not declared in this scope
wrap = true;
^
sketch\Adafruit_mfGFX.cpp: In member function 'virtual void Adafruit_GFX::drawLine(int16_t, int16_t, int16_t, int16_t, uint16_t)':
Adafruit_mfGFX.cpp:212: error: 'abs' was not declared in this scope
int16_t steep = abs(y1 - y0) > abs(x1 - x0);
^
sketch\Adafruit_mfGFX.cpp: At global scope:
Adafruit_mfGFX.cpp:412: error: 'size_t' does not name a type
size_t Adafruit_GFX::write(uint8_t c) {
^
Adafruit_mfGFX.cpp:507: error: variable or field 'setTextWrap' declared void
void Adafruit_GFX::setTextWrap(boolean w) {
^
Adafruit_mfGFX.cpp:507: error: 'boolean' was not declared in this scope
Adafruit_mfGFX.cpp:540: error: variable or field 'invertDisplay' declared void
void Adafruit_GFX::invertDisplay(boolean i) {
^
Adafruit_mfGFX.cpp:540: error: 'boolean' was not declared in this scope
exit status 1
expected class-name before '{' tokenQuesto report potrebbe essere più ricco di informazioni abilitando l'opzione
"Mostra un output dettagliato durante la compilazione"
in "File -> Impostazioni"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.