summaryrefslogtreecommitdiffstats
path: root/keyboards/handwired/ortho60/hsv2rgb.h
diff options
context:
space:
mode:
authorAndrew Kannan <andrew.kannan@klaviyo.com>2018-12-18 11:26:43 -0500
committerDrashna Jaelre <drashna@live.com>2018-12-18 08:26:43 -0800
commit20e134e6817f2927dfa146524f84335b0b7cced3 (patch)
tree8400bae1bc4a240148bbb2facd4355a4bbc8c889 /keyboards/handwired/ortho60/hsv2rgb.h
parent398204b2a03bdac68fccb6f7592ed3ea52741ce5 (diff)
Keyboard: Adding ortho60 to handwired (#4672)
* Adding ortho60 to handwired * update to use LAYOUT_ortho_5x12 * Address PR comments about layout macros * Add default layout to info.json for configurator * Hack to xyverz layout until RGB branch is merged * Fix undef RGBDIPIN in xyverz 12x5 layout * Revert change to xvyerz's layout * Fix typo * Fix order * Revert xyverz rules.mk
Diffstat (limited to 'keyboards/handwired/ortho60/hsv2rgb.h')
-rw-r--r--keyboards/handwired/ortho60/hsv2rgb.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/keyboards/handwired/ortho60/hsv2rgb.h b/keyboards/handwired/ortho60/hsv2rgb.h
new file mode 100644
index 0000000000..99566c32c0
--- /dev/null
+++ b/keyboards/handwired/ortho60/hsv2rgb.h
@@ -0,0 +1,23 @@
+/* hsv2rgb.h
+ * Convert Hue Saturation Value to Red Green Blue
+ *
+ * Programme de convertion d'une information HSV en RGB
+ */
+#ifndef HSV2RGB_H
+#define HSV2RGB_H
+
+typedef struct {
+ unsigned char h;
+ unsigned char s;
+ unsigned char v;
+} hsv_color;
+
+typedef struct {
+ unsigned char r;
+ unsigned char g;
+ unsigned char b;
+} rgb_color;
+
+rgb_color hsv2rgb(hsv_color hsv);
+
+#endif \ No newline at end of file