Browse Source

Fixing compiling-issues with ESP32-A1S

master
Torsten Stauder 4 years ago
parent
commit
acd87d8e18
  1. 12
      platformio.ini
  2. 2
      src/main.cpp

12
platformio.ini

@ -23,6 +23,8 @@ lib_deps_external =
https://github.com/bblanchon/ArduinoJson.git
https://github.com/pschatzmann/ESP32-A2DP.git
https://github.com/Arduino-IRremote/Arduino-IRremote.git
https://github.com/kkloesener/MFRC522_I2C.git
https://github.com/miguelbalboa/rfid.git
[env:common]
platform = espressif32
@ -41,12 +43,14 @@ build_flags = -DHAL=2
-DBOARD_HAS_PSRAM
-mfix-esp32-psram-cache-issue
lib_deps =
https://github.com/kkloesener/MFRC522_I2C_Library.git
;https://github.com/kkloesener/MFRC522_I2C_Library.git
https://github.com/kkloesener/AC101.git
${common.lib_deps_builtin}
${common.lib_deps_external}
platform_packages =
platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#1.0.5
board_upload.maximum_size = 16777216
board_upload.flash_size = 16MB
[env:lolin32]
;https://docs.platformio.org/en/latest/boards/espressif32/lolin32.html
@ -59,7 +63,6 @@ build_flags = -DHAL=1
lib_deps =
${common.lib_deps_builtin}
${common.lib_deps_external}
https://github.com/miguelbalboa/rfid.git
https://github.com/tueddy/PN5180-Library.git#0c200f5
extra_scripts = ${env:common.extra_scripts}
upload_port = /dev/cu.SLAB_USBtoUART
@ -78,7 +81,6 @@ build_flags = -DHAL=3
lib_deps =
${common.lib_deps_builtin}
${common.lib_deps_external}
https://github.com/miguelbalboa/rfid.git
https://github.com/tueddy/PN5180-Library.git#0c200f5
extra_scripts = ${env:common.extra_scripts}
upload_port = /dev/cu.wchusbserial1410
@ -96,7 +98,6 @@ board_build.partitions = huge_app.csv
lib_deps =
${common.lib_deps_builtin}
${common.lib_deps_external}
https://github.com/miguelbalboa/rfid.git
https://github.com/tueddy/PN5180-Library.git#0c200f5
extra_scripts = ${env:common.extra_scripts}
upload_port = /dev/cu.wchusbserial1410
@ -119,7 +120,6 @@ board_build.partitions = huge_app.csv
lib_deps =
${common.lib_deps_builtin}
${common.lib_deps_external}
https://github.com/miguelbalboa/rfid.git
https://github.com/tueddy/PN5180-Library.git#0c200f5
extra_scripts = ${env:common.extra_scripts}
upload_port = /dev/cu.SLAB_USBtoUART
@ -137,7 +137,6 @@ board_build.partitions = huge_app.csv
lib_deps =
${common.lib_deps_builtin}
${common.lib_deps_external}
https://github.com/miguelbalboa/rfid.git
https://github.com/tueddy/PN5180-Library.git#0c200f5
extra_scripts = ${env:common.extra_scripts}
upload_port = /dev/cu.SLAB_USBtoUART
@ -155,7 +154,6 @@ board_build.partitions = huge_app.csv
lib_deps =
${common.lib_deps_builtin}
${common.lib_deps_external}
https://github.com/miguelbalboa/rfid.git
https://github.com/tueddy/PN5180-Library.git#0c200f5
extra_scripts = ${env:common.extra_scripts}
upload_port = /dev/cu.SLAB_USBtoUART

2
src/main.cpp

@ -267,7 +267,7 @@ TaskHandle_t fileStorageTaskHandle;
static TwoWire i2cBusTwo = TwoWire(1);
#endif
#ifdef RFID_READER_TYPE_MFRC522_I2C
static MFRC522 mfrc522(MFRC522_ADDR, MFRC522_RST_PIN, &i2cBusTwo);
static MFRC522_I2C mfrc522(MFRC522_ADDR, MFRC522_RST_PIN, &i2cBusTwo);
#endif
#ifdef PORT_EXPANDER_ENABLE

Loading…
Cancel
Save