Adafruit_CircuitPython_OPT4048/docs/examples.rst
foamyguy 93230faca4
Some checks failed
Build CI / test (push) Has been cancelled
interrupt pin example
2025-05-23 14:26:47 -05:00

35 lines
783 B
ReStructuredText

Simple test
------------
Ensure your device works with this simple test.
.. literalinclude:: ../examples/opt4048_simpletest.py
:caption: examples/opt4048_simpletest.py
:linenos:
Webserial example
-----------------
Output color data over serial for use with webserial page
.. literalinclude:: ../examples/opt4048_webserial.py
:caption: examples/opt4048_webserial.py
:linenos:
Interrupt Pin example
---------------------
Wait for the interrupt pin to be triggered, then read data.
.. literalinclude:: ../examples/opt4048_interruptpin.py
:caption: examples/opt4048_interruptpin.py
:linenos:
Full test
---------
Comprehensive test of features
.. literalinclude:: ../examples/opt4048_fulltest.py
:caption: examples/opt4048_fulltest.py
:linenos: