지식로그

[질문] 이 코딩 좀 최대한 짧게 최적화해주세요ㅠ #include "c:/winavr/ezrobomaster/ezrmlib.h" int main(void) {  SysInit();    while(1)   {     LgmRunDir(PORT_M1+PORT_M2, DIR_CW);   Delay(2000);      LgmStopFast(PORT_M1+PORT_M2);     Delay(1000);       LgmSet(PORT_M1, DIR_CW, 6);     LgmSet(PORT_M2, DIR_CCW, 6);     LgmRunTemp(PORT_M1+PORT_M2, 600);       LgmStopFast(PORT_M1+PORT_M2);     Delay(1000);       LgmRunDir(PORT_M1+PORT_M2, DIR_CW);     Delay(2050);     LgmStopFast(PORT_M1+PORT_M2);     Delay(1000);       LgmSet(PORT_M1, DIR_CCW, 5);     LgmSet(PORT_M2, DIR_CW, 5);     LgmRunTemp(PORT_M1+PORT_M2, 700);       LgmStopFast(PORT_M1+PORT_M2);     Delay(1000);       LgmRunDir(PORT_M1+PORT_M2, DIR_CW);     Delay(2100);       LgmStopFast(PORT_M1+PORT_M2);     Delay(1000);       LgmSet(PORT_M1, DIR_CCW, 5);     LgmSet(PORT_M2, DIR_CW, 5);     LgmRunTemp(PORT_M1+PORT_M2, 700);     LgmStopFast(PORT_M1+PORT_M2);   Delay(1000);       LgmRunDir(PORT_M1+PORT_M2, DIR_CW);     Delay(2000);       LgmStopFast(PORT_M1+PORT_M2);     Delay(1000);       LgmSet(PORT_M1, DIR_CW, 5);     LgmSet(PORT_M2, DIR_CCW, 5);     LgmRunTemp(PORT_M1+PORT_M2, 1000);       LgmStopFast(PORT_M1+PORT_M2);     Delay(1000);      LgmRunDir(PORT_M1+PORT_M2, DIR_CW);   Delay(2500);       LgmStopFast(PORT_M1+PORT_M2);     Delay(1000);   }   return 0; }

조회수 3 | 2017.04.18 | 문서번호: 22529290

전체 답변:
[무물보AI]
댓글 달기:
이전 질문:

다음 질문:
관련 질문:
[연관] null

이야기: 더보기

비밀번호를 입력하세요.

이야기 로드하기

당신은 어느 그룹입니까?