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

Trying to compile: Compilation error: 'ETH_CLK_MODE' was not declared in this scope #3

Open
rlh100 opened this issue Feb 3, 2025 · 0 comments

Comments

@rlh100
Copy link

rlh100 commented Feb 3, 2025

I am trying to compile this code and the build fails with:

  /home/science/harker/Sound/Timecode/Projects/gps-ntp-eth-esp32/gps-ntp-eth-esp32.ino: In function 'void setup()':
  /home/science/harker/Sound/Timecode/Projects/gps-ntp-eth-esp32/gps-ntp-eth-esp32.ino:186:77: error: 'ETH_CLK_MODE' was not declared in this scope
  186 |     ETH.begin(ETH_ADDR, ETH_POWER_PIN, ETH_MDC_PIN, ETH_MDIO_PIN, ETH_TYPE, ETH_CLK_MODE); // Enable ETH
  exit status 1
  Compilation error: 'ETH_CLK_MODE' was not declared in this scope

I have a fresh install of Arduino IDE 2.3.4.
I have set the board to be LilyGo T-Display
I have installed the Arduino ESP32 Boards 2.0.18 library
I have installed the TFT_eSPI 2.5.43 library

I think I am missing some more libraries like a WiFi library. What libraries are need to support:

  #include @Wire.h@ 
  #include @time.h@ 
  #include @string.h@ 
  /// ESP-related stuff. You can get these via the board manager 
  #include @WiFi.h@ 
  #include @WiFiClient.h@ 
  #include @WiFiUdp.h@ 
  #include @Ticker.h@ 

Note: the @ are angle brackets that github eats as invalid HTML. Yes, I did try backslashes before the angle brackets.

Please include actual library names I can find in the library manager.

I realize this is probably a newbie problem, but then again, I am a newbie programmer.
I do realize I will need to change some parameters in the code like pin numbers and screen size. These should be straight forward once I get the code to compile.

Thank you,
RLH

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

1 participant