writes 7 lines and turns lines on with gpio