Base interface from which all other interfaces inherit.
This class contains utility methods for fundamental sign features.
Allocate a set of files on the device.
| Parameter: | files – list of file objects (alphasign.text.Text, alphasign.string.String, ...) |
|---|---|
| Return type: | None |
Make the sign beep.
| Parameters: |
|
|---|---|
| Return type: | None |
Clear the sign’s memory.
| Return type: | None |
|---|
Set the run sequence on the device.
This determines the order in which the files are displayed on the device, if at all. This is useful when handling multiple TEXT files.
| Parameters: |
|
|---|---|
| Return type: | None |
Perform a soft reset on the sign.
This is non-destructive and does not clear the sign’s memory.
| Return type: | None |
|---|
Dummy interface used only for debugging.
This does nothing except print the contents of written packets.
Connect to a sign through a local serial device.
This class uses pySerial.
| Parameter: | device (string) – character device (default: /dev/ttyS0) |
|---|
Write packet to the serial interface.
| Parameter: | packet (alphasign.packet.Packet) – packet to write |
|---|
Connect to a sign using USB.
This class uses PyUSB.
| Parameter: | usb_id – tuple of (vendor id, product id) identifying the USB device |
|---|
| Parameter: | reset – send a USB RESET command to the sign. This seems to cause problems in VMware. |
|---|---|
| Raises usb.USBError: | |
| on USB-related errors | |