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.
Dependents: m3Dpi MQTT-Thermostat-example Final_project_Tran Final_project_Tran ... more
Diff: Color.h.orig
- Revision:
- 6:b5a88296bc50
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Color.h.orig Thu Nov 19 08:16:58 2015 +0000
@@ -0,0 +1,30 @@
+
+#ifndef COLOR_H
+#define COLOR_H
+
+class Color
+{
+
+ int red;
+ int green;
+ int blue;
+
+ void setColor(int red, int green, int blue);
+
+public:
+
+ enum Colors {RED = 0xFF0000, GREEN = 0x00FF00, BLUE = 0x0000FF, CYAN = 0x00FFFF, MAGENTA = 0xFF00FF, YELLOW = 0xFFFF00, WHITE = 0xFFFFFF, BLACK = 0x000000};
+
+ Color(int red, int green, int blue);
+ Color(float red, float green, float blue);
+ Color(int hexColor);
+
+ int getHex();
+
+ int getRed();
+ int getGreen();
+ int getBlue();
+
+};
+
+#endif