Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MMA8451Q TSI cc3000_hostdriver_mbedsocket NVIC_set_all_priorities mbed Multi_WS2811
Diff: ledCube.h
- Revision:
- 56:f95ec9baa4cb
- Parent:
- 55:0a16046b1485
diff -r 0a16046b1485 -r f95ec9baa4cb ledCube.h --- a/ledCube.h Fri Dec 12 19:44:18 2014 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,40 +0,0 @@ -#include "mbed.h" -#include "WS2811.h" -#include "CubeUpdateParameters.h" - -#pragma once - -class LedCube -{ - public: - LedCube(); - ~LedCube(); - void Init(int x, int y, int z); - int getLedIndex(int panel, int x, int y); - void updateLEDs(bool on, int size, int x, int y, int z); - void updateLEDsOld(bool on, int size, int x, int y, int z); - void cubeUpdate(); - void UpdateCube(int size, int deltaX, int deltaY, int deltaZ, float hue); - void UpdateCube2(CubeUpdateParameters cubeParams); - int move(int deltaX, int deltaY, int deltaZ); - void changeColor(float hue); - void changeSize(int newSize); - - private: - unsigned const X; - unsigned const Y; - unsigned const Z; - int pos[3]; - int prevPos[3]; - int size; - int prevSize; - - float saturation; - float brightness; - uint8_t r; - uint8_t g; - uint8_t b; - WS2811 ledStrip1; - WS2811 ledStrip2; - -}; \ No newline at end of file