Skip to content

Commit 81850c4

Browse files
hongye-samsungKwang-Hui
authored andcommitted
Update README for rtl8195 light_example
(cherry-picked from commit 6c257ed)
1 parent 371f590 commit 81850c4

File tree

2 files changed

+38
-15
lines changed

2 files changed

+38
-15
lines changed

apps/rtl8195/light_example/README.md

Lines changed: 38 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SmartThings Device SDK Switch Example
1+
# SmartThings SDK for Direct Connected Devices for C - Light Example
22

33
## Introduction
44

@@ -15,18 +15,41 @@ Components and Capabilities are contained in device profile. You can create a de
1515

1616
This example assumes the following components and capabilities are used. :
1717

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)
42+
> ```c
43+
> #define GPIO_INPUT_BUTTON PC_1
44+
>
45+
> #define GPIO_OUTPUT_COLORLED_R PC_2
46+
> #define GPIO_OUTPUT_COLORLED_G PC_0
47+
> #define GPIO_OUTPUT_COLORLED_B PB_5
48+
> #define GPIO_OUTPUT_COLORLED_0 PC_4
49+
> ```
50+
51+
### Ameba RTL8195AM
52+
| Ameba RTL8195AM |
53+
|-----------------------------------------------------------------------|
54+
|![Ameba RTL8195AM](../../../doc/res/Light_Example_AMEBA_RTL8195AM.png) |
3255
188 KB
Loading

0 commit comments

Comments
 (0)