Code Monkey home page Code Monkey logo

adafruit_mfgfx_library's People

Contributors

pkourany avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

adafruit_mfgfx_library's Issues

Usage Question LED Matrix

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:

include <Adafruit_GFX.h> // Core graphics library

include <RGBmatrixPanel.h> // Hardware-specific library

include<Adafruit_mfGFX.h>

NeoPixels + NeoMatrix

I tried using this with the Neo Pixeks and neo matrix libraries, Its giving me errors about syncing with the other two libraries.

Loop indefinitely

Hi

  1. The first character printed, repeats endlessly.
    It is too big ?
    Some variable does not count so much?

error

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 '{' token

Questo report potrebbe essere più ricco di informazioni abilitando l'opzione
"Mostra un output dettagliato durante la compilazione"
in "File -> Impostazioni"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.