refactor DigitalInputBlock
add INPUT_PULLUP block
support input pull up