Simple driving code for ChiLin