Git Product home page Git Product logo

snrnothere16 / arcadestickwithscreen Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 22.69 MB

The following is a HID 15 button arcade stick with an LCD Screen. The tm4c123gxl microcontroller is used for this project.

Makefile 3.43% C 96.26% Batchfile 0.31%
tm4c123gxl tm4c123gh6pm game mcu microcontroller arcade-controller game-controller hid button mame st7735 c codecomposer code-composer-studio

arcadestickwithscreen's Introduction

The following is a 15 button arcade stick using the tiva TM4C123GXL microcontroller. This project has been created without the screen. If you would like to just use the buttons check out this repository https://github.com/SnrNotHere16/ArcadeStickWithoutScreen

15 Button Arcade Stick with Analog thumb Joystick

15 Button Arcade Stick Game Mode: Used while playing the game

Initially, I had the idea of having the LCD (ST7735) screen print out the controller's input as the player played the game. Unfortunately that resulted in the game having input lag. So I decided to seperate the game modes into two seperate modes (game mode and print button mode).

Host connected indicates the driver connected successfully. A blinking green LED on the TM4C123GXL also indicates the driver is succesfully connected.

15 Button Arcade Stick Print Mode: input is delayed if playing game

The following mode prints out the button pressed at the moment onto the LCD screen. The mode is activated by pressing button fifteen (top small yellow button). As stated before, the player can play with this mode but the input is delayed. In order to get out of print mode, the user must power off the device and restart it.

Testing inputs

The best way to test the inputs is to type "Set up USB game controllers" into the windows search bar. This should prompt this screen.

Pressing the buttons and moving the thumbstick should be read by the screen.

Schematic

Additional Images

Simple Setup

  1. Open LM Flash Programmer

2. Select TM4C123G LaunchPad

3. Make sure you Tiva c is connected and in DEBUG mode. Go to "Program" and place the bin file ("usb_dev_gamepadWLCD.bin"), which is located in this repository, in "Select .bin file" and click "Program"

4. Disconnect the tiva c and connect it in DEVICE mode. To see if the installation is succesful, type "Set up USB game controllers" into the windows search bar. This should prompt this screen. The tiva c should flash it's green LED.

arcadestickwithscreen's People

Contributors

snrnothere16 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

arcadestickwithscreen's Issues

Errors in startup.ccs.c and usb_dev_gamepad.c when compiling

Hello!
I'm using this project as a base for a project of my own, and it feels like I'm missing a .h file or something.
When compiling I'm given a list of errors, some for startup.ccs.c, and a pile for usb_dev_gamepad.c.
Attached is a photo of my error printout, any clue as to what I'm doing wrong?
Thanks for your help!
Screenshot 2022-02-15 173906

Missing ST7735.h

Hi, Nice project.
I wanted to build this as an example of a CCS project using Git.
Found there are no CCS project files in the repo - no problem I created a new project and added the Tivaware headers to resolve some missing header problems.
But no ST7735.h to be found in the repo and not surprisingly in the TI directories.
Could you add it to you repo or should others collect this from ST?
Would be nice to have project setup and build comments in the readme.

Missing Majority of .h Files

Hello!
This project looks fantastic, and I was hoping to use it as a base for a project I myself am working on.
I'm having a lot of trouble getting this thing to compile in Keil uVision though, with every change I'm getting more errors for missing .h files. hw_gpio, hw_nvic, hw_memmap, ADC_Module, usbhid, usblib, the list goes on and on.
Is it possible you have a more complete version of this project? It seems most of the .h files listed right at the start of usb_gamepad_strucs.c, usb_dev_gamepad.c, and startup_ccs.c aren't included.
Thanks so much for your help.

Edit: Apologies, I just need the master driver libraries.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.