35 lines
783 B
ReStructuredText
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:
|