sumotoy / TFT_ST7735

A fast driver for ST7735 displays that works with Arduino's /All Teensy's/ESP8266/SPARK
68 stars 31 forks source link

Doesn't work in src folder of sketch.ino :-( #29

Open Meins321 opened 4 years ago

Meins321 commented 4 years ago

Hello everyone,

when i add the library in a sub folder i get compile errors from the fonts :-/ sketch\src\TFT\_fonts\arial10.c:43:7: error: unknown type name '_smCharType' const _smCharType image_data_arial10_0x20[1] ^~~~~~~~~~~ sketch\src\TFT\_fonts\arial10.c:49:7: error: unknown type name 'tImage' const tImage arial10_0x20 ^~~~~~ sketch\src\TFT\_fonts\arial10.c:55:7: error: unknown type name '_smCharType' const _smCharType image_data_arial10_0x21[4] ^~~~~~~~~~~ sketch\src\TFT\_fonts\arial10.c:61:7: error: unknown type name 'tImage' const tImage arial10_0x21 ^~~~~~ sketch\src\TFT\_fonts\arial10.c:67:7: error: unknown type name '_smCharType' const _smCharType image_data_arial10_0x22[5] ^~~~~~~~~~~

Sketchfolder contains:

test.ino

src\TFT\TFT_ST7735.h the "TFT" folder contains the TFT library entirely so that i can share the project with other who don't have th library

test.ino

include

include "src/TFT/TFT_ST7735.h"

and then just use the "basicSetup.ino" text it wont compile

Meins321 commented 3 years ago

@sumotoy can you help with this? would be nice to have the library more portable to subfolder of a sketch to store/share programms with others