Skip to content

Commit

Permalink
feat:add main.c
Browse files Browse the repository at this point in the history
  • Loading branch information
abdullahbagyapan committed Apr 19, 2024
1 parent ea8309f commit f6a1da0
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions main.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#include "pico/stdlib.h"

#include "temperature/temperature.c"
#include "uart/uart.h"


int main() {

UART_Init();
TEMPERATURE_Init();

while (1) {

uint8_t ui8TemperatureCelsius = TEMPERATURE_Read();

UART_PutString(ui8TemperatureCelsius);
UART_PutChar('\n');

sleep_ms(1000);
}

}

0 comments on commit f6a1da0

Please sign in to comment.