Open GoogleCodeExporter opened 9 years ago
Hi,
if have updated the drivers and the abstraction code a bit.
- The clock package contains now a new driver that allows to use the (Python)
system clock (only for reading).
- The memory package has got some optimizations and now also has non-REST
Python methods to read/write memory bytes very flexible. This may be used to
control the RAM memory of e.g. display chips.
The usage instructions remain the same as above, the file "osrtc.py" goes into
the /clock directory.
Andreas
Original comment by andreas....@googlemail.com
on 23 Sep 2014 at 3:23
Attachments:
Just updated webiopi.js so that the problem with "banks" within GPIOPort does
not occur any more. This was a remainder of my work for PCA9698 ...
Original comment by andreas....@googlemail.com
on 17 Nov 2014 at 8:36
Attachments:
Hi,
I tested a DS1307 and encountered the following error:
2015-06-21 15:21:13 - WebIOPi - ERROR - [Errno 16] Device or resource busy
Traceback (most recent call last):
File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.7.1-py3.2-linux-armv6l.egg/webiopi/__main__.py", line 75, in <module>
main(sys.argv)
File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.7.1-py3.2-linux-armv6l.egg/webiopi/__main__.py", line 69, in main
server = Server(port=port, configfile=configfile, scriptfile=scriptfile)
File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.7.1-py3.2-linux-armv6l.egg/webiopi/server/__init__.py", line 66, in __init__
manager.addDevice(name, driver, args)
File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.7.1-py3.2-linux-armv6l.egg/webiopi/devices/manager.py", line 28, in addDevice
dev = devClass()
File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.7.1-py3.2-linux-armv6l.egg/webiopi/devices/clock/dsrtc.py", line 190, in __init__
DSclock.__init__(self, control)
File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.7.1-py3.2-linux-armv6l.egg/webiopi/devices/clock/dsrtc.py", line 66, in __init__
I2C.__init__(self, 0x68)
File "/usr/local/lib/python3.2/dist-packages/WebIOPi-0.7.1-py3.2-linux-armv6l.egg/webiopi/devices/i2c.py", line 54, in __init__
if fcntl.ioctl(self.fd, I2C_SLAVE, self.slave):
IOError: [Errno 16] Device or resource busy
Any suggestions?
Original comment by ruud.mee...@gmail.com
on 21 Jun 2015 at 3:41
Solved: i2cdetect showed UU for the device. I ran "echo 0x68 >
/sys/class/i2c-adapter/i2c-1/delete_device" to revert it back to 68. Now it
works fine.
Original comment by ruud.mee...@gmail.com
on 21 Jun 2015 at 4:56
Original issue reported on code.google.com by
andreas....@googlemail.com
on 29 Aug 2014 at 10:38Attachments: