- 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
32 lines
761 B
C
32 lines
761 B
C
/*
|
|
* 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_ */
|