[خلاصه سرچینه] د وقفې اشارې پیژندنې ټیسټ سیسټم

—— د DWIN پراختیا کونکي فورم څخه

پدې مسله کې به موږ د DWIN پراختیا کونکي فورم جایزه ګټونکي خلاصې سرچینې قضیه معرفي کړو - د وقفې اشارې پیژندنې ازموینې سیسټم. انجنیران د T5L OS کور له لارې د PAJ7620U2 اشارو پیژندنې سینسر سره د تعامل لپاره د 7 انچ COF سمارټ سکرین کاروي. د کوم بټن کارولو ته اړتیا نشته. تاسو یوازې اړتیا لرئ خپل لاس سینسر ته نږدې کړئ ترڅو د مینو سیسټم کنټرول سکرین ته ننوځي ، او د پورته ، ښکته ، کیڼ ، ښیې ، نږدې ، لرې ، کیڼ گردش ، ښي گردش ، او څپې 9 اشارې اغیزې احساس کړئ.

1.UIمموادډيisplay

asd (2)
asd (1)

2.C51 انجینري ډیزاین

د T5L OS کور د ډیټا متقابل عمل لپاره د PAJ7620U2 اشارو پیژندنې سینسر سره تعامل کوي ، اوسنی اشاره کشف کوي ، اوسني ښودل شوي عکس او د مخ په بدلولو سره ښودل شوي عکس ټاکي ، او د اشارو په کارولو سره د مخونو بدلولو فعالیت احساسوي. د حوالې کوډ په لاندې ډول دی:

باطل انتخاب_کارول(uint16_t gesrure_value)

{

که (gesrure_value == GES_UP) // پورته

{

که (انتخاب_ارزښت>= 2)

{

انتخاب_ارزښت - = 2؛

}

dgus_show_variate_icon_location_set(SELECT_DESCRIBE_RECTANGLE, Select_pos[select_value][0], Select_pos[select_value][1]);

}

بل که (gesrure_value == GES_DOWN) // ښکته

{

که (انتخاب_ارزښت

{

انتخاب_ارزښت += 2;

}

dgus_show_variate_icon_location_set(SELECT_DESCRIBE_RECTANGLE, Select_pos[select_value][0], Select_pos[select_value][1]);

}

بل که (gesrure_value == GES_LEFT) // بائیں

{

که (د انتخاب_ارزښت٪ 2 == 1)

{

انتخاب_ارزښت - = 1؛

}

dgus_show_variate_icon_location_set(SELECT_DESCRIBE_RECTANGLE, Select_pos[select_value][0], Select_pos[select_value][1]);

}

بل که (gesrure_value == GES_RIGHT) // حق

{

که (د انتخاب_ارزښت٪ 2 == 0)

{

انتخاب_ارزښت += 1;

}

dgus_show_variate_icon_location_set(SELECT_DESCRIBE_RECTANGLE, Select_pos[select_value][0], Select_pos[select_value][1]);

}

}

 

void turning_operate(uint16_t gesrure_value)

{

uint16_t i = 0;

uint8_t turning_mode = 0; //د مخ بدلولو حالت، 0 پورته، 1 ښکته، 2 چپ، 3 ښي

uint16_t turning_count = 0; //د مخ د راګرځیدو وروستی شمیر

که (gesrure_value == GES_UP || gesrure_value == GES_DOWN || gesrure_value == GES_LEFT || gesrure_value == GES_RIGHT)

{

که (gesrure_value == GES_UP) // پورته

{

turning_mode = 0;

turning_count = 48;

}

بل که (gesrure_value == GES_DOWN) // ښکته

{

turning_mode = 1;

turning_count = 48;

}

بل که (gesrure_value == GES_LEFT) // بائیں

{

turning_mode = 2;

turning_count = ۸۰ ;

}

بل که (gesrure_value == GES_RIGHT) // حق

{

turning_mode = 3;

turning_count = ۸۰ ;

}

که (توري_موجوده_انځور == 0 || د_موجوده_تصویر == 2)

{

turning_current_image = 1;

}

بل

{

turning_current_image = 2 ;

}

لپاره(i = 0;i

{

بدلول (د بدلولو حالت)

{

قضیه 0:

dgus_show_variate_icon_location_set(turning_current_image * 0x100 + 0x2000, 0, 480 - i * 10);

t5l0_sys_delay_ms(20);

که (ورته_وروستی_انځور!= 0)

{

dgus_show_variate_icon_location_set(turning_last_image * 0x100 + 0x2000, 0, 0 - i * 10);

}

ماتول

قضیه 1:

dgus_show_variate_icon_location_set(turning_current_image * 0x100 + 0x2000, 0, -480 + i * 10);

t5l0_sys_delay_ms(20);

که (ورته_وروستی_انځور!= 0)

{

dgus_show_variate_icon_location_set(turning_last_image * 0x100 + 0x2000, 0, 0 + i * 10);

}

ماتول

قضیه 2:

dgus_show_variate_icon_location_set(turning_current_image * 0x100 + 0x2000, 800 - i * 10, 0);

t5l0_sys_delay_ms(20);

که (ورته_وروستی_انځور!= 0)

{

dgus_show_variate_icon_location_set(turning_last_image * 0x100 + 0x2000, 0 - i * 10, 0);

}

ماتول

دریمه قضیه:

dgus_show_variate_icon_location_set(turning_current_image * 0x100 + 0x2000, -800 + i * 10, 0);

t5l0_sys_delay_ms(20);

که (ورته_وروستی_انځور!= 0)

{

dgus_show_variate_icon_location_set(turning_last_image * 0x100 + 0x2000, 0 + i * 10, 0);

}

ماتول

}

t5l0_sys_delay_ms(20);

}

turning_last_image = د_اوسني_عکس بدلول ;

}

}


د پوسټ وخت: مارچ 21-2024