Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO Powered ILI9341 Game Display with Pushbutton Controls

View and Edit Project In Cirkit DesignerImage of Arduino UNO Powered ILI9341 Game Display with Pushbutton Controls

Circuit Documentation

Summary

This circuit is designed to interface an ILI9341 display with an Arduino UNO microcontroller, utilizing multiple pushbuttons for user input. The circuit includes resistors for pull-up or pull-down configurations to ensure stable button readings. The microcontroller runs a game application that utilizes the display for graphics and user interaction.


Component List

1. ILI9341

2. Arduino UNO

3. Pushbutton

4. Resistor (200 Ohms)


Wiring Details

ILI9341 Connections


Arduino UNO Connections


Pushbutton Connections


Resistor Connections


Documented Code

Main Game Code

/*
    MIT License

    Copyright (c) 2018-2019, Alexey Dynda

    Permission is hereby granted, free of charge, to any person obtaining a copy
    of this software and associated documentation files (the "Software"), to deal
    in the Software without restriction, including without limitation the rights
    to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the Software is
    furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in all
    copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    SOFTWARE.
*/

#include "game_basic.h"
#include "ninja.h"
#include "sprites.h"

// Uncomment if you want to use gpio buttons
#define USE_GPIO_BUTTONS

// Game setup and loop functions
void setup() {
    // Initialization code
}

void loop() {
    // Main game loop
}

Additional Code Files


This documentation provides a comprehensive overview of the circuit, detailing each component, its connections, and the code that drives the functionality of the system.