![]() |
controlling the leds
Hi,
I am using easyC. Can I control the leds in the OI, that when I am writing setPWM(pwm_relay,value), the led in OI corresponding that relay switch will trun on? (just like the ability to control each pin in plab) Thanks |
Re: controlling the leds
Yes. I do not use Easy-C but i can't believe it'll be too different from normal coding, cept it has nice buttons
The code would put a 0 or a 1 into the value of the LED you want to set (1 = on 0 = off) Suposing you want to control Pwm1_green, just do this Code:
if (something_is_true) |
Re: controlling the leds
SetOILED ( 5 , 1 ) ;
This sets Relay 1 Red to on There is "OI LED" under RC Control menu. |
| All times are GMT -5. The time now is 03:58. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi