From de5aa05fb8d6fe933bb2352f699472748a16ae09 Mon Sep 17 00:00:00 2001 From: jakegoodwin Date: Fri, 13 Jan 2023 22:48:19 -0800 Subject: [PATCH] set for 8Mhz 9600 BAUD, reduces error rate too 0.2% --- avr_usart.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/avr_usart.h b/avr_usart.h index 6bab4ec..821781d 100644 --- a/avr_usart.h +++ b/avr_usart.h @@ -15,8 +15,8 @@ * AVR D1 --> AT-09 RX * AVR D2 --> AT-09 State */ -#define FOSC 1000000 -#define BLE_BAUD 9600 +#define FOSC 8000000 +#define BLE_BAUD 9600 #define BT_UBRR FOSC/16/BLE_BAUD - 1 #define TX_PIN PIND0