diff --git a/README.rst b/README.rst index eb5f3a2..bdaa12f 100644 --- a/README.rst +++ b/README.rst @@ -58,4 +58,3 @@ Take a look at the examples directory Documentation ============= API documentation for this library can be found on `Read the Docs <https://micropython-qmc5883l.readthedocs.io/en/latest/>`_. - diff --git a/examples/qmc5883l_advanced_settings.py b/examples/qmc5883l_advanced_settings.py index ed16c7a..f9a293a 100644 --- a/examples/qmc5883l_advanced_settings.py +++ b/examples/qmc5883l_advanced_settings.py @@ -3,7 +3,6 @@ # SPDX-License-Identifier: MIT # pylint: disable=protected-access -import time from machine import Pin, I2C from micropython_qmc5883l import qmc5883l diff --git a/examples/qmc5883l_magnetic_compass.py b/examples/qmc5883l_magnetic_compass.py index b575523..ecce49a 100644 --- a/examples/qmc5883l_magnetic_compass.py +++ b/examples/qmc5883l_magnetic_compass.py @@ -7,6 +7,7 @@ """ import time +from math import atan2, degrees from machine import Pin, I2C from micropython_qmc5883l import qmc5883l diff --git a/examples/qmc5883l_simpletest.py b/examples/qmc5883l_simpletest.py index 7145fb8..2d8117a 100644 --- a/examples/qmc5883l_simpletest.py +++ b/examples/qmc5883l_simpletest.py @@ -12,4 +12,4 @@ while True: mag_x, mag_y, mag_z = qmc.magnetic print("x:{:.2f}Gs, y:{:.2f}Gs, z{:.2f}Gs".format(mag_x, mag_y, mag_z)) - time.sleep(0.3) \ No newline at end of file + time.sleep(0.3) diff --git a/micropython_qmc5883l/qmc5883l.py b/micropython_qmc5883l/qmc5883l.py index 61dd0cc..0bae391 100644 --- a/micropython_qmc5883l/qmc5883l.py +++ b/micropython_qmc5883l/qmc5883l.py @@ -17,12 +17,6 @@ from micropython import const from micropython_qmc5883l.i2c_helpers import CBits, RegisterStruct -try: - from typing import Tuple -except ImportError: - pass - - __version__ = "0.0.0+auto.0" __repo__ = "https://github.com/jposada202020/MicroPython_QMC5883L.git"