fixup example code based on changes to gpio.h
add cycle count for each instruction in the comment