You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been using my cardputer 1.1 by compiling with VSCode without any issue and 0 error. But, recently I have bought the embed cc1101 and tried to compile in VScode code but got fews warnings and error. So, I cant use the source code anymore for my tembed. can anyone help me please, because as a learner I have tried everything but failed to compile . Thanks in advance.
Compiling .pio\build\lilygo-t-embed-cc1101\src\core\menu_items\BleMenu.cpp.o
src/core/led_control.cpp:8: warning: "FASTLED_RMT_MAX_CHANNELS" redefined
#define FASTLED_RMT_MAX_CHANNELS 1 // Maximum number of RMT channels
In file included from .pio/libdeps/lilygo-t-embed-cc1101/FastLED/src/platforms/esp/32/clockless_rmt_esp32.h:32,
from .pio/libdeps/lilygo-t-embed-cc1101/FastLED/src/platforms/esp/32/fastled_esp32.h:12,
from .pio/libdeps/lilygo-t-embed-cc1101/FastLED/src/platforms.h:44,
from .pio/libdeps/lilygo-t-embed-cc1101/FastLED/src/FastLED.h:70,
from src/core/led_control.h:7,
from src/core/led_control.cpp:1:
.pio/libdeps/lilygo-t-embed-cc1101/FastLED/src/platforms/esp/32/idf4_clockless_rmt_esp32.h:63: note: this is the location of the previous definition
#define FASTLED_RMT_MAX_CHANNELS SOC_RMT_TX_CANDIDATES_PER_GROUP
Compiling .pio\build\lilygo-t-embed-cc1101\src\core\menu_items\ClockMenu.cpp.o
Compiling .pio\build\lilygo-t-embed-cc1101\src\core\menu_items\ConfigMenu.cpp.o
In file included from src/core/display.cpp:1586:
.pio/libdeps/lilygo-t-embed-cc1101/PNGdec/src/PNGdec.h:209: warning: "INTELSHORT" redefined
#define INTELSHORT(p) ((p) + ((p+1)<<8))
In file included from src/core/display.h:25,
from src/core/display.cpp:1:
.pio/libdeps/lilygo-t-embed-cc1101/AnimatedGIF/src/AnimatedGIF.h:278: note: this is the location of the previous definition
#define INTELSHORT(p) (*(uint16_t *)p)
In file included from src/core/display.cpp:1586:
.pio/libdeps/lilygo-t-embed-cc1101/PNGdec/src/PNGdec.h:210: warning: "INTELLONG" redefined
#define INTELLONG(p) ((p) + ((p+1)<<8) + ((p+2)<<16) + ((p+3)<<24))
In file included from src/core/display.h:25,
from src/core/display.cpp:1:
Compiling .pio\build\lilygo-t-embed-cc1101\src\core\menu_items\ConnectMenu.cpp.o
.pio/libdeps/lilygo-t-embed-cc1101/AnimatedGIF/src/AnimatedGIF.h:279: note: this is the location of the previous definition
#define INTELLONG(p) (*(uint32_t *)p)
Compiling .pio\build\lilygo-t-embed-cc1101\src\core\menu_items\FMMenu.cpp.o
Compiling .pio\build\lilygo-t-embed-cc1101\src\core\menu_items\FileMenu.cpp.o
Compiling .pio\build\lilygo-t-embed-cc1101\src\core\menu_items\GpsMenu.cpp.o
Compiling .pio\build\lilygo-t-embed-cc1101\src\core\menu_items\IRMenu.cpp.o
src/core/display.cpp: In function 'bool drawPNG(fs::FS, String, int, int, bool)':
src/core/display.cpp:1630:79: error: invalid conversion from 'void ()(PNGDRAW)' {aka 'void ()(png_draw_tag)'} to 'int ()(PNGDRAW)' {aka 'int ()(png_draw_tag)'} [-fpermissive]
int16_t rc = png->open(filename.c_str(), myOpen, myClose, myRead, mySeek, PNGDraw);
^~~~~~~
In file included from src/core/display.cpp:1586:
.pio/libdeps/lilygo-t-embed-cc1101/PNGdec/src/PNGdec.h:167:171: note: initializing argument 6 of 'int PNG::open(const char*, void* ()(const char, int32_t*), void ()(void), int32_t ()(PNGFILE, uint8_t*, int32_t), int32_t ()(PNGFILE, int32_t), int ()(PNGDRAW))'
int open(const char szFilename, PNG_OPEN_CALLBACK pfnOpen, PNG_CLOSE_CALLBACK pfnClose, PNG_READ_CALLBACK pfnRead, PNG_SEEK_CALLBACK pfnSeek, PNG_DRAW_CALLBACK pfnDraw);
~~~~~~~~~~~~~~~~~~~^~~~~~~
Compiling .pio\build\lilygo-t-embed-cc1101\src\core\menu_items\NRF24.cpp.o
*** [.pio\build\lilygo-t-embed-cc1101\src\core\display.cpp.o] Error 1
In file included from src/core/menu_items/BleMenu.cpp:6:
src/modules/ble/ble_spam.h:9:131: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
void ibeacon(char DeviceName="Bruce iBeacon", char BEACON_UUID="8ec76ea3-6668-48da-9866-75be8bc86f4d", int ManufacturerId=0x4C00);
^
src/modules/ble/ble_spam.h:9:131: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
src/core/menu_items/BleMenu.cpp: In lambda function:
src/core/menu_items/BleMenu.cpp:26:51: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
options.push_back({"iBeacon", = { ibeacon(); }});
^
src/core/menu_items/BleMenu.cpp:26:51: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
=========================================================================== [FAILED] Took 78.95 seconds ===========================================================================
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have been using my cardputer 1.1 by compiling with VSCode without any issue and 0 error. But, recently I have bought the embed cc1101 and tried to compile in VScode code but got fews warnings and error. So, I cant use the source code anymore for my tembed. can anyone help me please, because as a learner I have tried everything but failed to compile . Thanks in advance.
Compiling .pio\build\lilygo-t-embed-cc1101\src\core\menu_items\BleMenu.cpp.o
src/core/led_control.cpp:8: warning: "FASTLED_RMT_MAX_CHANNELS" redefined
#define FASTLED_RMT_MAX_CHANNELS 1 // Maximum number of RMT channels
In file included from .pio/libdeps/lilygo-t-embed-cc1101/FastLED/src/platforms/esp/32/clockless_rmt_esp32.h:32,
from .pio/libdeps/lilygo-t-embed-cc1101/FastLED/src/platforms/esp/32/fastled_esp32.h:12,
from .pio/libdeps/lilygo-t-embed-cc1101/FastLED/src/platforms.h:44,
from .pio/libdeps/lilygo-t-embed-cc1101/FastLED/src/FastLED.h:70,
from src/core/led_control.h:7,
from src/core/led_control.cpp:1:
.pio/libdeps/lilygo-t-embed-cc1101/FastLED/src/platforms/esp/32/idf4_clockless_rmt_esp32.h:63: note: this is the location of the previous definition
#define FASTLED_RMT_MAX_CHANNELS SOC_RMT_TX_CANDIDATES_PER_GROUP
Compiling .pio\build\lilygo-t-embed-cc1101\src\core\menu_items\ClockMenu.cpp.o
Compiling .pio\build\lilygo-t-embed-cc1101\src\core\menu_items\ConfigMenu.cpp.o
In file included from src/core/display.cpp:1586:
.pio/libdeps/lilygo-t-embed-cc1101/PNGdec/src/PNGdec.h:209: warning: "INTELSHORT" redefined
#define INTELSHORT(p) ((p) + ((p+1)<<8))
In file included from src/core/display.h:25,
from src/core/display.cpp:1:
.pio/libdeps/lilygo-t-embed-cc1101/AnimatedGIF/src/AnimatedGIF.h:278: note: this is the location of the previous definition
#define INTELSHORT(p) (*(uint16_t *)p)
In file included from src/core/display.cpp:1586:
.pio/libdeps/lilygo-t-embed-cc1101/PNGdec/src/PNGdec.h:210: warning: "INTELLONG" redefined
#define INTELLONG(p) ((p) + ((p+1)<<8) + ((p+2)<<16) + ((p+3)<<24))
In file included from src/core/display.h:25,
from src/core/display.cpp:1:
Compiling .pio\build\lilygo-t-embed-cc1101\src\core\menu_items\ConnectMenu.cpp.o
.pio/libdeps/lilygo-t-embed-cc1101/AnimatedGIF/src/AnimatedGIF.h:279: note: this is the location of the previous definition
#define INTELLONG(p) (*(uint32_t *)p)
Compiling .pio\build\lilygo-t-embed-cc1101\src\core\menu_items\FMMenu.cpp.o
Compiling .pio\build\lilygo-t-embed-cc1101\src\core\menu_items\FileMenu.cpp.o
Compiling .pio\build\lilygo-t-embed-cc1101\src\core\menu_items\GpsMenu.cpp.o
Compiling .pio\build\lilygo-t-embed-cc1101\src\core\menu_items\IRMenu.cpp.o
src/core/display.cpp: In function 'bool drawPNG(fs::FS, String, int, int, bool)':
src/core/display.cpp:1630:79: error: invalid conversion from 'void ()(PNGDRAW)' {aka 'void ()(png_draw_tag)'} to 'int ()(PNGDRAW)' {aka 'int ()(png_draw_tag)'} [-fpermissive]
int16_t rc = png->open(filename.c_str(), myOpen, myClose, myRead, mySeek, PNGDraw);
^~~~~~~
In file included from src/core/display.cpp:1586:
.pio/libdeps/lilygo-t-embed-cc1101/PNGdec/src/PNGdec.h:167:171: note: initializing argument 6 of 'int PNG::open(const char*, void* ()(const char, int32_t*), void ()(void), int32_t ()(PNGFILE, uint8_t*, int32_t), int32_t ()(PNGFILE, int32_t), int ()(PNGDRAW))'
int open(const char szFilename, PNG_OPEN_CALLBACK pfnOpen, PNG_CLOSE_CALLBACK pfnClose, PNG_READ_CALLBACK pfnRead, PNG_SEEK_CALLBACK pfnSeek, PNG_DRAW_CALLBACK pfnDraw);
~~~~~~~~~~~~~~~~~~~^~~~~~~
Compiling .pio\build\lilygo-t-embed-cc1101\src\core\menu_items\NRF24.cpp.o
*** [.pio\build\lilygo-t-embed-cc1101\src\core\display.cpp.o] Error 1
In file included from src/core/menu_items/BleMenu.cpp:6:
src/modules/ble/ble_spam.h:9:131: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
void ibeacon(char DeviceName="Bruce iBeacon", char BEACON_UUID="8ec76ea3-6668-48da-9866-75be8bc86f4d", int ManufacturerId=0x4C00);
^
src/modules/ble/ble_spam.h:9:131: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
src/core/menu_items/BleMenu.cpp: In lambda function:
src/core/menu_items/BleMenu.cpp:26:51: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
options.push_back({"iBeacon", = { ibeacon(); }});
^
src/core/menu_items/BleMenu.cpp:26:51: warning: ISO C++ forbids converting a string constant to 'char' [-Wwrite-strings]
=========================================================================== [FAILED] Took 78.95 seconds ===========================================================================
Environment Status Duration
lilygo-t-embed-cc1101 FAILED 00:01:18.951
====================================================================== 1 failed, 0 succeeded in 00:01:18.951 ======================================================================
Beta Was this translation helpful? Give feedback.
All reactions