implemented GPIO dir and value, fixed pinmux data, added menu, exported function to js file