- Added function to read out the display_buffer via USB-Serial - Added basic structure and files for later complete firmware (still in progress) - Added Doc folder with schematic in it - Added Python script and batch file to read out the display buffer and open the image in gimp
37 lines
772 B
C
37 lines
772 B
C
/*
|
|
* Hue.h
|
|
*
|
|
* Created: Sun Jan 29 2023 10:49:43
|
|
* Author Chris
|
|
*/
|
|
#ifndef HUE_H_
|
|
#define HUE_H_
|
|
|
|
// ============================================================================================
|
|
// Includes
|
|
#include <stdlib.h>
|
|
#include <stdbool.h>
|
|
#include <inttypes.h>
|
|
|
|
#include "pico/types.h"
|
|
|
|
|
|
// ============================================================================================
|
|
// Defines
|
|
#define HUE_MAX_ANGLE 360
|
|
|
|
|
|
// ============================================================================================
|
|
// Datatypes
|
|
typedef uint Pixel_Value;
|
|
|
|
|
|
// ============================================================================================
|
|
// Function Declarations
|
|
Pixel_Value Hue_Get_Color_From_Angle(int hue_angle);
|
|
|
|
|
|
|
|
|
|
#endif /* HUE_H_ */
|