Improve code style
Add initial digital pin controller
Disable checkboxes if mode is not set