A Python library for the Robotics Connection SerializerTM micro controller.
Created for The Pi Robot Project: http://www.pirobot.org
Copyright (c) 2010 Patrick Goebel. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details at:
http://www.gnu.org/licenses/gpl.html
NOTE: See the offical SerializerTM manual at:
http://www.roboticsconnection.com/multimedia/docs/Serializer_3.0_UserGuide.pdf
Basic Usage:
mySerializer = Serializer(port="/dev/ttyUSB0", baudrate=19200, timeout=0.05)
mySerializer.connect()
myPing = Ping(mySerializer, 4)
myIR = GP2D12(mySerializer, 4)
print myPing.value()
print myIR.value()
mySerializer.stop()
mySerializer.close()
See the example files for more details.