from machine import Pin
import utime
button_pin = Pin(18, Pin.IN, Pin.PULL_UP)
switch_pin = Pin(15, Pin.IN)
while True:
print ("Push button:")
print(button_pin.value())
print("Slide Switch")
print(switch_pin.value())
utime.sleep(0.5)