replaced references to digitalWrite