|
Re: Pressure Switch code
Your if statements match mine but I think it should be relay1_fwd = 1; not relay1_fwd == 1;
== is for comparing, = is for assigning values
If thats not it, double check that you have the digital i/o set to input. Also check that your code is actually being called. I had my code in user_routines.c/default_routine() which wasn't being called, once i stuck the code in user_routines.c/Process_Data_From_Master_uP() it worked. Also make sure your not in disabled mode. I made the that mistake earlier this week
user_routines.c/User_Initialization()
digital_io_18 = INPUT; //DIGITAL I/O set to input;
Good luck
|