Skip to content

update libraries page and header links #741

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,10 @@
<a href="https://blog.adafruit.com/category/circuitpython">News</a>
<a {% if current[1] == 'awesome' %}class='active'{% endif %} href="{{ "/awesome" | relative_url }}">Awesome</a>
<a href="https://www.adafruitdaily.com/category/circuitpython">Newsletter</a>
<a href="https://circuitpython.readthedocs.io/">API</a>
<a href="https://forums.adafruit.com/viewforum.php?f=60">Help</a>
<span>
<a href="https://adafru.it/discord" aria-label="Discord"><i class="fab fa-discord"></i></a>
<a href="{{ '/feed.rss' | relative_url }}" type="application/rss+xml" aria-label="RSS Feed"><i class="fas fa-rss-square"></i></a>
</span>
<a href="https://circuitpython.readthedocs.io/">Documentation</a>
<a href="https://forums.adafruit.com/viewforum.php?f=60">Forums</a>
<a href="https://adafru.it/discord" aria-label="Discord"><i class="fab fa-discord"></i> Discord</a>
<a href="{{ '/feed.rss' | relative_url }}" type="application/rss+xml" aria-label="RSS Feed"><i class="fas fa-rss-square"></i> RSS</a>
</div>
</div>
</nav>
Expand Down
5 changes: 2 additions & 3 deletions _includes/header_mobile.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@
href="{{ "/awesome" | relative_url }}">Awesome</a></li>
<li><a href="https://www.adafruitdaily.com/category/circuitpython">Newsletter</a></li>
<li><a href="https://learn.adafruit.com/welcome-to-circuitpython">Get Started</a></li>
<li><a href="https://forums.adafruit.com/viewforum.php?f=60">Help</a></li>
<li><a href="https://adafru.it/discord">Discord</a></li>
<li><a href="https://forums.adafruit.com/viewforum.php?f=60">Forums</a></li>
<li><a href="https://adafru.it/discord" aria-label="Discord"><i class="fab fa-discord"></i> Discord</a></li>
</ul>
</nav>
</div>
<div class="bottom-bar"></div>
</header>

