Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- df_list = df_latest.values.tolist()
- if len(df_list) >> 0:
- for row in range(len(df_list)):
- #print df_list[row]
- if ('#IMEC18 spy' in str(df_list[row])):
- imageToDisplay= Image_Setup("spy")
- print ("show spy")
- if ('#IMEC18 kaboom' in str(df_list[row])):
- imageToDisplay= Image_Setup("kaboom")
- print("show kaboom")
- if ('#IMEC18 drop' in str(df_list[row])):
- imageToDisplay= Image_Setup("dropin")
- print("show dropin")
- if ('#IMEC18 sneaky' in str(df_list[row])):
- imageToDisplay= Image_Setup("sneaky")
- print("show sneaky")
- def Image_Setup(imageString):
- """device = Adafruit_NeoPixel(256)
- device.setBrightness(0.01)"""
- intel_blue=[0,0,255]
- black=[0,0,0]
- white=[255,255,255]
- red=[255,0,0]
- image = Translate_Image(imageString)
- return image
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement