added setDigitalValue method