Is there a sample app using gpio pin?

You can use sysfs command to control gpio