Exemplo n.º 1
0
int main(void)
{
	sysclk_init();
	board_init();

	configure_lcd();
	configure_botao();
	configure_adc();
	configure_tc();
		ili93xx_set_foreground_color(COLOR_BLACK);
	ili93xx_draw_string(10, 20, (uint8_t *)"14 - ADC");
	

	/** Draw text, image and basic shapes on the LCD */
	//ili93xx_set_foreground_color(COLOR_BLACK);
	//ili93xx_draw_string(10, 20, (uint8_t *)"14 - ADC");

	while (1) {
		if(adc_value_new == 1)
		{
		refresh_lcd(adc_value_old);
		adc_value_new = 0;
		}
	}
}
Exemplo n.º 2
0
int main(void)
{
	sysclk_init();
	board_init();

	configure_lcd();
	configure_botao();
	configure_adc();
	configure_tc();


	/** Draw text, image and basic shapes on the LCD */
	ili93xx_set_foreground_color(COLOR_BLACK);
	ili93xx_draw_string(10, 20, (uint8_t *)"14 - ADC");
	ili93xx_draw_filled_circle(120,160,60);
	ili93xx_set_foreground_color(COLOR_WHITE);
	ili93xx_draw_filled_circle(120,160,55);

	while (1) {
	}