Today we have running lights controlled from a Java program and it works to connect and disconnect both the DS2408 I/O device and the USB-adapter.
I found some documentation about storing device IDs in a XML-file along with classification and we'll probably use this since it's nice to keep that data out of the code. That way it's easy to keep track of what DS2408 is supposed to represent a factory, what is supposed to be a nuclear power plant and so on...
Next on the todo-list is to dwelve further into how to control the bits on the DS2408. Now the code alternates the state but I want to set the state instead. Also have to figure out how to read the input bit connected to the wire that can be connected to the main power grid (+5).
It all seems quite doable right now!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment