Danger-alarm/SOFTWARE-FreeRTOS/Source/DS18B20.hpp

25 lines
495 B
C++
Raw Normal View History

2024-06-03 18:59:42 +08:00
#ifndef DS18B20_H
#define DS18B20_H
/* Scheduler include files. */
#include "FreeRTOS.h"
#include "task.h"
#include "semphr.h"
#include "queue.h"
2024-08-23 08:08:37 +08:00
#include <cstring>
2024-06-03 18:59:42 +08:00
#include <cstdio>
#include <stdbool.h>
#include "pico/stdlib.h"
#include "hardware/gpio.h"
#include "hardware/watchdog.h"
2024-06-03 18:59:42 +08:00
#include "../../SOFTWARE/Lib/pico-onewire/api/one_wire.h"
#define DS18B20_PIN 15 // DS18B20 引脚
#define BUFER 256
2024-06-03 18:59:42 +08:00
extern QueueHandle_t xQueue;
extern void DS18B20(void *pvParameters);
#endif