![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
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
Diff: Block.cpp
- Revision:
- 6:98fe30430194
- Child:
- 7:b6e31bfdb2af
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Block.cpp Mon Nov 16 05:10:17 2015 +0000 @@ -0,0 +1,44 @@ +/* + * 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()); +}