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
| ''' | |
| This is an example script displaying how to easily run the | |
| Alphasense OPC-N2 from a Raspberry Pi using the py-opc library. | |
| Author: David H Hagan | |
| Email: david@davidhhagan.com | |
| Date: 2015-06-16 | |
| ''' | |
| from opc import OPCN2 |
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
| ''' | |
| Written by David Hagan | |
| January 8, 2015 | |
| This script reads data from the Bacharach ECA 450 Combustion analyzer through the serial interface and | |
| logs the data to a file | |
| In the future (If I ever use the Bacharach again), I aim to convert this into a GUI for ease of use. | |
| Description of Columns: |
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
| /* | |
| print_time() returns a string in the format mm-dd-yyyy hh:mm:ss | |
| */ | |
| #include "RTClib.h" | |
| #include <SD.h> | |
| #include <SPI.h> | |
| RTC_DS1307 rtc; | |
| const int chipSelect = 10; |
NewerOlder