This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
products:sbc:common:applications:gsensor [2022/08/07 21:43] olivia [Introduction] |
products:sbc:common:applications:gsensor [2025/02/18 01:40] (current) nick |
||
---|---|---|---|
Line 3: | Line 3: | ||
===== Introduction ===== | ===== Introduction ===== | ||
- | This pqge mainly introduces G-Sensor. You will know which node of G-Sensor is, and how to read the value of G-Sensor through C program. | + | By referring to this page, you will know which node of G-Sensor is, and how to read the value of G-Sensor through C program. |
===== System Configuration ===== | ===== System Configuration ===== | ||
- | Check Gsensor | + | Check G-sensor |
```shell | ```shell | ||
Line 16: | Line 16: | ||
===== Demo Source Code ===== | ===== Demo Source Code ===== | ||
- | The source code only realizes the use of default settings to read data, other functions | + | The source code only realizes the use of default settings to read data, for other functions, you can implement |
```c gsensor_sample_data.c | ```c gsensor_sample_data.c | ||
Line 83: | Line 83: | ||
``` | ``` | ||
- | Compile | + | Compile |
```shell | ```shell | ||
Line 94: | Line 94: | ||
```shell | ```shell | ||
- | $ ./ | + | $ sudo ./ |
gsensor node open success!!! | gsensor node open success!!! | ||
gsensor start sueecss !!! | gsensor start sueecss !!! |