- Fixed drawing of round objects (Circles, Rounded Rects) using a lookup table
- 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
This commit is contained in:
36
Firmware/Hue.h
Normal file
36
Firmware/Hue.h
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* 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_ */
|
||||
Reference in New Issue
Block a user