Skip to content

PartsandCircuits/M5Stack-Tetris-using-RCWController

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

M5Stack-Tetris-using-RCWController



About

  • 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


Requirements

  • Any M5Stack model
  • an iPhone
  • Arduino IDE
  • Tested working with M5Stack library ver 0.2.0

Setup

  1. 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.
  2. Edit the code: enter your WiFi details - SSID and password. Save & upload the sketch to the M5Stack.
  3. Grab an iPhone. Go to the Apple store. Search for RCWController. Install.
  4. 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.
  5. 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.

Controls

  • 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


Credits

About

Play Tetris on an M5Stack using the RCWController iPhone app to control the action.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published