LOOK实现两个小任务: ① 助学板上四个LED小灯轮流点亮,有两种显示模式,方式 1为LED1--->LED2--->LED3--->LED4--->LED1循环,方式2为LED4--->LED3--->LED2--->LED1--->LED4循环,初始化为方式1;
② 助学板上KEY2按下调整LED的循环方式。
编译错误为:
compiling led.cpp...
led.cpp(8): error: 'task_led_t' has not been declared
led.cpp(33): error: 'task_key_t' has not been declared
led.cpp: In function 'void routine()':
led.cpp(33): error: redefinition of 'void routine()'
led.cpp(8): error: 'void routine()' previously defined here
led.cpp(39): error: 'key_read' was not declared in this scope
led.cpp: At global scope:
led.cpp(46): error: 'task_key_t' has not been declared
led.cpp(72): error: 'task_led_t' was not declared in this scope
led.cpp(72): error: template argument 1 is invalid
led.cpp(72): error: invalid type in declaration before ';' token
led.cpp(78): error: 'task_key_t' was not declared in this scope
led.cpp(78): error: template argument 1 is invalid
led.cpp(78): error: invalid type in declaration before ';' token