Last active
December 8, 2018 12:19
Envoi de l'état du potentiomètre de la carte MPLAB Xpress Evaluation Board par communication série.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Envoi de l'état du potentiomètre de la carte MPLAB Xpress Evaluation Board par communication série. | |
Pour plus de détails: | |
http://electroniqueamateur.blogspot.com/2017/11/mplab-xpress-evaluation-board_9.html | |
*/ | |
#include "mcc_generated_files/mcc.h" | |
void main(void) | |
{ | |
SYSTEM_Initialize(); | |
while (1) | |
{ | |
printf("Valeur du potentiometre: %i \n\r", ADCC_GetSingleConversion(potentiometre)); | |
__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