Added scaffolding for DS18B20
This commit is contained in:
3
components/ds18b20/CMakeLists.txt
Normal file
3
components/ds18b20/CMakeLists.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
idf_component_register(SRCS "ds18b20.c"
|
||||
INCLUDE_DIRS "."
|
||||
REQUIRES driver)
|
||||
15
components/ds18b20/Kconfig.projbuild
Normal file
15
components/ds18b20/Kconfig.projbuild
Normal file
@@ -0,0 +1,15 @@
|
||||
menu "DS18B20"
|
||||
config DS18B20_ENABLED
|
||||
bool "DS18B20 Enabled"
|
||||
default y
|
||||
|
||||
config DS18B20_GPIO_PIN
|
||||
int "GPIO Pin used for 1-Wire DS18B20"
|
||||
default 10
|
||||
depends on DS18B20_ENABLED
|
||||
|
||||
config DS18B20_PERIOD_POLL
|
||||
int "Period to poll the DS18B20 in seconds"
|
||||
default 8000
|
||||
depends on DS18B20_ENABLED
|
||||
endmenu
|
||||
4
components/ds18b20/ds18b20.c
Normal file
4
components/ds18b20/ds18b20.c
Normal file
@@ -0,0 +1,4 @@
|
||||
int test() {
|
||||
int i = 5;
|
||||
return i;
|
||||
}
|
||||
0
components/ds18b20/ds18b20.h
Normal file
0
components/ds18b20/ds18b20.h
Normal file
Reference in New Issue
Block a user