Skip to content

Commit 561e4fc

Browse files
committed
Add self test example
1 parent c9a4407 commit 561e4fc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

examples/self-test.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env python3
2+
from scd4x import SCD4X
3+
4+
5+
device = SCD4X(quiet=False)
6+
device.self_test()
7+
8+
print("Self test successful!")

0 commit comments

Comments
 (0)