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
Hi,
this you need to add in the device descripton:
"c:\Users\<yourwindowsname>\CODESYS Control for Raspberry PI\3.5.11.10\Devices\MCP23S17.devdesc.xml"
"c:\Users\<yourwindowsname>\CODESYS Control for Raspberry PI\3.5.11.0\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)
BR
Edwin
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Fabio, many are doing their own drivers in forge take a look at the documentation how to. https://forge.codesys.com/drv/io-drivers/doc/I2C/
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
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 ?
Hi,
this you need to add in the device descripton:
"c:\Users\<yourwindowsname>\CODESYS Control for Raspberry PI\3.5.11.10\Devices\MCP23S17.devdesc.xml"
"c:\Users\<yourwindowsname>\CODESYS Control for Raspberry PI\3.5.11.0\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)
BR
Edwin
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?
Thanks.
Hi, did you see bytes?
Hi Fabio, many are doing their own drivers in forge take a look at the documentation how to.
https://forge.codesys.com/drv/io-drivers/doc/I2C/
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
Hi, why not an example with I2C?