arduino light code
thread stuff