This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-FileCopyrightText: Copyright (c) 2023 Jose D. Montoya | |
| # | |
| # SPDX-License-Identifier: MIT | |
| """ | |
| `dps310` | |
| ================================================================================ | |
| MicroPython Driver for the DPS310 Barametric Sensor | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| import displayio | |
| import board | |
| import terminalio | |
| from gauge import gauge | |
| from ulab import numpy as np | |
| from circuitpython_uplot.uplot import Uplot | |
| from circuitpython_uplot.ucartesian import ucartesian | |
| from circuitpython_simple_dial.simple_dial import Dial | |
| from circuitpython_simple_dial.dial_needle import needle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-FileCopyrightText: 2023 Jose D. Montoya | |
| # | |
| # SPDX-License-Identifier: MIT | |
| """ | |
| `rotary_slider` | |
| ================================================================================ | |
| A slider widget with a circular shape shape. | |
| * Author(s): Jose David M. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-FileCopyrightText: 2017 Tony DiCola for Adafruit Industries | |
| # | |
| # SPDX-License-Identifier: MIT | |
| """ | |
| `adafruit_mpl3115a2` | |
| ==================================================== | |
| CircuitPython module for the MPL3115A2 barometric pressure & temperature sensor. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| # SPDX-FileCopyrightText: 2021 Hugo Dahl for Adafruit Industries | |
| # SPDX-FileCopyrightText: 2021 Jose David M. | |
| # SPDX-License-Identifier: MIT | |
| # Before you can run this example, you will need to install the | |
| # required libraries identifies in the `requirements.txt` file. | |
| # You can do so automatically by using the "pip" utility. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from os import uname | |
| import board | |
| def get_pin_definition(pinid): | |
| controller = uname()[0] | |
| machine = uname()[4] | |
| if controller == 'esp32s2': | |
| boardspins = {'A0': board.A0, 'A1': board.A1, 'A2': board.A2, 'A3': board.A3, 'A4': board.A4, 'A5': board.A5, | |
| 'IO1': board.IO1, 'IO2': board.IO2, 'IO3': board.IO3, 'IO4': board.IO4, 'IO5': board.IO5, 'IO6': board.IO6, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import digitalio | |
| from digitalio import Pull | |
| import time | |
| from adafruit_onewire.bus import OneWireBus | |
| from adafruit_ds18x20 import DS18X20 | |
| from random import randint | |
| import pulseio | |
| import board | |
| import analogio | |
| import displayio |