paulfjujo
Advanced Member level 4
- Joined
- Jun 9, 2008
- Messages
- 1,468
- Helped
- 298
- Reputation
- 596
- Reaction score
- 285
- Trophy points
- 1,363
- Location
- France 01800
- Activity points
- 10,632
hello,
mikroC :
Code C - [expand] 1 if (button_up == 0) or (button_down == 0) or (button_ok == 0)
mikroC :
if ( (button_up == 0) || (button_down == 0) || (button_ok == 0) )
or
dummy=(button_up == 0)+(button_Down== 0)+(button_ok == 0);
if (dummy>0) // No button ON;
if (dummy==3) // 3 button ON