More cleanup
Add state type for compile time checking for DigitalWrite()