Commit c1899be2 authored by Stefan Haun's avatar Stefan Haun
Browse files

Sphinx comments

parent 4d02d641
Pipeline #4141 passed with stages
in 1 minute and 20 seconds
......@@ -1267,31 +1267,65 @@ enum disp_fillstyle {
/** Height of display in pixels */
#define DISP_HEIGHT 80
/** Color handling **/
/**
* Get the red component of an RGB888 color.
*
* :param x: RGB888 color
* :return: red color component
*/
#define COLOR_GET_RED(c) (c & 0x00ff0000) >> 16
/**
* Get the green component of an RGB888 color.
*
* :param x: RGB888 color
* :return: green color component
*/
#define COLOR_GET_GREEN(c) (c & 0x0000ff00) >> 8
/**
* Get the blue component of an RGB888 color.
*
* :param x: RGB888 color
* :return: blue color component
*/
#define COLOR_GET_BLUE(c) (c & 0x000000ff)
/**
* Convert RGB888 to RGB565
*
* :param c: RGB888 color to be converted
* :return: RGB565 color
*/
#define COLOR_TO_565(c) \
((COLOR_GET_RED(c) >> 3) | \
(COLOR_GET_GREEN(c) >> 2) | \
(COLOR_GET_BLUE(c) >> 3))
/** CCCamp 2019 Colors */
/** CCCamp 2019 Color CHAOSBLUE */
#define COLOR_CHAOSBLUE 0x0076ba
/** CCCamp 2019 Color CHAOSBLUE_DARK */
#define COLOR_CHAOSBLUE_DARK 0x005383
/** CCCamp 2019 Color COMMYELLOW */
#define COLOR_COMMYELLOW 0xffc600
/** CCCamp 2019 Color COMMYELLOW_DARK */
#define COLOR_COMMYELLOW_DARK 0xd39a00
/** CCCamp 2019 Color CAMPGREEN */
#define COLOR_CAMPGREEN 0x99ba00
/** CCCamp 2019 Color CAMPGREEN_DARK */
#define COLOR_CAMPGREEN_DARK 0x6f8700
/** 35C3 Colors */
/** 35C3 Color FRESH */
#define COLOR_FRESH 0x0084b0
/** 35C3 Color HOPE */
#define COLOR_HOPE 0x00a356
/** 35C3 Color GLINT */
#define COLOR_GLINT 0xf9b000
/** 35C3 Color BEAT */
#define COLOR_BEAT 0xe40429
/** 35C3 Color TENACITY */
#define COLOR_TENACITY 0x44357e
/** 35C3 Color BASE */
#define COLOR_BASE 0x18386b
/** 35C3 Color REBOOT */
#define COLOR_REBOOT 0x4d4d4c
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment