add dlpc3421 driver from kimi

This commit is contained in:
2025-08-25 10:26:43 +08:00
parent 75ea93cd53
commit dbb65695c9
2 changed files with 205 additions and 0 deletions

18
Inc/dlpc3421.h Normal file
View File

@@ -0,0 +1,18 @@
#ifndef __DLPC3421_H
#define __DLPC3421_H
#include <stdint.h>
#include <stdbool.h>
bool dlp_probe(void);
int dlp_init(void);
void dlp_on(void);
void dlp_off(void);
void dlp_set_current(uint8_t r, uint8_t g, uint8_t b);
void dlp_reset(void);
void dlp_dump_regs(void);
#ifdef DLP_PATTERN_TEST
void dlp_test_pattern(uint8_t pattern_id);
#endif
#endif