Fix bug in GPIO example.