iabdalkader
e88aa3af16
lsm6dsox: Refactor driver.
...
Changes are:
- fix typos
- make constants global
- rename functions with double underscore to single underscore
- rename __init__ keyword argument cs_pin -> cs
- rename read_mlc_output() -> mlc_output()
- rename read_gyro() -> gyro()
- rename read_accel() -> accel()
- update manifest
2023-02-18 15:51:53 +11: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
Jim Mussared
a08087249f
top: Update Python formatting to black "2023 stable style".
...
See https://black.readthedocs.io/en/stable/the_black_code_style/index.html
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2023-02-03 17:12:38 +11:00
Peter Hinch
d1aaec7174
nrf24l01: Improve test to add RP2 support, fix ESP32.
...
Use explicit pin numbers to instantiate the SPI interface on RP2.
On ESP32 use SoftSPI(...) rather than SPI(-1, ...).
Update terminology to initiator/responder.
Tested with two Pico boards.
2022-11-15 23:50:04 +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
Jim Mussared
6fca45f4f5
sdcard: Set MISO high before readblocks/writeblocks.
...
Originally by @peterhinch.
See https://github.com/micropython/micropython/pull/6007 for discussion.
The summary is that on some cards (especially older Kingston ones) if the
bus is shared with other SPI devices, then it seems to require that MISO
is high for a few cycles before the transaction is initiated.
Because CS is high, this change should otherwise be a no-op.
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-11-14 22:46:37 +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
cf5ed97b4d
micropython/drivers: Move "sdcard" driver from main repo.
...
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-09-06 13:21:57 +10: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
Jim Mussared
c1c0eb0c39
micropython/drivers: Move "nrf24l01" radio driver from main repo.
...
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-09-06 13:21:52 +10:00
Jim Mussared
f46401f849
micropython/drivers: Move "neopixel" led driver from main repo.
...
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-09-06 13:21:50 +10:00
Jim Mussared
75d129b96f
micropython/drivers: Move "lsm6sox" imu driver from main repo.
...
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-09-06 13:21:48 +10:00
Jim Mussared
fd84cd92f3
micropython/drivers: Move "lsm9ds1" imu driver from main repo.
...
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-09-06 13:21:44 +10:00
Jim Mussared
a5e2f3239c
micropython/drivers: Move "ssd1306" display driver from main repo.
...
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-09-06 13:21:40 +10:00
Jim Mussared
d88505680f
micropython/drivers: Move "lcd160cr" display driver from main repo.
...
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-09-06 13:21:35 +10:00
Jim Mussared
2a849f5ec0
micropython/drivers: Move "wm8960" codec driver from main repo.
...
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-09-06 13:21:30 +10:00
Jim Mussared
34c9faefd1
micropython/drivers: Move "onewire" bus driver from main repo.
...
Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-09-06 13:21:26 +10:00