dinesh19
Newbie level 3
- Joined
- Aug 9, 2014
- Messages
- 3
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 18
this is sample coding
output
1sec led on 5sec led off
2sec led on 5sec led off
3sec led on 5sec led off
just this program change to this type of output
3sec led on 5sec led off
6sec led on 5sec led off
9 sec led on 5sec led off
can u help me..
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 if(Count < ON_Limit) { Count++; P1.3 = ~P1.3; OFF_Count = 0; } else if(OFF_Count <5) { OFF_Count++; P1.3 = 1; } else { ON_Limit = ON_Limit + 2; P1.3 = 0; if(ON_Limit >6) ON_Limit = 1; Count = 1; OFF_Count = 0; }
1sec led on 5sec led off
2sec led on 5sec led off
3sec led on 5sec led off
just this program change to this type of output
3sec led on 5sec led off
6sec led on 5sec led off
9 sec led on 5sec led off
can u help me..
Last edited by a moderator: