Skip to content

Instantly share code, notes, and snippets.

@ypelletier
Last active December 8, 2018 12:21
Clignotement d'une LED du MPLAB XPress Evaluation Board
/*
Clignotement d'une LED du MPLAB XPress Evaluation Board
Pour plus de détails:
http://electroniqueamateur.blogspot.com/2017/10/mplab-xpress-evaluation-board.html
*/
#include "mcc_generated_files/mcc.h"
void main(void)
{
SYSTEM_Initialize();
while (1)
{
IO_RA0_SetHigh(); // on allume la LED
__delay_ms(1000); // délai 1 seconde
IO_RA0_SetLow(); // on éteint la LED
__delay_ms(1000); // délai 1 seconde
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment