set for 8Mhz 9600 BAUD, reduces error rate too 0.2%

This commit is contained in:
Jake Goodwin 2023-01-13 22:48:19 -08:00
parent 2fe8981c13
commit dae9842a97
1 changed files with 2 additions and 2 deletions

View File

@ -15,8 +15,8 @@
* AVR D1 --> AT-09 RX * AVR D1 --> AT-09 RX
* AVR D2 --> AT-09 State * AVR D2 --> AT-09 State
*/ */
#define FOSC 1000000 #define FOSC 8000000
#define BLE_BAUD 9600 #define BLE_BAUD 9600
#define BT_UBRR FOSC/16/BLE_BAUD - 1 #define BT_UBRR FOSC/16/BLE_BAUD - 1
#define TX_PIN PIND0 #define TX_PIN PIND0