Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error compiling st775 #5

Open
chrnueve opened this issue Apr 10, 2020 · 2 comments
Open

Error compiling st775 #5

chrnueve opened this issue Apr 10, 2020 · 2 comments

Comments

@chrnueve
Copy link

chrnueve commented Apr 10, 2020

Hi,
I'm trying to upload your sample yaml to a M5StickC from HA ESPHome integration, but is giving me an error on compile time with st7735.h.
Here's a log of a compilation

CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/m5stack-core-esp32.html
PLATFORM: Espressif 32 > M5Stack Core ESP32
HARDWARE: ESP32 240MHz 320KB RAM (4MB Flash)
DEBUG: CURRENT(esp-prog) EXTERNAL(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)
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Collected 27 compatible libraries
Scanning dependencies...
Dependency Graph
|-- 1.0.3
|-- 1.0
| |-- 1.0
|-- 1.0
|-- 1.0.1
|-- 1.0
|-- 1.0
Compiling /data/m5stick1/.pioenvs/m5stick1/src/esphome/components/st7735/st7735.cpp.o
Compiling /data/m5stick1/.pioenvs/m5stick1/src/esphome/core/controller.cpp.o
Compiling /data/m5stick1/.pioenvs/m5stick1/src/esphome/core/esphal.cpp.o
Compiling /data/m5stick1/.pioenvs/m5stick1/src/esphome/core/log.cpp.o
In file included from src/esphome/components/st7735/st7735.cpp:1:0:
src/esphome/components/st7735/st7735.h:109:39: error: expected template-name before '<' token
public spi::SPIDevice<spi::BIT_ORDER_MSB_FIRST, spi::CLOCK_POLARITY_HIGH, spi::CLOCK_PHASE_TRAILING,
^
src/esphome/components/st7735/st7735.h:109:39: error: expected '{' before '<' token
src/esphome/components/st7735/st7735.h:109:39: error: expected unqualified-id before '<' token
src/esphome/components/st7735/st7735.cpp:355:1: error: expected '}' at end of input
} // namespace esphome
^
src/esphome/components/st7735/st7735.cpp:355:1: error: expected '}' at end of input
*** [/data/m5stick1/.pioenvs/m5stick1/src/esphome/components/st7735/st7735.cpp.o] Error 1

I'll check tomorrow to build it using the esphome-cli
Thank you for your work!

@airy10
Copy link
Owner

airy10 commented Apr 11, 2020

I'm not using esphome HA integration. It might be some compatibility with the esphome version used (stable, dev...). I'm using current dev version.

@geiseri
Copy link
Contributor

geiseri commented Sep 13, 2020

I had no issues. One thing to note is that you should copy in the custom components before you configure the device. Otherwise, it will select the M5Stack Core ESP32 and that will not work. You need to make sure that it is the following:

esphome:
  name:  my_m5stckc
  platform: ESP32
  board: m5stick-c
  platformio_options:
    upload_speed: 115200

Once I did that it worked like a charm.

@airy10 What is the plan to push this upstream to ESPhome?

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

No branches or pull requests

3 participants