Programming examples for M5 stack to controll G.C. H/W gamepad emulator.
G.C. H/W gamepad emulator can be controlled from not only GUI programming environment (e.g. Makecode, Node-RED), but also program. This repository contains UIFlow examples and micro python examples for M5 stack. In this case, we use M5 ATOM Lite to controll G.C. H/W gamepad emulator.
There are two methods,
- Network access
- Direct access
This method is easy to use.
- PC(win/mac/linux)
- M5 ATOM Lite
- G.C. H/W gamepad emulator
First, import chearsheet as predefined Node-RED flow to controll G.C H/W gamepad emulator. Then, import additional nodes as follows.
After that, edit "http request" node. The IP of the ATOM Lite should be set to the destination of "http request" node.
[{"id":"3e028b9e.123d9c","type":"binary-serializer","z":"bc27511e.4361e","name":"","x":520,"y":40,"wires":[["be30b221.ac7998","90b0e95d.93927"]]},{"id":"be30b221.ac7998","type":"base64","z":"bc27511e.4361e","name":"","action":"","property":"payload","x":560,"y":140,"wires":[["90b0e95d.93927","f996bd11.833e3"]]},{"id":"f996bd11.833e3","type":"template","z":"bc27511e.4361e","name":"","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"{\"cmd\":\"{{{payload}}}\"}\n","output":"json","x":660,"y":180,"wires":[["90b0e95d.93927","a2e2b61e.b5bbf"]]},{"id":"a2e2b61e.b5bbf","type":"http request","z":"bc27511e.4361e","name":"","method":"GET","ret":"txt","paytoqs":true,"url":"http://192.168.11.7","tls":"","persist":false,"proxy":"","authType":"","x":770,"y":220,"wires":[["90b0e95d.93927"]]}]Import this code to M5 ATOM Lite. Use M5 UIFlow environment to compile the code.
This method is best for low latency system.
Under construction...Toy sample is here.



