To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 27423
27422  |  27424
Subject: 
NXC: turning on the light
Newsgroups: 
lugnet.robotics
Date: 
Mon, 14 Apr 2008 20:02:53 GMT
Original-From: 
iTOtto <torsten.otto@mac=saynotospam=.com>
Viewed: 
6491 times
  
Howdy,

maybe I'm overlooking something very simple, but I can't find a way to use
the lamp that comes with the NXT when programming it in NXC.

Is this plainly not supported?

Regards,
iTOtto
--
View this message in context: http://www.nabble.com/NXC%3A-turning-on-the-light-tp16688828p16688828.html
Sent from the LEGO Robotics mailing list archive at Nabble.com.



Message has 2 Replies:
  Re: NXC: turning on the light
 
(...) My guess is you can turn it on using one of the powered sensor types such as SENSOR_TYPE_LIGHT_ACTIVE or SENSOR_TYPE_LOWSPEED_9V. I don't have a lamp to test this with or any of the cables that are required to connect a lamp to a sensor port. (...) (16 years ago, 14-Apr-08, to lugnet.robotics)
  Re: NXC: turning on the light
 
(...) Hi, Have you tried to connect the adapter cable in the output port and put the lamp on it? Use this program to test: task main() { OnFwd(OUT_A, 100); Wait(5000); Off(OUT_A); } This program assumes that you connected the cable in output A. (...) (16 years ago, 15-Apr-08, to lugnet.robotics)

9 Messages in This Thread:





Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR