Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

I2C device library

  • olo

    olo - 2017-09-13

    I'd like to make a library to my I2C device and I have question how to add line in configuration window of device like in attachment ?

    IMG: config_window.png

  • eschwellinger

    eschwellinger - 2017-09-13

    this you need to add in the device descripton:
    "c:\Users\<yourwindowsname>\CODESYS Control for Raspberry PI\\Devices\MCP23S17.devdesc.xml"
    "c:\Users\<yourwindowsname>\CODESYS Control for Raspberry PI\\Libraries\SPI_MCP23S17.library"
    Then you need to extend the library to read the paramter.</yourwindowsname></yourwindowsname>

    After changing adding lines in the devicedescription the steps should be:
    Install the devicedescription to the device repoditory and then execute update device by rightclick in the device tree -> update device (then the edited and Change devdesc is used)


    IMG: ReadParameter.jpg

    IMG: AddParameter.jpg

  • FabioPD

    FabioPD - 2020-02-26

    Hello! I need to add a I2C device AM2315 (https://learn.adafruit.com/am2315-encas ... duino-code)
    to my project, how to do this for my raspberry?
    I cant found it in the list ... may be I have to download a Adafruit package?


    • tomas111

      tomas111 - 2021-09-27

      Hi, did you see bytes?

  • i-campbell

    i-campbell - 2020-02-26

    Hi Fabio, many are doing their own drivers in forge take a look at the documentation how to.
    Can seem a little daunting but really it is achievable.
    Please let me know if you get stuck or want advice on a particular point. You can also ask in forge itself

    • tomas111

      tomas111 - 2021-09-27

      Hi, why not an example with I2C?


Log in to post a comment.