man that was quick, didn't expect a diagram so soon, thank youHere is a possible design using standard CMOS circuits:
This takes six ICs.
Still a lot easier to do with one IC.
didn't realize it would take 6 ICs... when you state a micro-controller, you mean like an Arduino or something?