Sensor Driver for the HT Sensor Multiplexor

Post your NXJ projects, project ideas, etc here!

Moderators: 99jonathan, roger, imaqine

Sensor Driver for the HT Sensor Multiplexor

Postby tkr65536 » Tue Aug 12, 2014 2:15 am

I have created a sensor driver for the HT Sensor Multiplexor.

This driver works almost as if it were a lejos.nxt.SensorPort. For example, instead of:
Code: Select all
LightSensor normLiSensor = new LightSensor(SensorPort.S2, true);
you would
Code: Select all
LightSensor smuxLiSensor = new LightSensor(new SMUXSensorPort(SensorPort.S1, 2), true);
(the number 2 is the port of the sensor on the SMUX)

You can find more information as well as the download on my bitbucket page: https://bitbucket.org/tkr65536/lejos-smux

Everyone is welcome to use this, under the terms of the GNU GPL.

I would love feedback.
tkr65536
New User
 
Posts: 1
Joined: Mon Aug 11, 2014 8:06 pm

Return to NXJ Projects

Who is online

Users browsing this forum: No registered users and 1 guest

more stuff