指定した時間(ミリ秒)だけ処理を停止します。
io = Plato::DigitalIO.new(0) a = 1 10.times { io.write(a) a ^= 1 Plato::Machine.delay(100) # 100ミリ秒停止します }