3.2 inch tft lcd TFT_HX8357 load bitmap from SD error [RESOLVED]
hello there!
i have 3.2 inch tft lcd , use tft_hx8357 library since 1 got working display.
now want load bmp file included sd card slot.
there example included library cant compile
all other examples working fine exept one.
when try compile error
this says: draw_sdcard_bitmap:16: error: 'file' not declared in scope
now have been tinkering way long , still got no solution.
so asking :/
the sketch included 2 files included library (and need that)
and link library https://github.com/bodmer/tft_hx8357
i hope can me
i have 3.2 inch tft lcd , use tft_hx8357 library since 1 got working display.
now want load bmp file included sd card slot.
there example included library cant compile

all other examples working fine exept one.
when try compile error
this says: draw_sdcard_bitmap:16: error: 'file' not declared in scope
now have been tinkering way long , still got no solution.
so asking :/
the sketch included 2 files included library (and need that)
and link library https://github.com/bodmer/tft_hx8357
i hope can me
hi,
i've have downloaded new copy of github library , loaded in virgin copy of latest ide (1.8.0) , compiles fine. tested ide version 1.6.12 , ide 1.6.7 , ok. took copies of sketch provided in post (in case have been altered!) , compile fine too.
"file" variable "type" defined in stock sd library comes ide. looks have bad copy of sd library or perhaps using old ide has problems.
i suggest try loading new copy of arduino ide (i manually load can have multiple copies of ide test libraries with). make sure don't have rogue copy of sd library in "sketches" library folder, ide uses it's built in copy.
if fixes (or not) post findings.
i've have downloaded new copy of github library , loaded in virgin copy of latest ide (1.8.0) , compiles fine. tested ide version 1.6.12 , ide 1.6.7 , ok. took copies of sketch provided in post (in case have been altered!) , compile fine too.
"file" variable "type" defined in stock sd library comes ide. looks have bad copy of sd library or perhaps using old ide has problems.
i suggest try loading new copy of arduino ide (i manually load can have multiple copies of ide test libraries with). make sure don't have rogue copy of sd library in "sketches" library folder, ide uses it's built in copy.
if fixes (or not) post findings.
Arduino Forum > Using Arduino > Displays > 3.2 inch tft lcd TFT_HX8357 load bitmap from SD error [RESOLVED]
arduino
Comments
Post a Comment