Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tcdowney/thelittlehaskells
A "Vertical Space Scroller" game for the STM32VL-DISCOVERY microcontroller.
https://github.com/tcdowney/thelittlehaskells
Last synced: 6 days ago
JSON representation
A "Vertical Space Scroller" game for the STM32VL-DISCOVERY microcontroller.
- Host: GitHub
- URL: https://github.com/tcdowney/thelittlehaskells
- Owner: tcdowney
- Created: 2012-12-17T19:43:18.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-01-28T02:31:52.000Z (almost 12 years ago)
- Last Synced: 2024-11-08T23:09:20.176Z (2 months ago)
- Language: C
- Size: 1.19 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
the little haskells
=========For my [C335 Computer Structures](http://cgi.cs.indiana.edu/~geobrown/c335) course at IU, we developed a suite of "drivers" in C for the STM32VL-Discovery microcontroller in accordance with the course's [lab manual](http://www.cs.indiana.edu/~geobrown/book.pdf).
Our final project was to create a simple game for the board using an [Adafruit 1.8" LCD](https://www.adafruit.com/products/358) as the display, Wii nunchucks for player control, and the chip's onboard DAC capabilities to output audio.
The game's name, "The Little Haskells," was meant to be a tongue-in-cheek reference to The Little Rascals. The Little Haskells are a crack team of "rockstar programmers" who defend America through the power of buzzwords. The objective of the game is to pilot a ship through enemy networks and survive long enough to "reverse hack" into their systems.
[Here is a demo video of the game running.](http://www.youtube.com/watch?v=iOoo_a4vqDI)
Components
-----------
The following components are required to play the game:* [STM32VL-DISCOVERY](http://www.st.com/internet/evalboard/product/250863.jsp) - an ARM Cortex-M3 based microcontroller.
* [Adafruit 1.8" LCD with Micro SD card reader](https://www.adafruit.com/products/358) - a basic lcd screen with a Micro SD card slot. The Adafruit model was selected because it came with some basic driver code that was translated to C.
* [Wii Nunchuck Adapter](https://www.adafruit.com/products/345) - although our PCB was designed to have two nunchuck adapters built in, they are essentially the same as the "Nunchucky" adapters on Adafruit.
* Speaker and Potentiometer - we used a cheap speaker to provide audio and a potentiometer to modulate the volume. Since "The Little Haskells" only plays simple tones, I'm looking into using a piezoelectric buzzer instead.Additionally, we used the [FatFS file system](http://elm-chan.org/fsw/ff/00index_e.html) to load and read files from the SD card.
Installation
--------------
1. First download the STM standard libraries: [STM32F10x_StdPeriph_Lib_V3.5.0](http://www.st.com/internet/com/SOFTWARE_RESOURCES/SW_COMPONENT/FIRMWARE/stm32f10x_stdperiph_lib.zip)
2. Next download the [CodeSourcery GNU toolchain Lite Edition](http://www.mentor.com/embedded-software/sourcery-tools/sourcery-codebench/editions/lite-edition/)
3. Clone the [STM32-Template repository](https://github.com/geoffreymbrown/STM32-Template).
4. Modify the Tool path and Library path in `Makefile.common` to point to the CodeSourcery toolchain and STM32 standard peripheral libraries.
5. Edit the `Makefile` in the "thelittlehaskells" repository to point to your cloned STM32-Template.
6. Transfer the contents of the `Assets` folder to the root level of your micro SD card.
7. Properly wire your components (coming soon...)