Files
Power-Pico/software/bootloader/BSP/EEPROM/BL24C02.h

26 lines
590 B
C
Raw Normal View History

2026-02-26 17:20:03 +08:00
#ifndef __BL24C02_H
#define __BL24C02_H
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#define BL24C02_ADDRESS 0x50
typedef struct {
uint8_t backlight_level; // 0-100
uint8_t key_sound_enable; // 0:disable, 1:enable
uint8_t language_select; // 0:English, 1:Chinese
uint16_t rotation; // 0, 90, 180, 270
} SysSettings_T;
extern SysSettings_T sys_settings;
uint8_t EEPROM_Init_Check(void);
void EEPROM_SysSetting_Save(void);
void EEPROM_SysSetting_Get(void);
void EEPROM_UpdateCommand_Write(bool is_update);
bool EEPROM_UpdateCommand_Check(void);
#endif