Preloaded: Shad.py

Trying to figure out what Shad.py is up to? Take a look at the code!

Author: Chris Moraes

Difficulty: 2 of 4; for internet connectivity, some funky time-math.

Download: Shad.m5f

Some interesting items in this code!

  • It references an image “ShadMcGill.jpg“. This file needs to be uploaded to the m5 device separately, using the m5 manager:
  • it uses the init ntptime block – this command logs into a “Time Server”, and downloads the current time as a standard Time Code (or Timestasmp), that can then be mathematically manipulated. It connects once at the start of the program; and then repeatedly “Get TimeStamp” every time the loop is repeated.