Move assert() to a slightly better place
Add initial support for digital pins