-
Use an iPhone based virtual gamepad - RCWController - to control and play Tetris on an M5Stack via a WiFi connection.
-
Video demonstration - this also includes a link to the original source of the code provided here.
-
Details about the RCWController app are outlined here
- Any M5Stack model
- an iPhone
- Arduino IDE
- Tested working with M5Stack library ver 0.2.0
- Clone or download code above to your Arduino "sketchbook" directory. Make sure the extra file - tetris_img.c - is in the same directory as the sketch file - M5Stack_Tetris_RCWController.ino. Open the sketch in the Arduino IDE.
- Edit the code: enter your WiFi details - SSID and password. Save & upload the sketch to the M5Stack.
- Grab an iPhone. Go to the Apple store. Search for RCWController. Install.
- Turn M5Stack on. It will attempt to establish a WiFi connection. If succcessful the IP address now in use by the M5Stack will be displayed on the M5Stack screen.
- Open the RCWController app. Note the green button in the middle of the screen between the "Select" and the "Start" button. Press twice & the IP address setup screen will appear. Enter the IP address being used by the M5Stack. Press the "Connect" button on the bottom right of the screen.
-
To start the game, press the "B" button on the RCWController.
-
To play a new game, restart the M5Stack & press the "B" button.
-
Gamepad = Up, down, left, right
-
A or B button = rotate Tetris piece
-
RCWController app by Micono Utilities
-
RCWController support for Tetris on the M5Stack by Micono Utilities
-
Tetris ported to M5Stack by Macsbug - https://macsbug.wordpress.com/
-
Tetris originally from MhageGH - https://github.com/MhageGH/esp32_ST7735_Tetris