import time
import Edison.i2c as I2C
import Edison.gpio as GPIO
import Edison.spi as SPI
import ads1015
import sharp2y0a21
import screen
import ILI9341 as TFT
import watchout_screen
import proximity_warning
import twitter_screen
import tag_screen
import gplus_screen

class pycon():

    def __init__(self):
        self.init_display()
        self.init_screens()
        while 1:
            self.screens[self.current_screen].update()
            self.disp.display(self.screens[self.current_screen].img)
            time.sleep(60*1)
            self.current_screen = (self.current_screen + 1) % len(self.screens)

    def init_display(self):
        dc = GPIO.gpio(4, GPIO.OUT)
        rst = GPIO.gpio(13, GPIO.OUT)
        self.disp = TFT.ILI9341(dc, rst=rst, spi=SPI.spi(5, 0, speed=5000000))
        self.disp.begin()

    def init_screens(self):
        self.tag = tag_screen.tag_screen()
        self.watchout = watchout_screen.watchout_screen()
        self.twitter = twitter_screen.twitter_screen()
        self.gplus = gplus_screen.gplus_screen()
        self.screens = [self.tag, self.watchout, self.twitter, self.gplus]
        self.current_screen = 0

if __name__ == "__main__":
    main = pycon()

Add the basic main program for the Pycon
Add the basic main program for the Pycon
