Wykres commitów

16 Commity (85a7138626a2bd2e0b47505605c409163bfae67d)

Autor SHA1 Wiadomość Data
MarcoMiano 85a7138626
Merge ce1e03fbef into 68e0dfce0a 2025-04-27 14:28:28 +00:00
Angus Gratton 68e0dfce0a all: Apply Ruff 0.11.6 reformatting changes.
Signed-off-by: Angus Gratton <angus@redyak.com.au>
2025-04-24 16:54:10 +10:00
MarcoMiano ce1e03fbef
drivers/sensor/mcp9808: Fixed regression made by ruff suggestions.
ruff suggest to use .isinstance() to check class type but bool doen't
have .isinstance() method.

ruff suggest to use only float in some places but i don't like it
the code should be more flexible.

Signed-off-by: MarcoMiano <58668074+MarcoMiano@users.noreply.github.com>
2025-01-01 22:02:36 +01:00
MarcoMiano ae8ee514ef
drivers/sensor/mcp9808: Activate actions to publish package from fork
Signed-off-by: MarcoMiano <58668074+MarcoMiano@users.noreply.github.com>
2025-01-01 21:37:53 +01:00
MarcoMiano 233ec2987a
drivers/sensor/mcp9808: Ruff formatting.
Signed-off-by: MarcoMiano <58668074+MarcoMiano@users.noreply.github.com>
2025-01-01 21:20:08 +01:00
MarcoMiano 0d2e56c7e8
drivers/sensor/mcp9808: Add MCP9808 temperature sensor driver.
Add single-file module for the Microchip MCP9808 precision temperature
sensor. The module provides a class for reading the temperature and for
configuring the sensor. It has type/value checking for some of the
critical parts of the configuration as well as a debug mode for easier
testing during development.

It includes a test file designe to run directly on a board with a sensor
connected to test both the module and the sensor.

Both module and tests file are thoroughly documented in the code
directly. For more information read README.md on MarcoMiano/mip-mcp9808

Signed-off-by: MarcoMiano <58668074+MarcoMiano@users.noreply.github.com>
2025-01-01 21:09:17 +01:00
Angus Gratton 786c0ea895 all: Add missing const imports
Found by Ruff checking F821.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
2023-08-22 22:43:18 +10:00
Jim Mussared afc9d0a541 micropython: Add missing metadata for packages.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-04-07 13:24:15 +10:00
iabdalkader 203e1e63b1 hs3003: Add new relative humidity and temperature sensor driver.
Renesas HS3003 Humidity and Temperature sensor driver.
2023-02-18 15:50:57 +11:00
Fredrik Strupe 4556023a0c sensor/mhz19: Add driver for MH-Z19 (CO2 sensor).
Originally by Fredrik Strupe, updated for micropython-lib.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-11-15 23:06:42 +11:00
robert-hh 2b07820df3 dht: Fix regression importing dht_readinto from pyb.
sys.platform of Pyboard is "pyboard", not "pyb".
2022-11-10 11:13:37 +11:00
robert-hh 0e25b109c2 dht: Change the sequence for importing dht_readinto.
Check the machine module first, then search in previous places.  This
supports having machine.dht_readinto as the new standard, while still being
backwards compatible.
2022-11-08 18:23:26 +11:00
Jim Mussared 33b5132312 micropython/drivers: Move "lps22h" sensor driver from main repo.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-09-06 13:21:56 +10:00
Jim Mussared b3e443ca8e micropython/drivers: Move "hts221" sensor driver from main repo.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-09-06 13:21:55 +10:00
Jim Mussared a336c29cc5 micropython/drivers: Move "dx18x20" sensor driver from main repo.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-09-06 13:21:54 +10:00
Jim Mussared 0382c9cffa micropython/drivers: Move "dht" sensor driver from main repo.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-09-06 13:21:53 +10:00