@@ -18,7 +18,7 @@ Start libraries with the cookiecutter
18
18
Cookiecutter is a tool that lets you bootstrap a new repo based on another repo.
19
19
We've made one `here <https://github.com/adafruit/cookiecutter-adafruit-circuitpython >`_
20
20
for CircuitPython libraries that include configs for Travis CI and ReadTheDocs
21
- along with a setup.py, license, code of conduct and readme.
21
+ along with a setup.py, license, code of conduct, readme among other files .
22
22
23
23
.. code-block::sh
24
24
@@ -252,7 +252,7 @@ At the class level document what class does and how to initialize it::
252
252
"""DS3231 real-time clock.
253
253
254
254
:param ~busio.I2C i2c_bus: The I2C bus the DS3231 is connected to.
255
- :param int address: The I2C address of the device.
255
+ :param int address: The I2C address of the device. Defaults to :const:`0x40`
256
256
"""
257
257
258
258
def __init__(self, i2c_bus, address=0x40):
@@ -267,7 +267,7 @@ Renders as:
267
267
DS3231 real-time clock.
268
268
269
269
:param ~busio.I2C i2c_bus: The I2C bus the DS3231 is connected to.
270
- :param int address: The I2C address of the device.
270
+ :param int address: The I2C address of the device. Defaults to :const: ` 0x40 `
271
271
272
272
Attributes
273
273
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -516,6 +516,15 @@ when using ``const()``, keep in mind these general guide lines:
516
516
- If user will not need access to variable, prefix name with a leading
517
517
underscore, ex: ``_SOME_CONST ``.
518
518
519
+ Libraries Examples
520
+ ------------------
521
+ When adding examples, cookiecutter will add a ``<name>_simpletest.py `` file in the examples directory for you.
522
+ Be sure to include code with the library minimal functionalities to work on a device.
523
+ You could other examples if needed featuring different
524
+ functionalities of the library.
525
+ If you add additional examples, be sure to include them in the ``examples.rst ``. Naming of the examples
526
+ files should use the name of the library followed by a description, using underscore to separate them.
527
+
519
528
Sensor properties and units
520
529
--------------------------------------------------------------------------------
521
530
@@ -536,17 +545,17 @@ properties.
536
545
+-----------------------+-----------------------+-------------------------------------------------------------------------+
537
546
| ``gyro `` | (float, float, float) | x, y, z radians per second |
538
547
+-----------------------+-----------------------+-------------------------------------------------------------------------+
539
- | ``temperature `` | float | degrees centigrade |
548
+ | ``temperature `` | float | degrees Celsius |
540
549
+-----------------------+-----------------------+-------------------------------------------------------------------------+
541
550
| ``CO2 `` | float | measured CO2 in ppm |
542
551
+-----------------------+-----------------------+-------------------------------------------------------------------------+
543
552
| ``eCO2 `` | float | equivalent/estimated CO2 in ppm (estimated from some other measurement) |
544
553
+-----------------------+-----------------------+-------------------------------------------------------------------------+
545
554
| ``TVOC `` | float | Total Volatile Organic Compounds in ppb |
546
555
+-----------------------+-----------------------+-------------------------------------------------------------------------+
547
- | ``distance `` | float | centimeters |
556
+ | ``distance `` | float | centimeters (cm) |
548
557
+-----------------------+-----------------------+-------------------------------------------------------------------------+
549
- | ``proximity `` | int | non-unit-specifc proximity values (monotonic but not actual distance) |
558
+ | ``proximity `` | int | non-unit-specific proximity values (monotonic but not actual distance) |
550
559
+-----------------------+-----------------------+-------------------------------------------------------------------------+
551
560
| ``light `` | float | non-unit-specific light levels (should be monotonic but is not lux) |
552
561
+-----------------------+-----------------------+-------------------------------------------------------------------------+
@@ -568,7 +577,7 @@ properties.
568
577
+-----------------------+-----------------------+-------------------------------------------------------------------------+
569
578
| ``duty_cycle `` | int | 16-bit PWM duty cycle (regardless of output resolution) |
570
579
+-----------------------+-----------------------+-------------------------------------------------------------------------+
571
- | ``frequency `` | int | Hertz |
580
+ | ``frequency `` | int | Hertz (Hz) |
572
581
+-----------------------+-----------------------+-------------------------------------------------------------------------+
573
582
| ``value `` | bool | Digital logic |
574
583
+-----------------------+-----------------------+-------------------------------------------------------------------------+
@@ -592,9 +601,8 @@ mimic the structure in ``shared-bindings``.
592
601
To test your native modules or core enhancements, follow these Adafruit Learning Guides
593
602
for building local firmware to flash onto your device(s):
594
603
595
- `SAMD21 - Build Firmware Learning Guide <https://learn.adafruit.com/micropython-for-samd21/build-firmware >`_
604
+ `Build CircuitPython <https://learn.adafruit.com/building-circuitpython >`_
596
605
597
- `ESP8266 - Build Firmware Learning Guide <https://learn.adafruit.com/building-and-running-micropython-on-the-esp8266/overview >`_
598
606
599
607
MicroPython compatibility
600
608
--------------------------------------------------------------------------------
0 commit comments