Embedded Systems Lecture Example Code for an Odd Ones Finite State Machine Implementation