adnan namal
Junior Member level 3
- Joined
- Dec 17, 2013
- Messages
- 26
- Helped
- 3
- Reputation
- 6
- Reaction score
- 3
- Trophy points
- 3
- Activity points
- 178
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 if (RA1_bit==1||RA4_bit==1) //if floor1 call button or button inside the lift for floor1 is pressed { delay_ms(40); initializepwm(); //function is call to initialize pwm up(); //function to move motor upward } if(RD5_bit==1) // "nested if" if sensor at floor1 is become 0 { delay_ms(40); stop(); //stop motor at floor1 }
Code C - [expand] 1 2 3 4 5 6 if(RA0_bit) { Delay_ms(40); down(); RC3_bit = 1; RD0_bit = 1; }
Code C - [expand] 1 2 3 4 5 6 7 8 9 if(RA0_bit) { Delay_ms(40); while(RA0_bit); down(); RC3_bit = 1; RD0_bit = 1; }
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?