Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- unit8_t leer_pulsador(void) {
- GPIO_ReadInoutDataBit(GPIOA, GPIO_Pin_0);
- }
- int main (void)
- {
- led_inicializar();
- pulsador_inicializar();
- while (1) {
- if (leer_pulsador() == 1) {
- led_on();
- } else {
- led_off();
- }
- }
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement