0944デフォルトの名無しさん (ワッチョイ df9d-wl/W)垢版 | 大砲2018/03/02(金) 15:56:09.38ID:IwZ3DIkv0 100msecのタイマー割り込みの中でこういうのを順番に実行する。 void timer1(){ switch( state){ case 0: if( do1() ){state++;}; break; case 1: if( do2() ){state++}; break; case 2: if( do2() ){state=0}; break; } } 何かもっとスマートな書き方はないか?