This commit is contained in:
Олег Бородин
2024-08-20 18:12:45 +02:00
commit daac0e8e1f
24 changed files with 28759 additions and 0 deletions

28
temp.h Normal file
View File

@@ -0,0 +1,28 @@
#ifndef DS18B20_H_QWERTY
#define DS18B20_H_QWERTY
#include <avr/io.h>
#define DS18B20_PORT PORTB
#define DS18B20_DDR DDRB
#define DS18B20_PIN PINB
#define DS18B20_PB PB3
#define DS18B20_CMD_CONVERTTEMP 0x44
#define DS18B20_CMD_RSCRATCHPAD 0xBE
#define DS18B20_CMD_WSCRATCHPAD 0x4E
#define DS18B20_CMD_CPYSCRATCHPAD 0x48
#define DS18B20_CMD_RECEEPROM 0xB8
#define DS18B20_CMD_RPWRSUPPLY 0xB4
#define DS18B20_CMD_SEARCHROM 0xF0
#define DS18B20_CMD_READROM 0x33
#define DS18B20_CMD_MATCHROM 0x55
#define DS18B20_CMD_SKIPROM 0xCC
#define DS18B20_CMD_ALARMSEARCH 0xEC
//#define DS18B20_STOPINT 1
float ds18b20_get_temp();
#endif