Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3dfb8f2

Browse files
TinyuZhaolbuque
authored andcommitted
docs: Supplement missing content in the accel docs.
Signed-off-by: tinyu <tinyu.zhao@gmail.com>
1 parent32c7efc commit3dfb8f2

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

‎m5stack/libs/unit/accel.py‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,25 @@ def get_data_rate(self) -> int:
9595
:returns: The data rate of the sensor.
9696
:rtype: int
9797
98+
Rate options are:
99+
100+
- ``0``: 0.1 Hz
101+
- ``1``: 0.20 Hz
102+
- ``2``: 0.39 Hz
103+
- ``3``: 0.78 Hz
104+
- ``4``: 1.56 Hz
105+
- ``5``: 3.13 Hz
106+
- ``6``: 6.25 Hz
107+
- ``7``: 12.5 Hz
108+
- ``8``: 25 Hz
109+
- ``9``: 50 Hz
110+
- ``10``: 100 Hz
111+
- ``11``: 200 Hz
112+
- ``12``: 400 Hz
113+
- ``13``: 800 Hz
114+
- ``14``: 1600 Hz
115+
- ``15``: 3200 Hz
116+
98117
UiFlow2 Code Block:
99118
100119
|get_data_rate.png|
@@ -112,6 +131,25 @@ def set_data_rate(self, rate: int) -> None:
112131
113132
:param int rate: The data rate of the sensor.
114133
134+
Rate options are:
135+
136+
- ``0``: 0.1 Hz
137+
- ``1``: 0.20 Hz
138+
- ``2``: 0.39 Hz
139+
- ``3``: 0.78 Hz
140+
- ``4``: 1.56 Hz
141+
- ``5``: 3.13 Hz
142+
- ``6``: 6.25 Hz
143+
- ``7``: 12.5 Hz
144+
- ``8``: 25 Hz
145+
- ``9``: 50 Hz
146+
- ``10``: 100 Hz
147+
- ``11``: 200 Hz
148+
- ``12``: 400 Hz
149+
- ``13``: 800 Hz
150+
- ``14``: 1600 Hz
151+
- ``15``: 3200 Hz
152+
115153
UiFlow2 Code Block:
116154
117155
|set_data_rate.png|

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp