VERSIONNUMBER = "Pi003" import sys import os import time from pubnub.pubnub import PubNub from pubnub.pubnub import PNConfiguration # Check for user imports try: import conflocal as config except ImportError: import config pnconf = PNConfiguration() pnconf.subscribe_key = config.Pubnub_Subscribe_Key pnconf.publish_key = config.Pubnub_Publish_Key pubnub = PubNub(pnconf) # lcd import grove_lcd as lcd import RPi.GPIO as GPIO #set up GPIO using BCM numbering GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False)