Update main.c

This commit is contained in:
2025-01-11 22:46:40 +01:00
parent ed598229df
commit 189c744f0d

8
main.c
View File

@@ -1,6 +1,12 @@
#include <xc.h>
#include <stdio.h>
#pragma config FOSC = HS // Oscillator Selection bits
#pragma config WDTE = OFF // Watchdog Timer Enable bit
#pragma config PWRTE = OFF // Power-up Timer Enable bit
#pragma config CP = OFF // FLASH Program Memory Code Protection bit
#pragma config BOREN = OFF // Brown-out Reset Enable bit
#define LENGTH 8
unsigned int sum = 0; // Suma liczb 8-bitowych, zapisana w zmiennej 16-bitowej
@@ -21,7 +27,7 @@ void print_results(void);
void main(void) {
config_ad();
while(1) { // g?ówna p?tla programu
ad_go();