File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 1+ 0.1.4
2+ -----
3+
4+ * Shim Thread.isAlive() for Python >=3.9
5+ * Fix R_INPUT_4_THRESH constant
6+
170.1.3
28-----
39
Original file line number Diff line number Diff line change 1111import signal
1212import threading
1313import time
14- from sys import exit , version_info
14+ from sys import version_info
1515
1616try :
1717 from smbus import SMBus
1818except ImportError :
1919 if version_info [0 ] < 3 :
20- exit ("This library requires python-smbus\n Install with: sudo apt-get install python-smbus" )
20+ raise ImportError ("This library requires python-smbus\n Install with: sudo apt-get install python-smbus" )
2121 elif version_info [0 ] == 3 :
22- exit ("This library requires python3-smbus\n Install with: sudo apt-get install python3-smbus" )
22+ raise ImportError ("This library requires python3-smbus\n Install with: sudo apt-get install python3-smbus" )
2323
2424try :
2525 import RPi .GPIO as GPIO
2626except ImportError :
27- exit ("This library requires the RPi.GPIO module\n Install with: sudo pip install RPi.GPIO" )
27+ raise ImportError ("This library requires the RPi.GPIO module\n Install with: sudo pip install RPi.GPIO" )
2828
29- __version__ = '0.1.3 '
29+ __version__ = '0.1.4 '
3030
3131# DEVICE MAP
3232DEFAULT_ADDR = 0x28
Original file line number Diff line number Diff line change 3636
3737setup (
3838 name = 'Cap1xxx' ,
39- version = '0.1.3 ' ,
39+ version = '0.1.4 ' ,
4040 author = 'Philip Howard' ,
4141 author_email = '[email protected] ' ,
4242 description = 'A module to drive various Microchip cap1xxx touch ICs' ,
You can’t perform that action at this time.
0 commit comments