Update main.c

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

6
main.c
View File

@@ -1,6 +1,12 @@
#include <xc.h> #include <xc.h>
#include <stdio.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 #define LENGTH 8
unsigned int sum = 0; // Suma liczb 8-bitowych, zapisana w zmiennej 16-bitowej unsigned int sum = 0; // Suma liczb 8-bitowych, zapisana w zmiennej 16-bitowej