m5stack / M5-ProductExampleCodes

All example codes of products supplied by M5Stack have been collected in this reposity.
MIT License
339 stars 485 forks source link

joyc.ino Arduino Code Error undefined reference to `connect_off'/ `connect_on' #38

Closed mfkenson closed 3 years ago

mfkenson commented 3 years ago

https://github.com/m5stack/M5-ProductExampleCodes/blob/f78fc2e2a48c8b2eda031985d5dc5f774317e634/Hat/JoyC/Arduino/JoyC/JoyC.ino

@Kiko62 could you suggestion any ideas about what version you can compile? I tried different esp32 versions (1.0.2-1.0.5) in board manager but also failed. Choose board m5stick-c.

Compiliation erro with arduino ide 1.8.13

sketch\joyc.ino.cpp.o:(.literal._Z4loopv+0x8): undefined reference to `connect_off'
sketch\joyc.ino.cpp.o:(.literal._Z5setupv+0x3c): undefined reference to `connect_on'

Compilation error with platform.io

.pio\build\m5stick-c\src\joyc.ino.cpp.o:(.literal._Z4loopv+0x8): undefined reference to `connect_off'
.pio\build\m5stick-c\src\joyc.ino.cpp.o:(.literal._Z5setupv+0x40): undefined reference to `connect_on'
mfkenson commented 3 years ago

my bad. i figuired it out it should be the icon.c