universal gpio interface for lua