View Single Post
  #2   Spotlight this post!  
Unread 18-01-2007, 21:50
Jimmy Cao Jimmy Cao is offline
Registered User
AKA: Jimmy Cao
no team
 
Join Date: Sep 2006
Rookie Year: 2004
Location: San Francisco, CA
Posts: 295
Jimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant futureJimmy Cao has a brilliant future
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)
  Pwm1_green=1;
else
  Pwm1_green=0;
or whatever you variation of that you want to do. It can also be used to set the Relay LEDs.
__________________
Jimmy Cao

Team 469 2006-2010 Student/Alumni
Team 830 2011-2012 Mentor