from machine import Pin
import time
from rp2 import PIO, StateMachine, asm_pio

PIN_BASE = 10

@asm_pio(sideset_init=PIO.OUT_HIGH, out_init=PIO.OUT_HIGH, out_shiftdir=PIO.SHIFT_RIGHT)
def uart_tx():

   pull()
   label("loop")
   set(x,7)  .side(0)   
   nop()
   set(pins, 1)
   set(pins, 0)

   out(y,1)
   jmp("loop")

for i in range(1, 7):
   print("Hello, Pi Pico!" + str(i)+ "  " + str(i+1))

for i in range(1, 7):
   print("Hello, Uwe!" + str(i)+ "  " + str(i+1))

sm = StateMachine(0,uart_tx, freq=2000, sideset_base=Pin(PIN_BASE), out_base=Pin(10))
sm.active(0)

sm.put(10)
sm.put(128)
sm.put(64)
sm.put(16)


BOOTSELLED1239USBRaspberryPiPico©2020RP2-8020/21P64M15.00TTT
D0D1D2D3D4D5D6D7GNDLOGIC