- 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:
31
Firmware/Switch.h
Normal file
31
Firmware/Switch.h
Normal file
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Switch.h
|
||||
*
|
||||
* Created: Sat Jan 28 2023 15:21:20
|
||||
* Author Chris
|
||||
*/
|
||||
#ifndef SWITCH_H_
|
||||
#define SWITCH_H_
|
||||
|
||||
// ============================================================================================
|
||||
// Includes
|
||||
#include <stdbool.h>
|
||||
|
||||
|
||||
// ============================================================================================
|
||||
// Defines
|
||||
#define SWITCH_USE_INTERNAL_PULLUP true
|
||||
#define SWITCH_NO_INTERNAL_PULLUP false
|
||||
|
||||
|
||||
// ============================================================================================
|
||||
// Datatypes
|
||||
|
||||
|
||||
// ============================================================================================
|
||||
// Function Declarations
|
||||
void Switch_Init(bool use_pullup);
|
||||
|
||||
bool Switch_Press_Occurred(void);
|
||||
|
||||
#endif /* SWITCH_H_ */
|
||||
Reference in New Issue
Block a user