for(uint8_t num=0;num<KEY_LED_NUM;num++)
{
key_led_struct[num].unit[0].startTime = 0;
- key_led_struct[num].unit[0].axisTime = 40;
+ key_led_struct[num].unit[0].axisTime = 100;
key_led_struct[num].unit[0].shiftInTime = 10;
key_led_struct[num].unit[0].shiftOutTime = 0;
key_led_struct[num].unit[0].dstR = 0;
key_led_struct[num].unit[0].dstG = 0;
key_led_struct[num].unit[0].dstB = 0;
- key_led_struct[num].unit[1].startTime = 40;
- key_led_struct[num].unit[1].axisTime = 40;
+ key_led_struct[num].unit[1].startTime = 100;
+ key_led_struct[num].unit[1].axisTime = 100;
key_led_struct[num].unit[1].shiftInTime = 10;
key_led_struct[num].unit[1].shiftOutTime = 0;
key_led_struct[num].unit[1].dstR = led_key_profile[led_profile_status.key_current_profile][num][0];
key_led_struct[num].unit[1].dstG = led_key_profile[led_profile_status.key_current_profile][num][1];
key_led_struct[num].unit[1].dstB = led_key_profile[led_profile_status.key_current_profile][num][2];
- key_led_struct[num].unit[2].startTime = 80;
- key_led_struct[num].unit[2].axisTime = 40;
+ key_led_struct[num].unit[2].startTime = 200;
+ key_led_struct[num].unit[2].axisTime = 100;
key_led_struct[num].unit[2].shiftInTime = 10;
key_led_struct[num].unit[2].shiftOutTime = 0;
key_led_struct[num].unit[2].dstR = 0;
key_led_struct[num].unit[2].dstG = 0;
key_led_struct[num].unit[2].dstB = 0;
- key_led_struct[num].unit[3].startTime = 120;
- key_led_struct[num].unit[3].axisTime = 40;
+ key_led_struct[num].unit[3].startTime = 300;
+ key_led_struct[num].unit[3].axisTime = 100;
key_led_struct[num].unit[3].shiftInTime = 10;
key_led_struct[num].unit[3].shiftOutTime = 0;
key_led_struct[num].unit[3].dstR = led_key_profile[led_profile_status.key_current_profile][num][0];
key_led_struct[num].unit[3].dstG = led_key_profile[led_profile_status.key_current_profile][num][1];
key_led_struct[num].unit[3].dstB = led_key_profile[led_profile_status.key_current_profile][num][2];
- key_led_struct[num].unit[4].startTime = 160;
- key_led_struct[num].unit[4].axisTime = 40;
- key_led_struct[num].unit[4].shiftInTime = 10;
- key_led_struct[num].unit[4].shiftOutTime = 0;
- key_led_struct[num].unit[4].dstR = 0;
- key_led_struct[num].unit[4].dstG = 0;
- key_led_struct[num].unit[4].dstB = 0;
-
- key_led_struct[num].unit[5].startTime = 200;
- key_led_struct[num].unit[5].axisTime = 40;
- key_led_struct[num].unit[5].shiftInTime = 10;
- key_led_struct[num].unit[5].shiftOutTime = 0;
- key_led_struct[num].unit[5].dstR = led_key_profile[led_profile_status.key_current_profile][num][0];
- key_led_struct[num].unit[5].dstG = led_key_profile[led_profile_status.key_current_profile][num][1];
- key_led_struct[num].unit[5].dstB = led_key_profile[led_profile_status.key_current_profile][num][2];
-
- key_led_struct[num].unit[6].startTime = 240;
- key_led_struct[num].unit[6].axisTime = 40;
- key_led_struct[num].unit[6].shiftInTime = 10;
- key_led_struct[num].unit[6].shiftOutTime = 0;
- key_led_struct[num].unit[6].dstR = 0;
- key_led_struct[num].unit[6].dstG = 0;
- key_led_struct[num].unit[6].dstB = 0;
-
- key_led_struct[num].unit[7].startTime = 280;
- key_led_struct[num].unit[7].axisTime = 40;
- key_led_struct[num].unit[7].shiftInTime = 10;
- key_led_struct[num].unit[7].shiftOutTime = 0;
- key_led_struct[num].unit[7].dstR = led_key_profile[led_profile_status.key_current_profile][num][0];
- key_led_struct[num].unit[7].dstG = led_key_profile[led_profile_status.key_current_profile][num][1];
- key_led_struct[num].unit[7].dstB = led_key_profile[led_profile_status.key_current_profile][num][2];
-
- key_led_struct[num].totalTime = 320;
- key_led_struct[num].unitNum = 8;
+
+
+ key_led_struct[num].totalTime = 400;
+ key_led_struct[num].unitNum = 4;
key_led_struct[num].loop = 0;
key_led_struct[num].start = 1;
}
}
+//°´¼ü»Ö¸´³ö³§ÁÁ°´¼üµÆ
+void Led_Key_Factory_Blink(void)
+{
+ // Ó¦ÓÃ
+ for(uint8_t num=0;num<KEY_LED_NUM;num++)
+ {
+ key_led_struct[num].unit[0].startTime = 0;
+ key_led_struct[num].unit[0].axisTime = 100;
+ key_led_struct[num].unit[0].shiftInTime = 10;
+ key_led_struct[num].unit[0].shiftOutTime = 0;
+ key_led_struct[num].unit[0].dstR = 0;
+ key_led_struct[num].unit[0].dstG = 0;
+ key_led_struct[num].unit[0].dstB = 0;
+ key_led_struct[num].unit[1].startTime = 100;
+ key_led_struct[num].unit[1].axisTime = 100;
+ key_led_struct[num].unit[1].shiftInTime = 10;
+ key_led_struct[num].unit[1].shiftOutTime = 0;
+ key_led_struct[num].unit[1].dstR = led_key_profile[led_profile_status.key_current_profile][num][0];
+ key_led_struct[num].unit[1].dstG = led_key_profile[led_profile_status.key_current_profile][num][1];
+ key_led_struct[num].unit[1].dstB = led_key_profile[led_profile_status.key_current_profile][num][2];
+
+
+ key_led_struct[num].totalTime = 200;
+ key_led_struct[num].unitNum = 2;
+ key_led_struct[num].loop = 0;
+
+ key_led_struct[num].start = 1;
+ }
+}
void Led_Enc_Recover_Color(uint8_t abs_num, uint8_t led_num)
{
#if (ENC_LED_TOTAL_NUM)
Led_Key_Ble_Connected_Blink();
}
break;
-
+
+ case KEY_IOT_FACTORY_RESET:
+ {
+ key_led_status.wait_for_profile_end_enable = 1;
+ Led_Key_Factory_Blink();
+
+ }
+ break;
case KEY_EXHIBITION:
{
Led_Key_Exhibition2();