#pragma once // Simple UART library for ATmega328P // Define DEBUG_UART_ENABLED to enable debug messages #ifdef DEBUG_UART_ENABLED #define DEBUG(message) UART_println(message) #else #define DEBUG(message) ((void)0) // Define as no operation (NOP) #endif #include // Initialize UART void initUART(); // Transmit a byte over UART void UART_transmit(uint8_t data); // Print a formatted string over UART void UART_println(const char* format, ...);