communicate with the gpio of the opensprinkler pi device to push and update local station state to the device . concode_field_sep GpioPinDigitalOutput SR_DAT_OUTPUT_PIN concode_elem_sep GpioPinDigitalOutput SR_CLK_OUTPUT_PIN concode_elem_sep GpioPinDigitalOutput SR_NOE_OUTPUT_PIN concode_elem_sep GpioPinDigitalOutput SR_LAT_OUTPUT_PIN concode_elem_sep int numberOfStations concode_elem_sep boolean[] stationState concode_elem_sep boolean connectionOpen concode_elem_sep int firmwareVersion concode_elem_sep GpioController gpio concode_field_sep void closeStation concode_elem_sep int getFirmwareVersion concode_elem_sep void openConnection concode_elem_sep boolean isConnected concode_elem_sep void openStation concode_elem_sep int getNumberOfStations concode_elem_sep boolean isStationOpen concode_elem_sep boolean isRainDetected concode_elem_sep void pullStationState concode_elem_sep void closeConnection
void function ( ) { SR_CLK_OUTPUT_PIN . low ( ) ; SR_LAT_OUTPUT_PIN . low ( ) ; for ( int loc0 = 1 ; loc0 <= numberOfStations ; loc0 ++ ) { SR_CLK_OUTPUT_PIN . low ( ) ; SR_DAT_OUTPUT_PIN . setState ( stationState [ numberOfStations - loc0 ] ) ; SR_CLK_OUTPUT_PIN . high ( ) ; } SR_LAT_OUTPUT_PIN . high ( ) ; }