Asked
— Edited

am trying to set a digital port d23 on or off
set(D23,on) seems something missing here. i check cheet but it confuse me.
am trying to set a digital port d23 on or off
set(D23,on) seems something missing here. i check cheet but it confuse me.
Yes, that is right. Is it not working for you? Are you sure your device is in port D23 (those port numbers are soooo tiny!)
justin
you solved the problem,i didn now if the true or false must be written. now i know i dont.and yes set(D23,on)
its for the police light,cause it change mode with his own board ,i cant get it out.
deleted post
Yup, that sounds rights. It sounds like you were just applying power originally with no control.
Do not do that! You are sinking the regulator with the GND on a digital i/o of the ez-b. While micros can usually sink more than they can source, the big danger is when +3.3 is outputed on the signal pin because that connects the +3 signal pin to the VCC (+7.4) pin.
Let me explain in more detail...
Now, here's the problems
What you want to do is control the light by using a TP-220 or any transistor. There are tutorials that explain how to do this.
Stop what you're doing now or you will damage the EZ-B.
dj
thanks for posting.this is a wake up call,dont experiment.
Those RC model police lights he is using are designed for use on RC cars with PWM receivers. I wonder if they are suppose to be treated like servos and controlled with PWM instead of digital on and off?
@Nomad, do you have a datasheet for those lights or did they come with directions?
no they are normal for cars.i cant get the lights of with pwm or script. they have there own board.