txw81x configurable i2c pins and hi704 sensor (#1801)

This commit is contained in:
NonPIayerCharacter 2025-09-20 09:25:56 +03:00 committed by GitHub
parent 9748043ce8
commit ce9e6c1443
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

@ -1 +1 @@
Subproject commit 81d5621babdd6aed434d33c0ebc010859c9d3314
Subproject commit 37e27673fd4231900ef5013eb541b202e5128a61

View File

@ -23,6 +23,8 @@ bool isStarted = false;
bool showTimestamp = false;
extern time_t g_ntpTime;
extern void set_time_watermark(uint16 year, uint16 month, uint16 day, uint16 hour, uint16 min, uint16 sec);
int dvp_scl = PC_2;
int dvp_sda = PC_3;
uint8 vcam_en()
{
@ -72,6 +74,8 @@ void TXW_Cam_Init(void)
{
if(!isStarted)
{
dvp_scl = PIN_FindPinIndexForRole(IOR_SOFT_SCL, dvp_scl);
dvp_sda = PIN_FindPinIndexForRole(IOR_SOFT_SDA, dvp_sda);
uint32_t buf_size = Tokenizer_GetArgIntegerDefault(1, 60 * 1000);
uint8 vcam;
vcam = vcam_en();