Announcement

Collapse
No announcement yet.

Can I import arduino libraries in Visi?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Can I import arduino libraries in Visi?

    I m not using arduino for my project, but certain components such as DS3231 (RTC) and DHT22 (temperature sensor) have easy-to-use arduino libraries.
    These libraries are ".h" format.

    Can I import these libraries to my code? If yes, then how?
    Link to the libraries: DHT22: http://www.electroschematics.com/wp-...015/02/DHT.rar
    DS3231: https://github.com/rodan/ds3231

  • #2
    Hello,

    Unfortunately, you can't import the Arduino libraries into your code. It would be possible to use the Arduino library as a reference to creating your own for Visi, substituting the Wire commands to the I2C equivalent on the 4D display and using 4DGL syntax ie := instead of = etc.

    hope this helps

    Best regards

    Paul

    Comment


    • #3
      Hello,

      I will have a go this week to modify or create a library for the DS3231 and the DHT22 and post the result's here.

      I hope this helps

      Best regards

      Paul

      Comment

      Working...
      X