Hi,
I am trying to write to a Adafruit TFT ST7735 with a Teensy 3.2. Using an Arduino Uno I have been successful but no luck with Teensy. Here is the code that runs ok on Arduino:
I am using Arduino version 1.6.5-r5 and uploaded Teensyduino.
Settings on compile/download:
Board: "Teensy 3.2/3.1"
USB Type: "Serial"
Port: 7
CPU Speed: 96mhz
Code compiles and uploads successfully and I get the start & done messages, but output on the LCD screen.
I have double checked the wiring - using pins 8-13 on Teensy.
Power to LCD is from Teensy Vin (5v) and Grd. (backlight on LCD is on)
Here is the last few lines of compiled output:
Multiple libraries were found for "ILI9341_t3.h"
Used: C:\Users\Allen\Music\Documents\Arduino\libraries\ILI9341_t3
Not used: C:\arduino-1.6.5-r5\hardware\teensy\avr\libraries\ILI9341_t3
Sketch uses 18,196 bytes (6%) of program storage space. Maximum is 262,144 bytes.
Global variables use 4,636 bytes (7%) of dynamic memory, leaving 60,900 bytes for local variables. Maximum is 65,536 bytes.
C:\arduino-1.6.5-r5/hardware/tools/teensy_post_compile -file=TFT_Display_FromNEt.cpp -path=C:\Users\Allen\AppData\Local\Temp\build7747845645281143961.tmp -tools=C:\arduino-1.6.5-r5/hardware/tools -board=TEENSY31 -reboot
Any help would be appreciated!
I am trying to write to a Adafruit TFT ST7735 with a Teensy 3.2. Using an Arduino Uno I have been successful but no luck with Teensy. Here is the code that runs ok on Arduino:
Code:
#include <Adafruit_GFX.h>
#include <Adafruit_ST7735.h>
#include <SPI.h>
#define TFT_CS 10
#define TFT_DC 9
#define TFT_RST 8
Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_RST);
#define GREEN 0x07E0
#define BLACK 0x0000
void setup()
{
Serial.begin(115200);
Serial.println("start");
tft.initR(INITR_BLACKTAB);
tft.fillScreen(GREEN);
tft.drawCircle(40, 80, 20, BLACK);
Serial.println("done");
}
void loop()
{
}
I am using Arduino version 1.6.5-r5 and uploaded Teensyduino.
Settings on compile/download:
Board: "Teensy 3.2/3.1"
USB Type: "Serial"
Port: 7
CPU Speed: 96mhz
Code compiles and uploads successfully and I get the start & done messages, but output on the LCD screen.
I have double checked the wiring - using pins 8-13 on Teensy.
Power to LCD is from Teensy Vin (5v) and Grd. (backlight on LCD is on)
Here is the last few lines of compiled output:
Multiple libraries were found for "ILI9341_t3.h"
Used: C:\Users\Allen\Music\Documents\Arduino\libraries\ILI9341_t3
Not used: C:\arduino-1.6.5-r5\hardware\teensy\avr\libraries\ILI9341_t3
Sketch uses 18,196 bytes (6%) of program storage space. Maximum is 262,144 bytes.
Global variables use 4,636 bytes (7%) of dynamic memory, leaving 60,900 bytes for local variables. Maximum is 65,536 bytes.
C:\arduino-1.6.5-r5/hardware/tools/teensy_post_compile -file=TFT_Display_FromNEt.cpp -path=C:\Users\Allen\AppData\Local\Temp\build7747845645281143961.tmp -tools=C:\arduino-1.6.5-r5/hardware/tools -board=TEENSY31 -reboot
Any help would be appreciated!