[riot-notifications] [RIOT-OS/RIOT] Add color depth types to disp_dev API (#14054)

Philipp-Alexander Blum notifications at github.com
Mon May 11 11:45:51 CEST 2020


@Citrullin commented on this pull request.



> +    24_BIT_TRUE_COLOR
+} disp_dev_color_depth_t;
+
+/**
+ * @brief Type to hold a pixel for monochrome data
+ */
+typedef struct {
+    bool color;
+} disp_dev_pix_mono_t;
+
+/**
+ * @brief Type to hold a pixel for 2bit color data
+ */
+typedef struct {
+    bool black;
+    bool color;

Not sure about this though. Maybe storing it in one `uint8_t` is better. Or maybe two booleans is better for the compiler to optimize.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/14054#pullrequestreview-409020310
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200511/4916e75c/attachment.htm>


More information about the notifications mailing list