You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# SmartThings SDK for Direct Connected Devices for C - Light Example
2
2
3
3
## Introduction
4
4
@@ -15,18 +15,41 @@ Components and Capabilities are contained in device profile. You can create a de
15
15
16
16
This example assumes the following components and capabilities are used. :
17
17
18
-
'main' component
19
-
- 'healthCheck' capability
20
-
- 'switch' capability
21
-
- 'switchLevel' capability
22
-
- 'colorTemperature' capability
23
-
- 'activityLightingMode' capability
24
-
25
-
'monitor' component
26
-
- 'dustSensor' capability
27
-
28
-
('healthCheck' capability is automatically added by Developer Workspace. It doesn't need handler at device side)
29
-
30
-
## SmartThings Device SDK config
31
-
If you want to use specific SmartThings Device SDK build options, you can directly modify the build configuration file. For this example, SmartThings Device SDK config is saved in 'sdkconfig.h' file.
18
+
`main` component
19
+
-`healthCheck` capability
20
+
-`switch` capability
21
+
-`switchLevel` capability
22
+
-`colorTemperature` capability
23
+
-`activityLightingMode` capability
24
+
25
+
`monitor` component
26
+
-`dustSensor` capability
27
+
28
+
(`healthCheck` capability is automatically added by Developer Workspace. It doesn't need handler at device side)
29
+
30
+
## SmartThings SDK for Direct Connected Devices - Config
31
+
If you want to use specific SmartThings Device SDK build options, you can directly modify the build configuration file. For this example, SmartThings Device SDK config is saved in 'sdkconfig.h' file. If you want to change this, please execute the following :
32
+
```sh
33
+
$ cd~/st-device-sdk-c-ref
34
+
$ vim apps/rtl8195/light_example/sdkconfig.h
35
+
```
36
+
37
+
## Test device schematics
38
+
This example uses RTL8195 GPIO like below.
39
+
Please refer below picture for __Ameba RTL8195AM__.
40
+
> Note: If your device's schematics doesn't match with belows.
41
+
> Please modify GPIO defines for your device at [device_control.h](main/device_control.h)
0 commit comments