manush30
Member level 1
Hi friends,
I try to write a code but i sure there is more simple way to do it..
I have 8 components on my board that i can do them on/off switching.
I get 8bit register(each bit for each load) and choose wht of the load will activate.
I thought to do it with "case" statement but i will have a lots of states...
Can anyone advise for a better way to implement it..
I try to write a code but i sure there is more simple way to do it..
I have 8 components on my board that i can do them on/off switching.
I get 8bit register(each bit for each load) and choose wht of the load will activate.
I thought to do it with "case" statement but i will have a lots of states...
Can anyone advise for a better way to implement it..