|
| 1 | +# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries |
| 2 | +# SPDX-FileCopyrightText: Copyright (c) 2021 Gaston Williams |
| 3 | +# |
| 4 | +# SPDX-License-Identifier: MIT |
1 | 5 | # The MIT License (MIT)
|
2 | 6 | #
|
3 | 7 | # Copyright (c) 2019 Gaston Williams
|
|
52 | 56 | * Adafruit's Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice
|
53 | 57 | """
|
54 | 58 |
|
| 59 | +# imports__version__ = "0.0.0-auto.0" |
55 | 60 | __version__ = "0.0.0-auto.0"
|
56 | 61 | __repo__ = "https://github.com/fourstix/Sparkfun_CircuitPython_QwiicAS3935.git"
|
57 | 62 |
|
58 | 63 | # imports
|
59 |
| -from abc import ABC, abstractmethod |
60 | 64 | from time import sleep
|
61 | 65 | from micropython import const
|
62 | 66 |
|
|
106 | 110 | _DIV_MASK = const(0x3F)
|
107 | 111 |
|
108 | 112 | # abstract base class
|
109 |
| -class Sparkfun_QwiicAS3935(ABC): |
| 113 | +class Sparkfun_QwiicAS3935: |
110 | 114 | """Abstract base class for Sparkfun AS3935 Lightning Detector.
|
111 | 115 | Use the appropriate driver subclass Sprarkfun_QwiicAS3935_I2C() for I2C
|
112 | 116 | or Sparkfun_QwiicAS3935_SPI() for SPI."""
|
@@ -511,15 +515,12 @@ def tune_cap(self, value):
|
511 | 515 | self._write_register_bits(_FREQ_DISP_IRQ, _CAP_MASK, reg_value, 0)
|
512 | 516 |
|
513 | 517 | # abstract methods
|
514 |
| - @abstractmethod |
515 | 518 | def _read_register(self, register):
|
516 | 519 | pass
|
517 | 520 |
|
518 |
| - @abstractmethod |
519 | 521 | def _read_byte(self, register):
|
520 | 522 | pass
|
521 | 523 |
|
522 |
| - @abstractmethod |
523 | 524 | def _write_register(self, register, value):
|
524 | 525 | pass
|
525 | 526 |
|
|
0 commit comments