heres the sketch
/*
Arduino LCD-2000-7775 TFT text example For UNO
This example demonstrates how to draw text on the
TFT with an Arduino. The Arduino reads the value
of an analog sensor attached to pin A0, and writes
the value to the LCD screen, updating every
quarter second.
This example code is in the public domain
Created 30 April 2014 by INHAOS
http://www.inhaos.com
*/
#include "Adafruit_GFX.h"
#include <LCD_2000_7775.h>
#define GREEN 0x07E0
// pin definition for the UNO
#define cs 11
#define wr 10
#define rs 12
//#define le 13
//#define D0 9
//#define D1 8
//#define D2 7
//#define D3 6
//#define D4 5
//#define D5 4
//#define D6 3
//#define D7 2
//LCD_2000_7775 TFTscreen(cs,wr,rs,le);
LCD_2000_7775 TFTscreen(cs,wr,rs);
// position of the line on screen
//int xPos = 0;
const byte green_square[] PROGMEM = {
B11111111,B11111111,
B11111111,B11111111,
B11111111,B11111111,
B11111111,B11111111,
B11111111,B11111111,
B11111111,B11111111,
B11111111,B11111111,
B11111111,B11111111,
B11111111,B11111111,
B11111111,B11111111,
B11111111,B11111111,
B11111111,B11111111,
B11111111,B11111111,
B11111111,B11111111,
B11111111,B11111111,
B11111111,B11111111,};
// const byte *bitmap[] = {green_square};
void setup(){
// initialize the serial port
//TFTscreen.setdatapin(D0,D1,D2,D3,D4,D5,D6,D7);
TFTscreen.begin();
// initialize the display
TFTscreen.begin();
// clear the screen with a pretty color
//TFTscreen.background(250,16,200);
}
void loop(){
TFTscreen.drawBitmap(70, 70, green_square, 0x07E0);
}
Arduino: 1.6.11 (Windows 7), TD: 1.30-beta3, Board: "Teensy 3.2 / 3.1, Serial, 96 MHz optimize speed (overclock), US English"
In file included from C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775_TEENSY2\src/LCD_2000_7775.h:14:0,
from C:\Users\duhjoker\Documents\Arduino\BITMAP\BITMAP.ino:19:
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775_TEENSY2\src/Sound.h:44:25: error: 'NUM_CHANNELS' was not declared in this scope
boolean trackIsPlaying[NUM_CHANNELS];
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775_TEENSY2\src/Sound.h:53:27: error: 'NUM_CHANNELS' was not declared in this scope
boolean patternIsPlaying[NUM_CHANNELS];
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775_TEENSY2\src/Sound.h:62:22: error: 'NUM_CHANNELS' was not declared in this scope
uint8_t outputPitch[NUM_CHANNELS];
^
C:\Users\duhjoker\Documents\Arduino\libraries\LCD_2000_7775_TEENSY2\src/Sound.h:63:22: error: 'NUM_CHANNELS' was not declared in this scope
int8_t outputVolume[NUM_CHANNELS];
^
BITMAP: In function 'void loop()':
BITMAP:80: error: no matching function for call to 'LCD_2000_7775::drawBitmap(int, int, const byte [32], int)'
TFTscreen.drawBitmap(70, 70, green_square, 0x07E0);
^
C:\Users\duhjoker\Documents\Arduino\BITMAP\BITMAP.ino:80:50: note: candidates are:
In file included from C:\Users\duhjoker\Documents\Arduino\BITMAP\BITMAP.ino:18:0:
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX/Adafruit_GFX.h:49:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap,
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX/Adafruit_GFX.h:49:5: note: candidate expects 6 arguments, 4 provided
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX/Adafruit_GFX.h:51:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, const uint8_t*, int16_t, int16_t, uint16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, const uint8_t *bitmap,
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX/Adafruit_GFX.h:51:5: note: candidate expects 7 arguments, 4 provided
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX/Adafruit_GFX.h:53:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, uint8_t*, int16_t, int16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, uint8_t *bitmap,
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX/Adafruit_GFX.h:53:5: note: candidate expects 6 arguments, 4 provided
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX/Adafruit_GFX.h:55:5: note: void Adafruit_GFX::drawBitmap(int16_t, int16_t, uint8_t*, int16_t, int16_t, uint16_t, uint16_t)
drawBitmap(int16_t x, int16_t y, uint8_t *bitmap,
^
C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\Adafruit_GFX/Adafruit_GFX.h:55:5: note: candidate expects 7 arguments, 4 provided
no matching function for call to 'LCD_2000_7775::drawBitmap(int, int, const byte [32], int)'
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
im still working on the sound stuff But maybe I forgot to add a definition or something to the source code?