[ਓਪਨ ਸੋਰਸ] ਅੰਤਰਾਲ ਸੰਕੇਤ ਮਾਨਤਾ ਟੈਸਟੀ ਸਿਸਟਮ

——DWIN ਡਿਵੈਲਪਰ ਫੋਰਮ ਤੋਂ

ਇਸ ਅੰਕ ਵਿੱਚ, ਅਸੀਂ DWIN ਡਿਵੈਲਪਰ ਫੋਰਮ - ਅੰਤਰਾਲ ਸੰਕੇਤ ਮਾਨਤਾ ਟੈਸਟ ਸਿਸਟਮ ਦਾ ਪੁਰਸਕਾਰ ਜੇਤੂ ਓਪਨ ਸੋਰਸ ਕੇਸ ਪੇਸ਼ ਕਰਾਂਗੇ। ਇੰਜਨੀਅਰ T5L OS ਕੋਰ ਰਾਹੀਂ PAJ7620U2 ਸੰਕੇਤ ਮਾਨਤਾ ਸੈਂਸਰ ਨਾਲ ਇੰਟਰੈਕਟ ਕਰਨ ਲਈ 7-ਇੰਚ ਦੀ COF ਸਮਾਰਟ ਸਕ੍ਰੀਨ ਦੀ ਵਰਤੋਂ ਕਰਦੇ ਹਨ। ਕਿਸੇ ਵੀ ਬਟਨ ਦੀ ਵਰਤੋਂ ਕਰਨ ਦੀ ਕੋਈ ਲੋੜ ਨਹੀਂ ਹੈ. ਮੀਨੂ ਸਿਸਟਮ ਕੰਟਰੋਲ ਸਕ੍ਰੀਨ ਵਿੱਚ ਦਾਖਲ ਹੋਣ ਲਈ ਤੁਹਾਨੂੰ ਸਿਰਫ਼ ਸੈਂਸਰ ਦੇ ਨੇੜੇ ਆਪਣਾ ਹੱਥ ਰੱਖਣ ਦੀ ਲੋੜ ਹੈ, ਅਤੇ ਉੱਪਰ, ਹੇਠਾਂ, ਖੱਬੇ, ਸੱਜੇ, ਨੇੜੇ, ਦੂਰ, ਖੱਬਾ ਰੋਟੇਸ਼ਨ, ਸੱਜਾ ਰੋਟੇਸ਼ਨ, ਅਤੇ ਵੇਵ ਦੇ 9 ਸੰਕੇਤ ਪ੍ਰਭਾਵਾਂ ਨੂੰ ਮਹਿਸੂਸ ਕਰੋ।

1.UIਐੱਮਸਮੱਗਰੀਡੀisplay

asd (2)
asd (1)

2.C51 ਇੰਜੀਨੀਅਰਿੰਗ ਡਿਜ਼ਾਈਨ

T5L OS ਕੋਰ ਡੇਟਾ ਪਰਸਪਰ ਕ੍ਰਿਆ ਲਈ PAJ7620U2 ਸੰਕੇਤ ਮਾਨਤਾ ਸੈਂਸਰ ਨਾਲ ਇੰਟਰੈਕਟ ਕਰਦਾ ਹੈ, ਮੌਜੂਦਾ ਸੰਕੇਤ ਦਾ ਪਤਾ ਲਗਾਉਂਦਾ ਹੈ, ਵਰਤਮਾਨ ਵਿੱਚ ਪ੍ਰਦਰਸ਼ਿਤ ਤਸਵੀਰ ਅਤੇ ਪੰਨੇ ਨੂੰ ਮੋੜ ਕੇ ਪ੍ਰਦਰਸ਼ਿਤ ਤਸਵੀਰ ਨੂੰ ਨਿਰਧਾਰਤ ਕਰਦਾ ਹੈ, ਅਤੇ ਇਸ਼ਾਰਿਆਂ ਦੀ ਵਰਤੋਂ ਕਰਕੇ ਪੰਨਿਆਂ ਨੂੰ ਬਦਲਣ ਦੇ ਕੰਮ ਨੂੰ ਸਮਝਦਾ ਹੈ। ਸੰਦਰਭ ਕੋਡ ਹੇਠ ਲਿਖੇ ਅਨੁਸਾਰ ਹੈ:

void select_operate(uint16_t gesrure_value)

{

if(gesrure_value == GES_UP) //up

{

ਜੇਕਰ (ਚੋਣ_ਮੁੱਲ >= 2)

{

ਚੁਣੋ_ਮੁੱਲ -= 2;

}

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

}

else if(gesrure_value == GES_DOWN) //down

{

ਜੇਕਰ (ਚੋਣ_ਮੁੱਲ

{

ਚੁਣੋ_ਮੁੱਲ += 2;

}

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

}

else if(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; //ਪੰਨਾ ਵਾਰੀ ਜਾਣ ਦੀ ਆਖਰੀ ਗਿਣਤੀ

if(gesrure_value == GES_UP || gesrure_value == GES_DOWN || gesrure_value == GES_LEFT || gesrure_value == GES_RIGHT)

{

if(gesrure_value == GES_UP) //up

{

turning_mode = 0;

turning_count = 48;

}

else if(gesrure_value == GES_DOWN) //down

{

turning_mode = 1;

turning_count = 48;

}

else if(gesrure_value == GES_LEFT) //ਖੱਬੇ

{

turning_mode = 2;

turning_count = 80;

}

ਹੋਰ ਜੇ(gesrure_value == GES_RIGHT) //ਸੱਜੇ

{

turning_mode = 3;

turning_count = 80;

}

if(turning_current_image == 0 || turning_current_image == 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);

if(turning_last_image != 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);

if(turning_last_image != 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);

if(turning_last_image != 0)

{

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

}

ਤੋੜਨਾ;

ਕੇਸ 3:

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

t5l0_sys_delay_ms(20);

if(turning_last_image != 0)

{

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

}

ਤੋੜਨਾ;

}

t5l0_sys_delay_ms(20);

}

turning_last_image = turning_current_image;

}

}


ਪੋਸਟ ਟਾਈਮ: ਮਾਰਚ-21-2024