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

afruit_ADS1015.h:28:10: fatal error: util/delay.h: No such file or directory #14

Open
jorge-teixeira opened this issue Aug 20, 2021 · 6 comments
Labels
bug Something isn't working

Comments

@jorge-teixeira
Copy link

need the libraries

i get a error no file delay.h in

afruit_ADS1015.h:28:10: fatal error: util/delay.h: No such file or directory

@jorge-teixeira jorge-teixeira added the bug Something isn't working label Aug 20, 2021
@TheAmadeus25
Copy link
Owner

Sorry for the inconvenience! I need more information to reproduce this problem.

  • Which version are you using of Arduino IDE (Microsoft Store or exe)?
  • What is the version number of it (It's showing in the title of it)?
  • What version are you using for the library?

The library you asked for is preinstalled with the IDE. Can you check this path:

\Documents\ArduinoData\packages\arduino\tools\avr-gcc\4.9.2-atmel3.5.4-arduino2\avr\include\util\

4.9.2-atmel3.5.4-arduino2 may look different.

@abl73
Copy link

abl73 commented Sep 25, 2021

Hi, first of all I need to say, awesome project!!
Tried my first steps of following your tutorial and also failed at the same stage.
Missing the Adafruit_ADS1015.h. If I follow your link I miss all the arduino directory (only have an esp8266 directory inside the packages directory.

@abl73
Copy link

abl73 commented Sep 26, 2021

Restarted this morning and saw that I didn't install the exact versions of the libraries as you mentioned in the Wiki. Did that and the first part of the sketch did compile now.

An issue that I encounter now is:
no matching function for call to 'NTPClient::NTPClient(WiFiUDP&, const char [20], int, int)'

I think it is related to the time.h manual installation. In the Github it is mentioned that I should install this manually by copying the files to my Sketch directory. When I copied it asked me whether I was ok to overwrite some files. So apparently there was already a Time directory in my Arduino/libraries...

I '//'-ed this line to see how far the compile would go. It got stuck on the NTP tab, at timeClient.update(). So I suspect the time library is my issue currently.

@TheAmadeus25
Copy link
Owner

  1. Thank you very much! I never thought that, there were people out there who are interested into this project. I'm feeling bad now, that it doesn't work so flawless like expected. Sorry for any inconvenience.

  1. I'm I right that an update/downgrade libraries solved the first problem delay.h? I was tinkering all the time just to try to replicate this problem.

  1. Let's move to the new problem. I'm not sure if I understand you completely.
  • How exactly did you install the Time.h library? This library is pre-installed with Arduino IDE. The writers are “Michael Margolis” and “Paul Stoffregen”. You can check it here: \Documents\Arduino\libraries\Time\library.properties. I never overwrite it.
  • If it is broken, just try to re-install it from Arduino IDE. I can send you my file as well if you want?

  1. Ahhhh it seems I forget something. You need to install this library, too:
    Name: NTPClient
    By: Fabrice Weinberg
    Version: 3.1.0

It is needed for your next issue. (In the last few years, I installed so many libraries, I didn't realize that this was missing in the wiki)

@abl73
Copy link

abl73 commented Sep 28, 2021

  1. No worries at all, it's amazing what you achieved and thanks a lot for sharing this! I have to admit I'm working on two projects currently (Awtrix as well, which is quite popular and I just got it working). I'm happy to bet a test user and try to get it up and running if that would help you and others? If not, then please ignore these findings :-)
  2. Selecting the versions that you mentioned in the wiki did indeed solve these issues (my fault)...
  3. Indeed, my version mentioned 'Stoffregen', which made me think I got the wrong version as well.
  4. I think by installing that library, my time issues seem to be gone :-)...

When compiling it now hangs at (line 118): 'InitSerial()' and states that InitSerial was not declared in this scope.

@TheAmadeus25
Copy link
Owner

Thank you very much! It's a good feedback from you, which improve the tutorial!!


Awtrix looks interesting. Never heard of it before. Had to google it. I'll keep my eyes on it.

Currently, I re-code this project for the ESP32, because I'm not happy with the core design of the ESP8266. My goal is to make

  • debugging much easier (human-friendly serial output messages)
  • improving performance (at least removing lags while parsing information from a server)
  • make it more stable (ESP32 has a better core code than the ESP8266)
  • use both cores (for splitting tasks)

I plan to replace the ADS1X15 with the built-in ADC of this board, because there is no need any more.

To make this project even bigger, it will need a SD-Card slot. In this case I have the possibility for new features like:

  • Offload Icons from the Colorduino to the SD card
  • Change Icons without re-flashing the ESP32 or Colorduino
  • Save/Update your configuration for WiFi, YouTube, Weather, etc. (even after restart)
  • Save values of the last 32 days or even longer (plot it as line graph on the Colorduino)
  • Host a Website to control/configure your smartwatch
  • Save a full logfile of the ESP32
  • etc.

At least, this is what I try to do…


Anyway, InitSerial() is in Tool_Serial.ino so it should work. Can you check this:

  1. If you open your project in Arduino IDE, is there a tab called Tool_Serial.ino?
  2. Check OpenWeatherMap.ino. Maybe there is a } missing, at the end?
  3. Maybe there is a // or /**/ somewhere in between?
  4. Just in case, check if you include <Wire.h> in A_ESP8266.ino
  5. Move your project folder into C:\A_ESP8266 and try again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants