Skip to content

New Share your ideas with the AWTRIX community. Keep your creations together in your account.

Sign in

Which AWTRIX do you have? Choose it once and the Hub shows what runs on it.

FlowAWTRIX NG

[TC002] Auto Pong

On an AWTRIX display
[TC002] Auto Pong shown on an AWTRIX display
[TC002] Auto Pong · by bNjtHub

On your display

Self-playing Pong, first to 3: random players every match, the ball speeds up, place your bets!

Which AWTRIX do you have? See below where it runs, or choose your device.
Topic
Miscellaneous
Includes
Script

Runs on

  • Runs on Ulanzi TC001
  • Runs on Ulanzi TC002
  • Runs on ESP32 (DIY)
  • Runs on ESP32-S3 (DIY)
  • Does not run on Ulanzi TC001 with AWTRIX 3 Made for AWTRIX NG.

Choose your display in the next step.

Send to AWTRIX

Choose your AWTRIX

[TC002] Auto PongAWTRIX NG script

Install this script on your AWTRIX NG. Its icons and sounds are installed with it.

Your AWTRIX’s local address, for example 192.168.178.39 or awtrix.local.

The name shown in your AWTRIX script list. Use letters, digits, hyphens or underscores.

Connection & device login

Connect your phone or computer to the same network as your AWTRIX. Allow local network access if your browser asks.

Use the device’s IP address or hostname, without a page path such as /#/apps.

If your AWTRIX requires a login, the username and password fields will appear when you connect.

Sign in to the Hub to install scripts. Attached files are installed separately.

Flow description

A self-playing Pong match for your clock. Two computer players with random colours, paddle speeds and accuracy play first to 3, the ball speeds up with every return, and the winner's half flashes with WIN and the final score. A new pair of players is drawn for every match, so place your bets: the paddles blink during the intro while you pick your favourite.

Nothing to control, it plays by itself. It holds the app rotation for one rally at a time: the score is shown, then the clock moves on to the next app; when the rotation comes back, the match resumes with a serve.

Built for the Ulanzi TC002 (52x16 panel, blocks of 2x2 pixels). It also runs on a 32x8 matrix (1x1 pixel blocks): the geometry is computed from width() / height(). Based on KODIMAX's Auto Pong, adapted for the TC002.

Requirements

  • Ulanzi TC002 running an AWTRIX build with the Berry scripting engine (the AWTRIX NG port for the TC002, e.g. sanderdw/awtrix-ng-tc002). The script uses the Berry rotation.pause(), rotation.resume() and rotation.next() calls, which stock AWTRIX 3 does not have.
  • No icons, no external service, no settings.

Setup

  1. Open the AWTRIX web interface, go to Scripts and create a new script named AutoPong (or upload auto-pong.be).
  2. Paste the code and save. The app appears in the app loop as "Auto Pong".

Controls

None. Turning the knob still switches to the previous / next app as usual.

More flows for AWTRIX NG Scripts or Miscellaneous

Something wrong with this flow? Report it.