ECE2036 Lab5 (SHIP Game)
Dependencies: 4DGL-uLCD-SE mbed PinDetect SDFileSystem mbed-rtos
Fork of mythermostat by
This is a Lab assignment for ECE 2036. This program uses the object oriented methodology to design a LAME attack ship game. Pushbuttons, speaker and uLCD are used in LPC1768. Sample video is posted by the instructor to assist the design of this Game at: https://youtu.be/d8ekTKvMWqw
Diff: Shiftbrite.h
- Revision:
- 5:d6c2e01b0596
- Parent:
- 4:9a4d22a279b3
--- a/Shiftbrite.h Thu Jan 23 16:47:05 2014 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,26 +0,0 @@ -#include "mbed.h" - -//Setup a new class for a Shiftbrite RGB LED module -class Shiftbrite -{ -public: - Shiftbrite(PinName pin_e, PinName pin_l, PinName pin_do, PinName pin_di, PinName pin_clk); - void write(int red, int green, int blue); - -private: -//class sets up the pins - DigitalOut _pin_e; - DigitalOut _pin_l; - SPI _spi; -}; - -Shiftbrite::Shiftbrite(PinName pin_e, PinName pin_l, PinName pin_do, PinName pin_di, PinName pin_clk) - : _pin_e(pin_e), _pin_l(pin_l), _spi(pin_do, pin_di, pin_clk) -{ - // ADD CODE HERE -} - -void Shiftbrite::write(int red, int green, int blue) -{ - // ADD CODE HERE -}