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:
- 30:c0bc92d009fe
- Parent:
- 29:9c0339e3c593
- Child:
- 32:9a4046224b11
--- a/Block.cpp Tue Dec 01 22:56:08 2015 +0000 +++ b/Block.cpp Tue Dec 01 23:50:29 2015 +0000 @@ -46,7 +46,9 @@ } Block::Block(Size size, BlockColour blockColour){ - this = Block(); + this->minColour = Colour(); + this->averageColour = Colour(); + this->maxColour = Colour(); this->colour = blockColour; this->size = size; }