ElectrOrion
Member
Hello everyone, my name is Teo and I am writing to you from Italy.
I'm looking for an example that allows you to load a jpg file present on the 32Gb SD Card installed on the Teensy 4.1 slot, on a TFT FT812, without success.
I'm using a BridgeTek ME812A-WH50R (FT812) display and the GameDuino library.
This is my connections:
TEENSY 4.1 PIN -> MOSI 11 // MISO 12 // SCK 13 // CS 10 // PD 24
This is my code:
When I issue any command to write text or draw a line or gauge, everything works normally. When I try to use the Teensy card's SD card, however, the screen remains black. By the way, I'm not even sure that the SD card can be solved simply with the commands inserted in the code. Does anyone have experience with this?
Can anyone help me?
Thanks!
I'm looking for an example that allows you to load a jpg file present on the 32Gb SD Card installed on the Teensy 4.1 slot, on a TFT FT812, without success.
I'm using a BridgeTek ME812A-WH50R (FT812) display and the GameDuino library.
This is my connections:
TEENSY 4.1 PIN -> MOSI 11 // MISO 12 // SCK 13 // CS 10 // PD 24
This is my code:
C++:
#include <GDTeensy4X.h>
void setup()
{
GD.begin();
GD.SaveContext();
GD.BitmapHandle(15);
GD.cmd_loadimage(0, 0);
GD.load("pic.jpg");
GD.RestoreContext();
}
void loop()
{
GD.Clear();
GD.get_inputs();
GD.SaveContext();
GD.ColorA(100);
GD.Begin(BITMAPS);
GD.Vertex2ii(0, 0, 15);
GD.End();
GD.RestoreContext();
GD.ClearColorRGB(0x103000);
GD.Clear();
GD.cmd_text(GD.w / 2, GD.h / 2, 31, OPT_CENTER, "Hello world");
GD.swap();
}
When I issue any command to write text or draw a line or gauge, everything works normally. When I try to use the Teensy card's SD card, however, the screen remains black. By the way, I'm not even sure that the SD card can be solved simply with the commands inserted in the code. Does anyone have experience with this?
Can anyone help me?
Thanks!
Last edited: