Arduino-based Whack-a-LED game using a Wio Terminal

preview_player
Показать описание
[Issue 54] In this month's issue, we build three projects using the handy Wio Terminal from Seeed Studio.

In this second project, we make a minigame with the Wio’s inbuilt accelerometer, GPIO and LCD screen.

Our program will be like the classic carnival game Whack-A-Mole, except here we’re trying to whack LEDs instead, of course. 9 ‘Holes’ fit comfortably on the Wio Terminal’s screen, so we can simply use the inbuilt accelerometer to determine which square the Wio is currently tilted towards.

To demonstrate that GPIO control is easy to accomplish with the Wio Terminal, we’re also going to be adding a simple green and red LED to show if a player was successful or not after pressing the centre button of the directional pad to signify a ‘whack’.

Рекомендации по теме
visit shbcf.ru