Anonymous

Project:Traffic Lights: Difference between revisions

From London Hackspace Wiki
(Created page with " == USB Traffic Lights == The traffic lights above Lovelace are currently connected to Babbage via USB. Theyre a USB HID device (Vendor ID 0x03EB, ProductID = 0x2044 - LUFA sta...")
 
Line 13: Line 13:
The daemon running on Babbage (under my account) listens for UDP packets on port 9009. Simply send a 3 character string terminated by carriage return and newline to set the light status, for example:
The daemon running on Babbage (under my account) listens for UDP packets on port 9009. Simply send a 3 character string terminated by carriage return and newline to set the light status, for example:


100\r\n <- green light on
100\r\n <- green light on<p>
101\r\n <- green and red lights on
101\r\n <- green and red lights on<p>


This daemon handles the USB stuff for you.
This daemon handles the USB stuff for you.


== Current uses ==
== Current uses ==
77

edits