import machine
import time
from utime import sleep
from simple import MQTTClient
from picozero import pico_led
from picozero import LED
from picozero import Speaker
from picozero import Button
from picozero import Switch
from picozero import Pot # Pot is short for Potentiometer
from machine import Pin, I2C
import dht
from math import trunc
import network
import config
import time
import network
import utime
import sys
import ujson
print("Libraries Declared")
#Declare GPIO usage
#Buttons
B0 = Button(16) #0
B1 = Button(17) #1
B2 = Button(18) #2
#LEDs
D0 = LED(07)
D1 = LED(08)
D2 = LED(09)
D3 = LED(10)
D4 = LED(11)
D5 = LED(12)
D6 = LED(13)
D7 = LED(14)
D8 = LED(15)
#Switches
SW0 = Button(16)
B1 = Button(17)
B2 = Button(18)
print("GPIO Pins Declared")
## Pin interrupt handler
#
# A function to handle pin interrupts
# Expects a machine.Pin type parameter
def interrupt_callback(pin):
pass
def main():
# a tiny sleep to allow the first print to be displayed
sleep(0.01)
print('Program starting')
# code below here
if __name__ == "__main__":
main()