View Single Post
  #1   Spotlight this post!  
Unread 31-01-2008, 12:05
Hieb Hieb is offline
Registered User
no team
Team Role: Teacher
 
Join Date: Mar 2004
Rookie Year: 2004
Location: St. Louis, MO
Posts: 125
Hieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to beholdHieb is a splendid one to behold
Variable assignment in EasyC

I usually use MPLAB for programming, but since I was teaching complete beginners this year I decided to use EasyC instead. My question is this: How can I assign a value from the OI to a variable in EasyC. For example, in MPLAB I would make a statement like

myVariable = p1_y;

or

myVariable = pwm01;

I know how to use the assignment block to assign specific values to a variable, and I know how to use the OIToPWM block, but I want to take the pwm value and assign it to a variable.

Thanks.