from machine import Pin, bitstream from time import sleep timing = [300, 900, 700, 500] np = Pin(12, Pin.OUT) N = 12 X = bytearray([10,20,30]) for i in range(1,N): X.exend(bytearray([1,2,3]) bitstream(np, 0, timing, X)