Refactor for new pin assignments

Also add macros for disabling assertions