tobozo / esp32-DCF77_Analyzer_Clock

⏰ An ESP32 TFT interpretation of the @deruiter's DCF77-Analyzer-Clock-V2.0
MIT License
24 stars 9 forks source link

I encounter the following error when programming the lolin 32 pro #10

Open alalal80 opened 8 months ago

alalal80 commented 8 months ago

Good evening, I am currently creating your esp 32 dcf assembly to analyze on your web page. but I encounter the following error when programming the lolin 32 pro: here is the error: Compilation error: 'LGFX_SPI' in namespace 'lgfx' does not name a template type could you help me. Sincerely.

tobozo commented 8 months ago

hi,

using Brett's config file will produce errors as it is no longer compatible with LGFX config syntax

LoLin D32 Pro has two official displays that work with the special socket, if you picked one of those (or use the same pinout with similar display model) then LGFX autodetection should work along with the default config, provided you selected the right board from arduino tools menu.

enabling the default config requires to comment out board-specific defines

alalal80 commented 8 months ago

Envoyé de mon iPhoneLe 3 avr. 2024 à 09:24, tobozo @.***> a écrit : hi, using Brett's config file will produce errors as it is no longer compatible with LGFX config syntax LoLin D32 Pro has two official displays that work with the special socket, if you picked one of those (or use the same pinout with similar display model) then LGFX autodetection should work along with the default config, provided you selected the right board from arduino tools menu. enabling the default config requires to comment out board-specific defines

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>

alalal80 commented 8 months ago

Thank you for your answers, I use an ili9341 screen as in the original assembly as mentioned in the url: http://www.brettoliver.org.uk/DCF77_ESP32_Analyzer/ESP32_DCF77_Analyzer.htm?i=1

how can I program my edit without error. Sincerely.

tobozo commented 8 months ago

that's good news, ili9341 is one of the official displays so it will get detected

you just need to use specific pins in your wiring along with enabling the default config

        // LoLin D32 Pro => ILI9341
        GPIO_NUM_23     // MOSI (tft and touch)
        GPIO_NUM_19     // MISO (tft and touch)
        GPIO_NUM_18     // SCLK (tft and touch)
        GPIO_NUM_27     // DC (tft)
        GPIO_NUM_14     // CS (tft)
        GPIO_NUM_33     // RST (tft)
        GPIO_NUM_12     // CS (touch)

you will have to edit the default config, pick three available pins for the DCF (available pins are: 0, 2, 4, 13, 15), and update SDA/SCL too (SDA=21, SCL=22)

image

alalal80 commented 8 months ago

ok, for the connections, but for the .ino code, which file do I take?

alalal80 commented 8 months ago

Good evening, here is my config file:

ifndef _CONFIG_H

define _CONFIG_H

// enable either one or none of those:

//#define CONFIG_WROVER_KIT //#define CONFIG_TTGO // default //#define CONFIG_BRETT // Contributed by dl9sec 06.11.2021 (https://github.com/dl9sec) //#define CONFIG_OGO

define CONFIG_M5Core2

if defined CONFIG_WROVER_KIT

include "configs/Config.WROVER_KIT.h"

elif defined CONFIG_TTGO

include "configs/Config.TTGO-T1.h"

elif defined CONFIG_BRETT

include "configs/Config.Brett.h"

elif defined CONFIG_OGO

include "configs/Config.OGO.h"

elif defined CONFIG_M5Core2

include "configs/Config.M5Core2.h"

else

include "configs/Config.Default.h"

endif

//#if defined SPEAKER_PIN //#warning USING SPEAKER // #define USE_SPEAKER //#endif

endif // _CONFIG_H

Is the speaker used in this weather montage? What is the line for: //#define CONFIG_BRETT have you planned a new version? Sincerely.

tobozo commented 8 months ago

here is my config file

you need to comment out this line otherwise it'll load M5Stack configuration (with buttons and buzzer enabled):

#define CONFIG_M5Core2

Is the speaker used in this weather montage?

when available (e.g. if Chimera-Core detects a board known to have a speaker), the speaker emits a beep every second to reflect the DCF77 receiving the signal.

speaker is not enabled in the default config

comment this out if you're not using an external RTC module:

#define USE_RTC

comment this out if you're not using any buttons:

#define USE_BUTTONS

after that, make sure the pin numbers are declared from configs/Config.Default.h as it will be selected.

have you planned a new version?

nope, but this project accepts pull requests, so if you find bugs or ways to improve the app, contributions are welcome

alalal80 commented 8 months ago

Good evening, the screen lights up, I also added an RTC but from a dcf77 receiver for the moment, but every 6 seconds, the screen reboots. is this normal? Sincerely.

alalal80 commented 8 months ago

the numbers below the hourglass scroll for 5 to 6 seconds and the screen reboots.

tobozo commented 8 months ago

numbers scrolling is the UI testing itself, right after it gets the time from the RTC and starts listening to the DCF77, so if it's crashing at this stage, then something must be wrong with the pins assignment

more info on the crash should be available in the serial console when this happens

there's also a an Exception decoder to help you identify what line of code caused the crash