Skip to content

Conversation

@hasenradball
Copy link

Bug fixig for actual ESP32 core.

  • fixing include issue (line 66...69)
  • using consequently #if defined for controllers due to more accurate compiler settings on pioarduino.

Issue:

In file included from src/main.cpp:14:
.pio/libdeps/esp32dev/PxMatrix LED MATRIX library/PxMatrix.h: In member function 'void PxMATRIX::fm612xWriteRegister(uint16_t, uint8_t)':
.pio/libdeps/esp32dev/PxMatrix LED MATRIX library/PxMatrix.h:93:29: error: 'GPIO' was not declared in this scope
   93 |   #define GPIO_REG_SET(val) GPIO.out_w1ts = val
      |                             ^~~~
.pio/libdeps/esp32dev/PxMatrix LED MATRIX library/PxMatrix.h:407:5: note: in expansion of macro 'GPIO_REG_SET'
  407 |     GPIO_REG_SET(1 << _LATCH_PIN);
      |     ^~~~~~~~~~~~
.pio/libdeps/esp32dev/PxMatrix LED MATRIX library/PxMatrix.h: In member function 'void PxMATRIX::display(uint16_t)':
.pio/libdeps/esp32dev/PxMatrix LED MATRIX library/PxMatrix.h:94:31: error: 'GPIO' was not declared in this scope
   94 |   #define GPIO_REG_CLEAR(val) GPIO.out_w1tc = val
      |                               ^~~~
.pio/libdeps/esp32dev/PxMatrix LED MATRIX library/PxMatrix.h:1112:7: note: in expansion of macro 'GPIO_REG_CLEAR'
 1112 |       GPIO_REG_CLEAR( 1 << _OE_PIN);

Core:

Processing esp32dev (board: esp32dev; platform: https://github.com/pioarduino/platform-espressif32/releases/download/stable/platform-espressif32.zip; framework: arduino)
-------------------------------------------------------------------------------------------------------------------------------------------------
Library Manager: Installing 2dom/PxMatrix LED MATRIX library @ ^1.8.2
Unpacking  [####################################]  100%
Library Manager: PxMatrix LED MATRIX library@1.8.2 has been installed!
Library Manager: Installing adafruit/Adafruit GFX Library @ ^1.11.5
Unpacking  [####################################]  100%
Library Manager: Adafruit GFX Library@1.12.4 has been installed!
Library Manager: Resolving dependencies...
Library Manager: Installing Adafruit BusIO
Unpacking  [####################################]  100%
Library Manager: Adafruit BusIO@1.17.4 has been installed!
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (55.3.34) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES: 
 - contrib-piohome @ 3.4.4 
 - framework-arduinoespressif32 @ 3.3.4 
 - framework-arduinoespressif32-libs @ 5.5.0+sha.8410210c9a 
 - tool-esptoolpy @ 5.1.0 
 - tool-mklittlefs @ 3.2.0 
 - toolchain-xtensa-esp-elf @ 14.2.0+20250730
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 49 compatible libraries
Scanning dependencies...
Dependency Graph
|-- PxMatrix LED MATRIX library @ 1.8.2
|-- Adafruit GFX Library @ 1.12.4
|-- DBG_Print @ 2.0.9
|-- cWIFI @ 2.4.0
|-- server_functions
|-- WebServer @ 3.3.4

@hasenradball hasenradball changed the title Bugfix for actual ESP32 core usage of consequently #id defined (...) Bugfix for actual ESP32 core and usage of consequently #id defined (...) Dec 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant