Skip to content

Commit 5147642

Browse files
committed
Add files to follow Qwiic_Template.py
1 parent fab84d9 commit 5147642

File tree

21 files changed

+876
-0
lines changed

21 files changed

+876
-0
lines changed

.readthedocs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
python:
2+
version: 3
3+
install:
4+
- requirements: docs/requirements.txt
5+
setup_py_install: true

DESCRIPTION.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Qwiic Alphanumeric Python Package
2+
=============================================
3+
4+
This package controls individual segments of the 14-segment, alphanumeric displays.
5+
The user can print full strings, adjust brightness, and set the blink rate of their display.

LICENSE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright 2019 SparkFun Electronics
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 571 additions & 0 deletions
Large diffs are not rendered by default.

docs/_static/favicon.ico

894 Bytes
Binary file not shown.

docs/apiref.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
API Reference
2+
==============
3+
4+
.. automodule:: qwiic_alphanumeric
5+
:members:

docs/conf.py

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Configuration file for the Sphinx documentation builder.
2+
#
3+
# This file only contains a selection of the most common options. For a full
4+
# list see the documentation:
5+
# http://www.sphinx-doc.org/en/master/config
6+
7+
# -- Path setup --------------------------------------------------------------
8+
9+
# If extensions (or modules to document with autodoc) are in another directory,
10+
# add these directories to sys.path here. If the directory is relative to the
11+
# documentation root, use os.path.abspath to make it absolute, like shown here.
12+
#
13+
import os
14+
import sys
15+
sys.path.insert(0, os.path.abspath('.'))
16+
17+
18+
# -- Project information -----------------------------------------------------
19+
20+
project = 'sparkfun_qwiic_alphanumeric_py'
21+
copyright = '2021, SparkFun Electronics'
22+
author = 'SparkFun Electronics'
23+
24+
# The full version, including alpha/beta/rc tags
25+
release = '0.0.01'
26+
27+
28+
# -- General configuration ---------------------------------------------------
29+
30+
# Add any Sphinx extension module names here, as strings. They can be
31+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
32+
# ones.
33+
extensions = [
34+
'sphinx.ext.autodoc',
35+
'sphinx.ext.intersphinx',
36+
'sphinx.ext.viewcode',
37+
'm2r2'
38+
]
39+
40+
source_suffix = ['.rst', '.md']
41+
# Add any paths that contain templates here, relative to this directory.
42+
templates_path = ['_templates']
43+
44+
master_doc = 'index'
45+
# List of patterns, relative to source directory, that match files and
46+
# directories to ignore when looking for source files.
47+
# This pattern also affects html_static_path and html_extra_path.
48+
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
49+
50+
51+
# -- Options for HTML output -------------------------------------------------
52+
53+
# The theme to use for HTML and HTML Help pages. See the documentation for
54+
# a list of builtin themes.
55+
#
56+
import sphinx_rtd_theme
57+
html_theme = 'sphinx_rtd_theme'
58+
html_theme_path = [sphinx_rtd_theme.get_html_theme_path(), '.']
59+
60+
# Add any paths that contain custom static files (such as style sheets) here,
61+
# relative to this directory. They are copied after the builtin static files,
62+
# so a file named "default.css" will overwrite the builtin "default.css".
63+
html_static_path = ['_static']
64+
65+
html_favicon = '_static/favicon.ico'
66+
67+
68+
69+

docs/ex1.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
Example One - Begin
3+
---------------------------
4+
.. literalinclude:: ../examples/qwiic_alphanumeric_ex01_begin.py
5+
:caption: examples/qwiic_alphanumeric_ex01_begin.py
6+
:linenos:
7+

docs/ex10.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
Example Ten - Scrolling String
3+
-----------------------------------
4+
.. literalinclude:: ../examples/qwiic_alphanumeric_ex10_scrolling_string.py
5+
:caption: examples/qwiic_alphanumeric_ex10_scrolling_string.py
6+
:linenos:

docs/ex2.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
Example Two - Turn on one Segment
3+
-----------------------------------
4+
.. literalinclude:: ../examples/qwiic_alphanumeric_ex02_turn_on_one_segment.py
5+
:caption: examples/qwiic_alphanumeric_ex02_turn_on_one_segment.py
6+
:linenos:

0 commit comments

Comments
 (0)