from machine import Pin
import time
b1 = Pin(1, Pin.IN,Pin.PULL_UP)
b2 = Pin(2, Pin.IN,Pin.PULL_UP)
b3 = Pin(3, Pin.IN,Pin.PULL_UP)
b4 = Pin(4, Pin.IN,Pin.PULL_UP)
b5 = Pin(5, Pin.IN,Pin.PULL_UP)
b6 = Pin(6, Pin.IN,Pin.PULL_UP)
b7 = Pin(7, Pin.IN,Pin.PULL_UP)
while (1):
print("========================")
print("BUTTON 1 = ",b1.value())
print("BUTTON 2 = ",b2.value())
print("BUTTON 3 = ",b3.value())
print("BUTTON 4 = ",b4.value())
print("BUTTON 5 = ",b5.value())
print("BUTTON 6 = ",b6.value())
print("BUTTON 7 = ",b7.value())
time.sleep(1)