This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Provides utility functions for checking/accessing sObject properties | |
| Updates: | |
| - Namespace no longer required | |
| - Replaced getPopulatedFieldsAsMap() with a plain try catch to improve speed | |
| - Allowed for returns of SObjects | |
| - Throw out SObjectException where the field exists but wasn't queried | |
| To Do: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| import time, signal, sys | |
| from Adafruit_ADS1x15 import ADS1x15 | |
| def signal_handler(signal, frame): | |
| print 'You pressed Ctrl+C!' | |
| sys.exit(0) | |
| signal.signal(signal.SIGINT, signal_handler) | |
| #print 'Press Ctrl+C to exit' |