Carga Dinâmica  0.1
Sistemas de Instrumentação Electrónica
led.h File Reference

configuratoin for led More...

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <xc.h>
#include "uart.h"
#include "interrup.h"
Include dependency graph for led.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LED0   LATDbits.LATD12
 PORT 8.
 
#define LED1   LATEbits.LATE9
 PORT 7.
 
#define LED2   LATDbits.LATD2
 PORT 6.
 
#define LED3   LATAbits.LATA3
 LED da palca.
 

Functions

void initLed ()
 
void debugLed ()
 Esta função serve para testar cada led independente. Eles começam todos apagados e quando o utilizador pressiona o número do led ele muda de estado.
 

Detailed Description

configuratoin for led

Function Documentation

◆ initLed()

void initLed ( )

Coloca os portos dos leds como saída

Depois de iniciados ficam todos desligados

LED0 -> LATD12 -> PORT 8

LED1 -> LATE9 -> PORT 7

LED3 -> LATD2 -> PORT 6

LED4 -> LATA3 -> LED da palca