Go Down

Topic: How to combine (join) two sketches (Read 741 times) previous topic - next topic


Greetings everyone
I have a code (Backlit_Automated_Perpetual_Calendar) that I got from a colleague on the internet, made for a Perpetual Calendar with LED strips and I would like to combine it with another code (TM1637_7Segment_Display_NTP_Clock) made for a Clock with the TM1637 Module. I've tried to combine but it didn't work. I was embarrassed because the first code uses the NTP.h library and has the header #ifndef NTP_H and #define NTP_H. And the second code uses the NTPClient.h library, so I would like someone to help, please.

Note 1: I note here that both codes were made for ESP8266.
Note 2: NTP.h belongs to the first code.

Forgive my English, as it is not my native language.


Hello Dancopy
How are you?
Please check this tutorial for your project.
Best regards
ans stay healthy
KISS Q&D - keep calm and carry on - mind the gap - beware of sharks! -


Hi Peter!
First, thanks for the tutorial link and for trying to help me.
I even managed to understand how the principle of the union of sketches works, but, as I said, one sketch uses the NTP.h library and the other uses the NTPClient.h library, so I think that is where it is showing some errors, maybe functions? !
I will make a few more attempts, however, if someone else can help me, I thank you all.


Oct 10, 2020, 01:36 am Last Edit: Oct 11, 2020, 02:29 am by Dancopy
Someone else to help me?
If there is no solution, I will have to use two boards: esp8266 to manage the Calendar + Arduino Nano or Mini with RTC Module to manage the Clock, although the space is small.
I've tried in several ways, but I couldn't; my experience is little!

Go Up