Skip to content

Commit 2c25099

Browse files
authored
Merge pull request #1 from adafruit/init_lib
library and simpletest example
2 parents cf5602c + a66e4d1 commit 2c25099

File tree

6 files changed

+1183
-19
lines changed

6 files changed

+1183
-19
lines changed

README.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ This driver depends on:
3030

3131
* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_
3232
* `Bus Device <https://github.com/adafruit/Adafruit_CircuitPython_BusDevice>`_
33-
* `Register <https://github.com/adafruit/Adafruit_CircuitPython_Register>`_
3433

3534
Please ensure all dependencies are available on the CircuitPython filesystem.
3635
This is easily achieved by downloading
@@ -94,8 +93,19 @@ Usage Example
9493

9594
.. code-block:: python
9695
96+
import time
97+
import board
9798
import adafruit_sen6x
9899
100+
i2c = board.I2C()
101+
sensor = adafruit_sen6x.SEN66(i2c)
102+
sensor.start_measurement()
103+
time.sleep(2)
104+
if sensor.data_ready:
105+
data = sensor.all_measurements()
106+
print(data)
107+
time.sleep(2)
108+
99109
Documentation
100110
=============
101111
API documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/sen6x/en/latest/>`_.

0 commit comments

Comments
 (0)