Files
RP2350_MIDI_Lighter/Firmware/Core1_LED_Enable.h
Chris 128d42c586 - 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
2025-09-07 08:55:39 +02:00

43 lines
1.0 KiB
C

/*
* File: Core1_LED_Enable.h
* Created: Created: Wednesday August 2025 21:56:15
* Author: Chris
*/
#ifndef CORE1_LED_ENABLE_H
#define CORE1_LED_ENABLE_H
// ============================================================================================
// Includes
#include <stdint.h>
#include <stdbool.h>
// ============================================================================================
// Defines
// ============================================================================================
// Datatypes
typedef enum {
UNDEFINED,
NO_ERROR,
BUS_NO_SUPPLY,
BUS_UNDERVOLTAGE,
BUS_OVERVOLTAGE,
OVERCURRENT,
BUS_VOLTAGE_MEASUREMENT
} LED_Power_Error;
// ============================================================================================
// Function Declarations
void Core1_LED_Enable_Init();
void Core1_LED_Enable_Tick();
void Core1_LED_Enable_Update_INA260_BusVoltage(uint16_t voltage_mV);
bool Core1_LED_Enable_Get_Status();
LED_Power_Error Core1_LED_Enable_Get_Error();
#endif // CORE1_LED_ENABLE_H