local state = 3
while true do
  os.sleep(1.5)
  redstone.setBundledOutput("right", state)
  state = bit.bor(
    bit.band(bit.brshift(state, 8), 1),
    bit.band(bit.blshift(state, 1), 511))
  print (state)
end
