A272O版本整理

This commit is contained in:
2025-02-12 14:05:53 +08:00
parent 08e216ffb2
commit 7a59be0434
156 changed files with 27634 additions and 25946 deletions

View File

@ -10,8 +10,16 @@ KEY_DAT gs_keyDat[KEY_NUMBERS]={0};
bool key_readKeyPin(uint8_t keyx)
{
bool status;
#ifdef DATA_CAN //适配270M版本
if(keyx==0) status = gpio_get_value(GPIO_LIGHT_SET);
else if(keyx==1) status = gpio_get_value(GPIO_LIGHT_MODE);
#else
if(keyx==0) status = gpio_get_value(GPIO_LIGHT_MODE);
else if(keyx==1) status = gpio_get_value(GPIO_LIGHT_SET);
#endif
// if(keyx==0) status = gpio_get_value(GPIO_LIGHT_SET);
// else if(keyx==1) status = gpio_get_value(GPIO_LIGHT_MODE);
// return (!status);//低有效
return (status);//高有效
}