// 012.c - Criado pelo studio UNO 2.3
// 5 March 2015 10:00:04 am
#include <uno.h>
//Funcao Principal
void main(void)
{
__inicializa;
while(TRUE) {
if (__UP_KEY) {
__motor_curso(__FORWARD);
__delay(2000);
__lcd_clear();
__lcd_puts("FRENTE");
}
if (__ENTER_KEY) {
__motor_curso(__STOP);
__lcd_clear();
__lcd_puts("PARADO");
}
if (__BOTTOM_KEY) {
__motor_curso(__BACKWARD);
__lcd_clear();
__lcd_puts("TRAS");
}
if (__LEFT_KEY) {
__motor_curso(__LEFT_TURN);
__lcd_clear();
__lcd_puts("ESQUERDA");
}
if (__RIGHT_KEY) {
__motor_curso(__RIGHT_TURN);
__lcd_clear();
__lcd_puts("DIREITA");
}
}
while(TRUE) { }
}