NXC: Lightsensor Active values (NXT 1.0) at HT smux

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

NXC: Lightsensor Active values (NXT 1.0) at HT smux

Post by HaWe »

hey,
is it possible to get Lightsensor Active values (NXT 1.0 kit) at the HT smux
a) in percent mode 0-100
b) in raw mode 0...1024?
mightor
Site Admin
Posts: 1079
Joined: 25 Sep 2010, 15:02
Location: Rotterdam, Netherlands
Contact:

Re: NXC: Lightsensor Active values (NXT 1.0) at HT smux

Post by mightor »

Sure it is.
  • int smuxSensorLegoLightRaw(const byte muxport);
  • int smuxSensorLegoLightNorm(const byte muxport);
You can download this driver here: http://botbench.com/blog/2010/04/09/rel ... ensor-mux/

= Xander
| My Blog: I'd Rather Be Building Robots (http://botbench.com)
| RobotC 3rd Party Driver Suite: (http://rdpartyrobotcdr.sourceforge.net)
| Some people, when confronted with a problem, think, "I know, I'll use threads,"
| and then two they hav erpoblesms. (@nedbat)
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: NXC: Lightsensor Active values (NXT 1.0) at HT smux

Post by HaWe »

mightor wrote:Sure it is.
  • int smuxSensorLegoLightRaw(const byte muxport);
  • int smuxSensorLegoLightNorm(const byte muxport);
You can download this driver here: http://botbench.com/blog/2010/04/09/rel ... ensor-mux/

= Xander
thank you!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests