Files
Power-Pico/Power_Pico/BSP/BL24C02/BL24C02.h

22 lines
514 B
C
Raw Normal View History

2025-10-14 16:25:11 +08:00
#ifndef __BL24C02_H
#define __BL24C02_H
#include <stdint.h>
#define BL24C02_ADDRESS 0x50
2025-10-18 19:23:22 +08:00
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;
2025-10-14 16:25:11 +08:00
uint8_t EEPROM_Check(void);
uint8_t SettingSave(uint8_t *buf, uint8_t addr, uint8_t lenth);
uint8_t SettingGet(uint8_t *buf, uint8_t addr, uint8_t lenth);
#endif