sensor/humidity/ hs300x

1.Kconfig is ok.
2.gcc is ok.
This commit is contained in:
yl1185 2022-06-23 14:47:09 +08:00
parent 635280ab4b
commit 15a8589770
2 changed files with 20 additions and 0 deletions

View File

@ -35,6 +35,12 @@ config SENSOR_HS300X_HUMIDITY
endif
if ADD_RTTHREAD_FETURES
config SENSOR_DEVICE_HS300X_DEV
string "HS300x device name"
default "/dev/i2c1"
config SENSOR_DEVICE_HS300X_I2C_ADDR
hex "HS300x device i2c address"
default 0x44
endif
endif

View File

@ -0,0 +1,14 @@
import os
Import('RTT_ROOT')
from building import *
cwd = GetCurrentDir()
objs = []
list = os.listdir(cwd)
for d in list:
path = os.path.join(cwd, d)
if os.path.isfile(os.path.join(path, 'SConscript')):
objs = objs + SConscript(os.path.join(path, 'SConscript'))
Return('objs')