logo elektroda
logo elektroda
X
logo elektroda

[Solved] ESP8266 ADS1015 LUA module.

piterek-23 2199 8
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16043931
    piterek-23
    Level 33  
    Hey,
    Just a quick question...
    How do I read the ADS1015 module in ESP8266 (i2c connection) in LUA?
    I would be most happy to accept a ready-made :)
  • ADVERTISEMENT
  • ADVERTISEMENT
  • #3 16044071
    piterek-23
    Level 33  
    inot wrote:
    If you searched, you would find .
    Link

    Believe I did a lot of searching....
    The example you provided a link to is in C, and I need it in LUA.
  • Helpful post
    #4 16044128
    inot
    Level 38  
    Here, it is all about examples that use I2C type libraries.
    There is also an I2C library in LUA , so I don't see a big problem to adapt this program accordingly.
  • ADVERTISEMENT
  • #5 16044194
    piterek-23
    Level 33  
    inot wrote:
    so I don't see much of a problem adjusting this program accordingly.

    If I knew how to do this I wouldn't be asking stupid questions on the forum.
    Anyway, thanks for trying to help ;)
  • Helpful post
    #6 16044709
    inot
    Level 38  
    As far as I can tell, nicht has yet created an ADS1x15 module in LUA ("nodemcu" open project).
  • ADVERTISEMENT
  • Helpful post
    #7 16045173
    piotr411
    Level 22  
    inot wrote:
    As far as I can tell, in LUA (the open source "nodemcu" project) nicht yet created the ADS1x15 module.


    Lua is not Arduino !!!
    Lua has much richer references it allows free programming, which you won't find in Arduino - the environment for testing modules.

    Lua has a similar syntax to Pascal, Basic, so just find an example for these languages, and you will be able to port it to LUA without problems

    Another thing, the example posted for Arduino is plagiarism, an available version written in Proton 24!!!
    http://www.protonbasic.co.uk/vbdownloads.php?do=download&downloadid=61

    Have fun :)
  • Helpful post
    #8 16046387
    inot
    Level 38  
    Quote:
    just find an example for these languages and you will be able to port this to LUA without problems


    This is also what I wrote at the beginning.
  • #9 17253393
    piterek-23
    Level 33  
    Electrode has asked to close the topic so I am closing ;)
ADVERTISEMENT