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

how to use the rtctime.c code in a sketch with the Arduino IDE #3431

Closed
arduz opened this issue May 10, 2021 · 3 comments
Closed

how to use the rtctime.c code in a sketch with the Arduino IDE #3431

arduz opened this issue May 10, 2021 · 3 comments

Comments

@arduz
Copy link

arduz commented May 10, 2021

Hello, i have tried to use the code in https://github.com/nodemcu/nodemcu-firmware/blob/release/app/modules/rtctime.c in my sketch, but i couldn't find the nesessary libraries ( #include "module.h", #include "lauxlib.h", #include "rtc/rtctime_internal.h", #include "rtc/rtctime.h").
My question: Is it even possible to use such code direct in a sketch? Where can I find the named libraries? I want to use the RTC clock functionality (but not only the RTC RAM or timers) on my ESP12S.
Thanks for any answer.

@vsky279
Copy link
Contributor

vsky279 commented May 10, 2021

Hi, it's not clear what you are trying to achieve. Why would you want to do that?

Anyway I don't think it's a good idea to do this. For example the lauxlib.h library is library that provides routines to talk to Lua. You would need to rewrite the code completely to get rid off this but than you will have nothing left.

@arduz
Copy link
Author

arduz commented May 11, 2021 via email

@marcelstoer
Copy link
Member

One for #1010

I think you picked the wrong project. This firmware here is for writing Lua apps on ESP8266/ESP32.

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