.env
build*
bundles
+*.DS_Store
.. automodule:: adafruit_blinka
:members:
+
+.. automodule:: adafruit_blinka.agnostic
+ :members:
+
+.. automodule:: adafruit_blinka.microcontroller
+ :members:
+
+.. automodule:: bitbangio
+ :members:
+
+.. automodule:: board
+ :members:
+
+.. automodule:: busio
+ :members:
+
+.. automodule:: digitalio
+ :members:
import os
import sys
-sys.path.insert(0, os.path.abspath('..'))
+sys.path.insert(0, os.path.abspath('../src'))
# -- General configuration ------------------------------------------------
# Uncomment the below if you use native CircuitPython modules such as
# digitalio, micropython and busio. List the modules you use. Without it, the
# autodoc module docs will fail to generate with a warning.
-# autodoc_mock_imports = ["digitalio", "busio"]
+autodoc_mock_imports = ["machine"]
-intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None),'CircuitPython': ('https://circuitpython.readthedocs.io/en/latest/', None)}
+intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None),
+ 'CircuitPython': ('https://circuitpython.readthedocs.io/en/latest/', None)}
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
-Simple test
-------------
+examples
+--------
-Ensure your device works with this simple test.
-
-.. literalinclude:: ../examples/blinka_simpletest.py
- :caption: examples/blinka_simpletest.py
- :linenos:
+No examples are currently available. See the `CircuitPython docs
+<https://circuitpython.readthedocs.io/>`_ for extensive API documentation.
api
-.. toctree::
- :caption: Tutorials
-
-.. todo:: Add any Learn guide links here. If there are none, then simply delete this todo and leave
- the toctree above for use later.
-
-.. toctree::
- :caption: Related Products
-
-.. todo:: Add any product links here. If there are none, then simply delete this todo and leave
- the toctree above for use later.
-
.. toctree::
:caption: Other Links
-"""Module providing runtime utility objects to support the Micro/CircuitPython api"""
+"""
+`adafruit_blinka` - Runtime utility objects for re-implementation of CircuitPython API
+======================================================================================
+* Author(s): cefn
+"""
class Enum(object):
"""
+"""
+`bitbangio` - Bitbanged bus protocols
+==============================================================
+
+See `CircuitPython:bitbangio` in CircuitPython for more details.
+
+* Author(s): cefn
+"""
+
from adafruit_blinka import Lockable, agnostic
"""
`board` - Define ids for available pins
=================================================
-Conditionally imports and re-exports a submodule, such as boards.esp8266 based on
-platform introspection
+
+See `CircuitPython:board` in CircuitPython for more details.
* Author(s): cefn
"""
+import sys
-import gc
-gc.collect()
from adafruit_blinka.agnostic import board
-gc.collect()
if board == "feather_huzzah":
from adafruit_blinka.board.feather_huzzah import *
from adafruit_blinka.board.nodemcu import *
elif board == "pyboard":
from adafruit_blinka.board.pyboard import *
+elif "sphinx" in sys.modules:
+ pass
else:
raise NotImplementedError("Board not supported")
-gc.collect()
+"""
+`busio` - Bus protocol support like I2C and SPI
+=================================================
+
+See `CircuitPython:busio` in CircuitPython for more details.
+
+* Author(s): cefn
+"""
+
from adafruit_blinka import Enum, Lockable, agnostic
class I2C(Lockable):
+"""
+`digitalio` - Digital input and output control
+=================================================
+
+See `CircuitPython:digitalio` in CircuitPython for more details.
+
+* Author(s): cefn
+"""
+
from machine import Pin
from adafruit_blinka.agnostic import board as boardId
from adafruit_blinka import Enum, ContextManaged
-
class DriveMode(Enum):
PUSH_PULL = None
OPEN_DRAIN = None