Professional Documents
Culture Documents
*
* This example is controlling the RGB LED using the joystick
*
* Copyright(C) 2010, Embedded Artists AB
* All rights reserved.
*
*****************************************************************************
*/
#include "lpc17xx_pinsel.h"
#include "lpc17xx_gpio.h"
#include "lpc17xx_timer.h"
#include "joystick.h"
#include "rgb.h"
#include "oled.h"
uint8_t joy = 0;
//inicio perifericos
rgb_init();
joystick_init();
oled_init();
//limpio el display
oled_clearScreen(OLED_COLOR_BLACK);
joy = joystick_read();
/* delay */
Timer0_Wait(200);
}
/* Infinite loop */
while(1);
}