Hi,currently i using the vex controller ,3pin wire to connect to the LED.
When i compiled and download the program to the vex controller the LED does not light up. I even set the controller configuration to digital port 1.
This is the program that i do:
void main (void)
*** Please kindly give me some advise… will be much appreciate… Thanks
The Motor Port has the Full Battery Voltage available on one pin, Ground on another and the Control line on the Third, which is Pulse Width Modulation (PWM) . You most likely have the LED on the Full Battery Voltage, which you can not control.
“Set DigitalOuput(1,0)” does not control the Motor Ports, only the Analog/Digital Ports, set for Digital Output…
You might try using the SetPWM() function to control the output to the motors to see if that will set your LED to be on/off… But if you have it Directly connected to the Battery, this still won’t work.