This small lib emulates the behavior of the hx2262 (pt2262) encoder chip which is often used in R/C Power Outlets