From 8415d2594b5e644abd15f57ab5e2e4a95a3ce9cd Mon Sep 17 00:00:00 2001 From: Simon Albinsson Date: Sat, 7 Apr 2018 22:52:33 +0000 Subject: [PATCH] Short warning about the general call command --- sgp30/sgp30.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/sgp30/sgp30.py b/sgp30/sgp30.py index 1f6d4a8..04578e7 100644 --- a/sgp30/sgp30.py +++ b/sgp30/sgp30.py @@ -68,6 +68,15 @@ class Sgp30(): sleep(15) def i2c_geral_call(bus): + """This attempts to reset _ALL_ devices on the i2c buss + + This command issues the i2c-general call RW command that should result + in all devices aborting any read/write operations and starting to listen + for new i2c-commands. + + This will usually un-stick the SGP30, but might reset or otherwise + affect any device on the bus. + """ bus.write_byte(0,0x06) sleep(.1)