3rd year group project. Electronic and Electrical Engineering. Heriot-Watt University. This is the code for the mbed for the Automatic Little Object Organiser (ALOO).
Dependencies: MCP23017 TCS3472_I2C WattBob_TextLCD mbed
Block.cpp
- Committer:
- dreamselec
- Date:
- 2015-11-16
- Revision:
- 6:98fe30430194
- Child:
- 7:b6e31bfdb2af
File content as of revision 6:98fe30430194:
/* * Block.cpp * * Created on: 16 Nov 2015 * Author: chandansiyag */ #include "Block.h" Block::Block(){ size = Size::Small; } Block::Block(Size size) { // TODO Auto-generated constructor stub this->size = size; } Block::Block(const Block& rhs){ minColour = Colour(rhs.minColour); maxColour = Colour(rhs.maxColour); size = rhs.size; } Block::~Block() { // TODO Auto-generated destructor stub } Colour::Colour(){ setRed(0); setBlue(0); setGreen(0); setAlpha(0); } Colour::~Colour(){ } Colour::Colour(const Colour& rhs){ setRed(rhs.getRed()); setBlue(rhs.getBlue()); setGreen(rhs.getGreen()); setAlpha(rhs.getAlpha()); }