import time
from machine import Pin
import rp2
from MCP3202 import MCP3202
@rp2.asm_pio()
def blink_irq():
irq(4)
set(x, 31) [5]
label("delayLoop")
nop() [29]
jmp(x_dec, "delayLoop")
sm0 = rp2.StateMachine(0, blink_irq, freq=10000)
sm0.active(1)
adc = MCP3202(1)
lr = Pin(1, Pin.OUT)
while(True):
lr.toggle()
x = adc.get()
print(hex(x))
ERC Warnings
flop1:CLK: Clock driven by combinatorial logic
flop2:CLK: Clock driven by combinatorial logic
flop3:CLK: Clock driven by combinatorial logic