Describe the bug
I use M5StamPLC under Visual Code with this platform.ini: Topic 7784.
There is the new version 0.2.8 of M5Unified. With a short test program I got this errors:
Compiling .pio/build/xxx/libad7/M5Unified/utility/power/INA226_Class.cpp.o
Archiving .pio/build/xxx/lib056/libM5GFX.a
Compiling .pio/build/xxx/libad7/M5Unified/utility/power/INA3221_Class.cpp.o
.pio/libdeps/xxx/M5Unified/src/M5Unified.cpp:78:12: error: 'board_M5CardputerADV' is not a member of 'm5::board_t' {aka 'lgfx::boards::board_t'}
{ board_t::board_M5CardputerADV,GPIO_NUM_9 ,GPIO_NUM_8 , GPIO_NUM_1 ,GPIO_NUM_2 },
^~~~~~~~~~~~~~~~~~~~
.pio/libdeps/xxx/M5Unified/src/M5Unified.cpp:82:12: error: 'board_M5AtomEchoS3R' is not a member of 'm5::board_t' {aka 'lgfx::boards::board_t'}
{ board_t::board_M5AtomEchoS3R, GPIO_NUM_0 ,GPIO_NUM_45 , GPIO_NUM_1 ,GPIO_NUM_2 },
^~~~~~~~~~~~~~~~~~~
.pio/libdeps/xxx/M5Unified/src/M5Unified.cpp:151:12: error: 'board_M5CardputerADV' is not a member of 'm5::board_t' {aka 'lgfx::boards::board_t'}
{ board_t::board_M5CardputerADV,GPIO_NUM_40, GPIO_NUM_14, GPIO_NUM_39, GPIO_NUM_12 },
^~~~~~~~~~~~~~~~~~~~
.pio/libdeps/xxx/M5Unified/src/M5Unified.cpp:178:12: error: 'board_M5CardputerADV' is not a member of 'm5::board_t' {aka 'lgfx::boards::board_t'}
{ board_t::board_M5CardputerADV,GPIO_NUM_21 },
^~~~~~~~~~~~~~~~~~~~
.pio/libdeps/xxx/M5Unified/src/M5Unified.cpp: In member function 'm5::board_t m5::M5Unified::_check_boardtype(m5::board_t)':
.pio/libdeps/xxx/M5Unified/src/M5Unified.cpp:1151:30: error: 'board_M5AtomEchoS3R' is not a member of 'm5::board_t' {aka 'lgfx::boards::board_t'}
board = board_t::board_M5AtomEchoS3R;
^~~~~~~~~~~~~~~~~~~
.pio/libdeps/xxx/M5Unified/src/M5Unified.cpp: In member function 'void m5::M5Unified::_begin(const m5::M5Unified::config_t&)':
.pio/libdeps/xxx/M5Unified/src/M5Unified.cpp:1462:19: error: 'board_M5AtomEchoS3R' is not a member of 'm5::board_t' {aka 'lgfx::boards::board_t'}
case board_t::board_M5AtomEchoS3R:
^~~~~~~~~~~~~~~~~~~
.pio/libdeps/xxx/M5Unified/src/M5Unified.cpp:1478:19: error: 'board_M5CardputerADV' is not a member of 'm5::board_t' {aka 'lgfx::boards::board_t'}
case board_t::board_M5CardputerADV:
^~~~~~~~~~~~~~~~~~~~
.pio/libdeps/xxx/M5Unified/src/M5Unified.cpp: In member function 'void m5::M5Unified::_begin_spk(m5::M5Unified::config_t&)':
.pio/libdeps/xxx/M5Unified/src/M5Unified.cpp:1587:21: error: 'board_M5CardputerADV' is not a member of 'm5::board_t' {aka 'lgfx::boards::board_t'}
case board_t::board_M5CardputerADV:
^~~~~~~~~~~~~~~~~~~~
.pio/libdeps/xxx/M5Unified/src/M5Unified.cpp:1768:21: error: 'board_M5AtomEchoS3R' is not a member of 'm5::board_t' {aka 'lgfx::boards::board_t'}
case board_t::board_M5AtomEchoS3R:
^~~~~~~~~~~~~~~~~~~
.pio/libdeps/xxx/M5Unified/src/M5Unified.cpp:1839:21: error: 'board_M5CardputerADV' is not a member of 'm5::board_t' {aka 'lgfx::boards::board_t'}
case board_t::board_M5CardputerADV:
^~~~~~~~~~~~~~~~~~~~
.pio/libdeps/xxx/M5Unified/src/M5Unified.cpp:1847:34: error: 'board_M5CardputerADV' is not a member of 'm5::board_t' {aka 'lgfx::boards::board_t'}
if (_board == board_t::board_M5CardputerADV) {
^~~~~~~~~~~~~~~~~~~~
.pio/libdeps/xxx/M5Unified/src/M5Unified.cpp: In member function 'virtual void m5::M5Unified::update()':
.pio/libdeps/xxx/M5Unified/src/M5Unified.cpp:2232:19: error: 'board_M5CardputerADV' is not a member of 'm5::board_t' {aka 'lgfx::boards::board_t'}
case board_t::board_M5CardputerADV:
^~~~~~~~~~~~~~~~~~~~
.pio/libdeps/xxx/M5Unified/src/M5Unified.cpp:2241:19: error: 'board_M5AtomEchoS3R' is not a member of 'm5::board_t' {aka 'lgfx::boards::board_t'}
case board_t::board_M5AtomEchoS3R:
^~~~~~~~~~~~~~~~~~~
Compiling .pio/build/xxx/libad7/M5Unified/utility/power/IP5306_Class.cpp.o
Compiling .pio/build/xxx/libfc2/FS/FS.cpp.o
*** [.pio/build/xxx/libad7/M5Unified/M5Unified.cpp.o] Error 1
I try to use the version 0.2.7 in platform.ini:
lib_deps =
M5StamPLC=https://github.com/m5stack/M5StamPLC
M5Unified=https://github.com/m5stack/M5Unified^0.2.7
It didn't work. The version 0.2.8 was used and I got the same errors.
To reproduce
I use Visual Studio with platformio and I hello world test program.
I've gotten a little closer to the problem. First, I performed a full clean in Visual Studio using platformio AND deactivated the entry for M5Unified. The new M5Unified@0.2.8 continued to every load.
Here my output:
Processing m5stampplc-test (platform: espressif32; board: esp32-s3-devkitc-1; framework: arduino)
Library Manager: Installing git+https://github.com/m5stack/M5StamPLC
git version 2.43.0
Cloning into '/Users/myname/.platformio/.cache/tmp/pkg-installing-pmi7_zhl'...
remote: Enumerating objects: 70, done.
remote: Counting objects: 100% (70/70), done.
remote: Compressing objects: 100% (57/57), done.
remote: Total 70 (delta 4), reused 29 (delta 1), pack-reused 0 (from 0)
Receiving objects: 100% (70/70), 80.39 KiB | 2.77 MiB/s, done.
Resolving deltas: 100% (4/4), done.
Library Manager: M5StamPLC@1.0.0+sha.1021da5 has been installed!
Library Manager: Resolving dependencies...
Library Manager: Installing M5Unified @ *
Unpacking [####################################] 100%
Library Manager: M5Unified@0.2.8 has been installed!
Library Manager: Resolving dependencies...
Library Manager: Installing M5GFX @ >=0.2.10
Unpacking [####################################] 100%
Library Manager: M5GFX@0.2.10 has been installed!
A look at the library.json revealed the challenge in my opinion: dependencies to "M5Unified" - No specific version of M5Unified, always the latest!
{
"name": "M5StamPLC",
"description": "Library for M5StamPLC",
"keywords": "M5Stack,M5StamPLC",
"authors": {
"name": "M5Stack"
},
"repository": {
"type": "git",
"url": "https://github.com/M5Stack/M5StamPLC.git"
},
"dependencies": {
"M5Unified": "*",
"M5GFX": "*"
},
"version": "1.0.0",
"frameworks": "arduino",
"platforms": "espressif32"
}
In my opinion, there must be an M5StamPLC version 1.0.1 with the new features, and the old version M5StamPLC 1.0.0 must use M5Unified version 0.2.7.
Expected behavior
No error.
Screenshots
No response
Environment
- OS: Mac OS X
- IDE &IDE Version: Visual Studio 1.103.2 with platformIO Core 6.1.18
- Repository Version: M5StamPLC 1.0.0
Additional context
No response
Issue checklist
Describe the bug
I use M5StamPLC under Visual Code with this platform.ini: Topic 7784.
There is the new version 0.2.8 of M5Unified. With a short test program I got this errors:
I try to use the version 0.2.7 in platform.ini:
It didn't work. The version 0.2.8 was used and I got the same errors.
To reproduce
I use Visual Studio with platformio and I hello world test program.
I've gotten a little closer to the problem. First, I performed a full clean in Visual Studio using platformio AND deactivated the entry for M5Unified. The new M5Unified@0.2.8 continued to every load.
Here my output:
A look at the library.json revealed the challenge in my opinion: dependencies to "M5Unified" - No specific version of M5Unified, always the latest!
In my opinion, there must be an M5StamPLC version 1.0.1 with the new features, and the old version M5StamPLC 1.0.0 must use M5Unified version 0.2.7.
Expected behavior
No error.
Screenshots
No response
Environment
Additional context
No response
Issue checklist