Arduino code for SCSD device