|
|
|
@ -51,20 +51,6 @@ QueueHandle_t lora_packet_isr_queue;
@@ -51,20 +51,6 @@ QueueHandle_t lora_packet_isr_queue;
|
|
|
|
|
|
|
|
|
|
struct Packet packet; |
|
|
|
|
|
|
|
|
|
void setup_serial(void) { |
|
|
|
|
const uart_port_t uart_num = UART_NUM_2; |
|
|
|
|
uart_config_t uart_config = { |
|
|
|
|
.baud_rate = 115200, |
|
|
|
|
.data_bits = UART_DATA_8_BITS, |
|
|
|
|
.parity = UART_PARITY_DISABLE, |
|
|
|
|
.stop_bits = UART_STOP_BITS_1, |
|
|
|
|
.flow_ctrl = UART_HW_FLOWCTRL_CTS_RTS, |
|
|
|
|
.rx_flow_ctrl_thresh = 122, |
|
|
|
|
}; |
|
|
|
|
// Configure UART parameters
|
|
|
|
|
ESP_ERROR_CHECK(uart_param_config(uart_num, &uart_config)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void setup_oled(void) { |
|
|
|
|
u8g2_esp32_hal_t u8g2_hal_config = { |
|
|
|
|
.scl = 15, |
|
|
|
@ -80,8 +66,6 @@ void setup_oled(void) {
@@ -80,8 +66,6 @@ void setup_oled(void) {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void setup(void) { |
|
|
|
|
setup_serial(); |
|
|
|
|
|
|
|
|
|
ESP_LOGI(TAG, "setup"); |
|
|
|
|
|
|
|
|
|
setup_oled(); |
|
|
|
|