2024-06-03 18:59:42 +08:00
|
|
|
#ifndef MHZ14B_H
|
|
|
|
#define MHZ14B_H
|
|
|
|
|
|
|
|
/* Scheduler include files. */
|
|
|
|
#include "FreeRTOS.h"
|
|
|
|
#include "task.h"
|
|
|
|
#include "semphr.h"
|
|
|
|
#include "queue.h"
|
|
|
|
|
|
|
|
#include "pico/stdlib.h"
|
|
|
|
#include "hardware/clocks.h"
|
|
|
|
#include "hardware/watchdog.h"
|
|
|
|
#include "pico/multicore.h"
|
|
|
|
#include "hardware/i2c.h"
|
|
|
|
#include "pico/binary_info.h"
|
|
|
|
#include "hardware/uart.h"
|
|
|
|
#include "hardware/pwm.h"
|
|
|
|
#include "hardware/adc.h"
|
|
|
|
|
2024-06-04 15:45:40 +08:00
|
|
|
|
2024-06-03 18:59:42 +08:00
|
|
|
#define UART1 uart1
|
|
|
|
#define BAUD_RATE 9600
|
|
|
|
#define DATA_BITS 8
|
|
|
|
#define STOP_BITS 1
|
|
|
|
#define PARITY UART_PARITY_NONE
|
|
|
|
#define UART1_TX_PIN 5 // MH-Z14B T
|
|
|
|
#define UART1_RX_PIN 4 // MH-Z14B R
|
|
|
|
|
2024-08-11 22:11:50 +08:00
|
|
|
#define BUFER 256
|
2024-06-03 18:59:42 +08:00
|
|
|
extern void CO2(void *pvParameters);
|
|
|
|
|
|
|
|
#endif
|