85 changes: 59 additions & 26 deletions libraries/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,62 +11,87 @@ <h1>CircuitPython Libraries</h1>
CircuitPython. They are designed for use with CircuitPython and may or may not
work with MicroPython. The bundle options are explained below.
<p>
CircuitPython libraries are separate files designed to work with CircuitPython code.
CircuitPython programs require a lot of information to run. CircuitPython is so simple
to use because most of this information is processed in the background and stored in
libraries. Some libraries are built into CircuitPython. Others are downloaded and
stored on your CIRCUITPY drive in a folder called lib.
CircuitPython libraries are written in Python. They provide additional functionality
and support external devices, beyond what is in CircuitPython itself.
Libraries are stored on your <b>CIRCUITPY</b> drive in a folder called <b>lib</b>.
For more information on using and managing libraries, see the
<a href="https://learn.adafruit.com/welcome-to-circuitpython/circuitpython-libraries">Welcome To CircuitPython Guide</a>.
</p>
<p>
The full list of all the CircuitPython libraries contained in the following bundles
can be found on the
<a href="https://circuitpython.readthedocs.io/projects/bundle/en/latest/drivers.html" title="">libraries page</a>.
<section>
<h2>Documentation</h2>
<p>
The
<a href="https://circuitpython.readthedocs.io/projects/bundle/en/latest/drivers.html" title="">libraries documentation page</a>
contains a categorized list of all the CircuitPython libraries included in the following bundles,
with links to the documentation for every library.
<h2>Download and Installation Instructions</h2>
<p>
The libraries in each release are compiled to .mpy for all recent major versions
of CircuitPython. Please download the bundle that matches the major version
of your CircuitPython. For example, if you are running 6.0.0 you should
download the 6.x bundle. The .mpy files are designed to take up less space on
your CIRCUITPY drive. Unless you have a specific reason, choose the appropiate
.mpy library bundle!
You can download all the available libraries in a zip-file bundle for all recent major
versions of CircuitPython. These bundles are updated daily, whenever any included library is updated.
</p>
<p>
The libraries in each release are supplied as <b>.mpy</b> files, which are compiled
versions of Python source code.
<strong>Make sure to download the bundle that matches the major version
of your CircuitPython</strong>, because the <b>.mpy</b> files can change between versions.
For example, if you are running 6.3.0 you should download the 6.x bundle.
</p>
<p>
The precompiled <b>.mpy</b> files take up less space on your CIRCUITPY drive than the <b>.py</b> files.
They also load faster, and for some low-RAM boards, are required because the <b>.py</b> files
are too large to compile on the board itself.
<strong>Unless you need the source version, choose the appropiate <b>.mpy</b> library bundle!</strong>
If you need to compile <b>.py</b> files to <b>.mpy</b>, you can
<a href="https://learn.adafruit.com/welcome-to-circuitpython/frequently-asked-questions#how-can-i-create-my-own-mpy-files-3020687-11">run the <b>mpy-cross</b>
cross-compiler yourself</a>.
</p>
<p>
<b>To install</b>, download the appropriate bundle for your version of CircuitPython.
Unzip the file, open the resulting folder and find the lib folder. Open the lib
folder and find the library files you need to load. Create a lib folder on your
CIRCUITPY drive. Copy the individual library files you need to the lib folder
on your CIRCUITPY drive.
Unzip the file, open the resulting folder and find the <b>lib</b> folder. Open the lib
folder and find the library files you need to load. Create a <b>lib</b> folder on your
CIRCUITPY drive. Copy the individual library files you need to the <b>lib</b> folder
on your CIRCUITPY drive. More details are available
<a href="https://learn.adafruit.com/welcome-to-circuitpython/circuitpython-libraries">here</a>.
</p>
<p>
You can always find the
<a href="https://github.com/adafruit/Adafruit_CircuitPython_Bundle/releases/latest">latest releases of the libraries bundle</a>
on GitHub.
</p>
<p>
An alternative way to download and update libraries on your board is to use the
<a href="https://learn.adafruit.com/keep-your-circuitpython-libraries-on-devices-up-to-date-with-circup">CircUp tool</a>,
which is under development.
</p>
</section>
<section>
<h2>Bundles</h2>
<div class="release-section">
<div id="adafruit-circuitpython-bundle-6.x-mpy">
<h3>Bundle Version 6.x</h3>
<h3>Bundle for Version 6.x</h3>
<p>
This bundle is built for use with CircuitPython 6.x.x. If you are using
CircuitPython 6, please download this bundle.
</p>
</div>
<div id="adafruit-circuitpython-bundle-7.x-mpy">
<h3>Bundle Version 7.x</h3>
<h3>Bundle for Version 7.x</h3>
<p>
This bundle is built for use with CircuitPython 7.x.x. If you are using
CircuitPython 7, please download this bundle.
CircuitPython 7, please download this bundle. The .mpy format has
changed for CircuitPython 7; 6.x .mpy files are not compatible.
</p>
</div>
<div id="adafruit-circuitpython-bundle-py">
<h3>Bundle Version py</h3>
<h3>Python Source Bundle</h3>
<p>
This bundle is the uncompiled source code for every library. It is not
This bundle is the uncompiled Python source code for every library. It is not
intended for general use! It is only recommended if you need to edit
a library file. This bundle works with all versions of CircuitPython.
a library file. This bundle works with all supported versions of CircuitPython.
</p>
</div>
<div id="adafruit-circuitpython-bundle-examples">
<h3>Bundle Examples</h3>
<h3>Examples Bundle</h3>
<p>
Every CircuitPython library has examples to go along with it. This bundle
contains every library example. This bundle will have examples that
Expand All @@ -76,6 +101,14 @@ <h3>Bundle Examples</h3>
</div>
</div>
</section>
<section>
<h2>The Community Bundle</h2>
<p>
The libraries in the bundles above are officially supported.
Additional libraries written and supported by community members are available in the
<a href="https://github.com/circuitpython/CircuitPython_Org_Bundle">Community Bundle</a>.
</p>
</section>
<section>
<h2>Contributing</h2>
<p>
Expand Down