Skip to content

'TFT_BL' was not declared in this scope #8

@omar97hassan

Description

@omar97hassan

C:\Users\omar.hassan\Downloads\framework32-main\framework32\framework32.ino: In function 'void setup()':
C:\Users\omar.hassan\Downloads\framework32-main\framework32\framework32.ino:163:7: error: 'TFT_BL' was not declared in this scope
if (TFT_BL > 0) { // TFT_BL has been set in the TFT_eSPI library in the User Setup file TTGO_T_Display.h
^
C:\Users\omar.hassan\Downloads\framework32-main\framework32\framework32.ino:187:88: error: no matching function for call to 'ArduinoJson6200_F1::MemberProxy<ArduinoJson6200_F1::JsonDocument&, const char*>::as()'
const char* tz = configDoc.containsKey("timezone") ? configDoc["timezone"].as<char*>() : "GMT0";
^
In file included from c:\Users\omar.hassan\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Array/ElementProxy.hpp:7:0,
from c:\Users\omar.hassan\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Array/JsonArray.hpp:7,
from c:\Users\omar.hassan\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:24,
from c:\Users\omar.hassan\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,
from C:\Users\omar.hassan\Downloads\framework32-main\framework32\framework32.ino:12:
c:\Users\omar.hassan\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBase.hpp:53:3: note: candidate: template typename ArduinoJson6200_F1::enable_if<(((! ArduinoJson6200_F1::is_same<T, char*>::value) && (! ArduinoJson6200_F1::is_same<T, char>::value)) && (! ArduinoJson6200_F1::ConverterNeedsWriteableRef::value)), T>::type ArduinoJson6200_F1::VariantRefBase::as() const [with T = T; TDerived = ArduinoJson6200_F1::MemberProxy<ArduinoJson6200_F1::JsonDocument&, const char*>]
as() const {
^
c:\Users\omar.hassan\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBase.hpp:53:3: note: template argument deduction/substitution failed:
c:\Users\omar.hassan\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBase.hpp: In substitution of 'template typename ArduinoJson6200_F1::enable_if<(((! ArduinoJson6200_F1::is_same<T, char*>::value) && (! ArduinoJson6200_F1::is_same<T, char>::value)) && (! ArduinoJson6200_F1::ConverterNeedsWriteableRef::value)), T>::type ArduinoJson6200_F1::VariantRefBase::as() const [with T = char*]':
C:\Users\omar.hassan\Downloads\framework32-main\framework32\framework32.ino:187:88: required from here
c:\Users\omar.hassan\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBase.hpp:53:3: error: no type named 'type' in 'struct ArduinoJson6200_F1::enable_if<false, char*>'
c:\Users\omar.hassan\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBase.hpp:61:3: note: candidate: template typename ArduinoJson6200_F1::enable_if<ArduinoJson6200_F1::ConverterNeedsWriteableRef::value, T>::type ArduinoJson6200_F1::VariantRefBase::as() const [with T = T; TDerived = ArduinoJson6200_F1::MemberProxy<ArduinoJson6200_F1::JsonDocument&, const char*>]
as() const {
^
c:\Users\omar.hassan\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBase.hpp:61:3: note: template argument deduction/substitution failed:
c:\Users\omar.hassan\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBase.hpp: In substitution of 'template typename ArduinoJson6200_F1::enable_if<ArduinoJson6200_F1::ConverterNeedsWriteableRef::value, T>::type ArduinoJson6200_F1::VariantRefBase::as() const [with T = char*]':
C:\Users\omar.hassan\Downloads\framework32-main\framework32\framework32.ino:187:88: required from here
c:\Users\omar.hassan\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBase.hpp:61:3: error: no type named 'type' in 'struct ArduinoJson6200_F1::enable_if<false, char*>'
C:\Users\omar.hassan\Downloads\framework32-main\framework32\framework32.ino:188:91: error: no matching function for call to 'ArduinoJson6200_F1::MemberProxy<ArduinoJson6200_F1::JsonDocument&, const char*>::as()'
clockFormat = configDoc.containsKey("clockFormat") ? configDoc["clockFormat"].as<char*>() : "%H:%M";
^
In file included from c:\Users\omar.hassan\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Array/ElementProxy.hpp:7:0,
from c:\Users\omar.hassan\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Array/JsonArray.hpp:7,
from c:\Users\omar.hassan\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:24,
from c:\Users\omar.hassan\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,
from C:\Users\omar.hassan\Downloads\framework32-main\framework32\framework32.ino:12:
c:\Users\omar.hassan\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBase.hpp:53:3: note: candidate: template typename ArduinoJson6200_F1::enable_if<(((! ArduinoJson6200_F1::is_same<T, char*>::value) && (! ArduinoJson6200_F1::is_same<T, char>::value)) && (! ArduinoJson6200_F1::ConverterNeedsWriteableRef::value)), T>::type ArduinoJson6200_F1::VariantRefBase::as() const [with T = T; TDerived = ArduinoJson6200_F1::MemberProxy<ArduinoJson6200_F1::JsonDocument&, const char*>]
as() const {
^
c:\Users\omar.hassan\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBase.hpp:53:3: note: template argument deduction/substitution failed:
c:\Users\omar.hassan\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBase.hpp: In substitution of 'template typename ArduinoJson6200_F1::enable_if<(((! ArduinoJson6200_F1::is_same<T, char*>::value) && (! ArduinoJson6200_F1::is_same<T, char>::value)) && (! ArduinoJson6200_F1::ConverterNeedsWriteableRef::value)), T>::type ArduinoJson6200_F1::VariantRefBase::as() const [with T = char*]':
C:\Users\omar.hassan\Downloads\framework32-main\framework32\framework32.ino:188:91: required from here
c:\Users\omar.hassan\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBase.hpp:53:3: error: no type named 'type' in 'struct ArduinoJson6200_F1::enable_if<false, char*>'
c:\Users\omar.hassan\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBase.hpp:61:3: note: candidate: template typename ArduinoJson6200_F1::enable_if<ArduinoJson6200_F1::ConverterNeedsWriteableRef::value, T>::type ArduinoJson6200_F1::VariantRefBase::as() const [with T = T; TDerived = ArduinoJson6200_F1::MemberProxy<ArduinoJson6200_F1::JsonDocument&, const char*>]
as() const {
^
c:\Users\omar.hassan\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBase.hpp:61:3: note: template argument deduction/substitution failed:
c:\Users\omar.hassan\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBase.hpp: In substitution of 'template typename ArduinoJson6200_F1::enable_if<ArduinoJson6200_F1::ConverterNeedsWriteableRef::value, T>::type ArduinoJson6200_F1::VariantRefBase::as() const [with T = char*]':
C:\Users\omar.hassan\Downloads\framework32-main\framework32\framework32.ino:188:91: required from here
c:\Users\omar.hassan\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBase.hpp:61:3: error: no type named 'type' in 'struct ArduinoJson6200_F1::enable_if<false, char*>'
Multiple libraries were found for "TFT_eSPI.h"
Used: C:\Users\omar.hassan\Documents\Arduino\libraries\TFT_eSPI
Not used: C:\Users\omar.hassan\Documents\Arduino\libraries\TFT_eSPI_ES32Lab
exit status 1

Compilation error: 'TFT_BL' was not declared in this scope

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions