from machine import Pin,SPI import time b0=Pin(9,Pin.IN) while(1): print("*********") print(b0.value()) time.sleep(1)