In this tutorial you will install a smal game (Pong) on your Raspberry Pi, which can be played with two physical controllers on a web-visualisation. This example uses two KY040 rotary encoders as input. But you can use virtually every analog input as the input controlers.
After opening CODESYS Development System V3 and adding the CODESYS Control for Raspberry Pi SL,
go to Tools -> Library Repository and Install the library, you have downloaded.
Go to Tools -> Update Raspberry Pi and scan in your network for Raspberry Pis and choose the correct one. Notice/copy the IP.
Now connect to your Raspberry Pi. Therefor double click on "Device" and choose on the new window your Raspberry Pi as your controller.
By pressing Alt + F8 you log in. Now start (F5).
Write in your Browser the IP-Adress and append :8080/webvisu.htm, now it should look like this: IP-ADRESS:8080/webvisu.htm
Game instructions:
Press on one KY040 to start the game. The player who reaches 13 points first wins.