(2019-09-23, 06:09 PM)glowntiger Wrote: thanks i will try this…. ;-)
Yes, I think about the auto-shutdown and further i have 4 more opto-Inputs on the board wich can use for switches or so on.
If you have some time, you can take a quick look at my Postinstall.py script? If it is o.k. for you I make the preuninstall to delete all changes?
https://github.com/Thomas-GeDaD/openplot...plotterMCS
For the I2C devices I must call "echo ds2482 0x18 > /sys/bus/i2c/devices/i2c-1/new_device". Is the startup.py the right place for it?
I will take a look to your app as soon as possible, really busy now
In preUninstall script you should revert all changes you did in postInstall script.
If you need to do "echo ds2482 0x18 > /sys/bus/i2c/devices/i2c-1/new_device" just once, the postInstall script is the right place, otherwise startup.py should be fine.