writing frames to teensy
c++ implementation is somehow slower than python on osx...