Skip to content

Instantly share code, notes, and snippets.

@heborras
heborras / I2C_scan.ino
Last active October 12, 2017 09:44
A utility for scanning the I2C bus 0 and 1 of an Arduino DUE.
#include <Wire.h>
void i2cs(int arg) {
int adr, err, cnt;
Serial.print("Scanning bus: ");
Serial.println(arg);
cnt = 0;
This file has been truncated, but you can view the full file.
b'Setting HV 1&2 to: 104\n'
b'Detector setup finished\n'
b'INFO: Sensor setup complete\n'
b'INFO: Running\n'
b'Date: Year:0; Month:0; Day:0;\n'
b'Time: Hr:0; Mn:0; Sc:0;\n'
b'Location: Lat:0.000000; Long:0.000000; Alti:0.000000;\n'
b'PPS: GPS lock:0; time_ok:0; date_ok:0;\n'
b'Event: Hr0; Mn:0; Sc:1; us:1630; Event Count:1\n'
b'Event: Hr0; Mn:0; Sc:1; us:48121; Event Count:2\n'
@heborras
heborras / 20171006_V1-5_output.txt
Created October 6, 2017 12:42
Output from the CosmicPi V1.5 2slab prototype, running in Markus office
This file has been truncated, but you can view the full file.
b'Setting HV 1&2 to: 104\n'
b'Detector setup finished\n'
b'Running\n'
b'Event: Hr0; Mn:0; Sc:0; us:712906; Event Count:1\n'
b'PPS: Hr:0; Mn:0; Sc:0; GPS lock:0\n'
b'PPS: Hr:0; Mn:0; Sc:1; GPS lock:0\n'
b'PPS: Hr:0; Mn:0; Sc:2; GPS lock:0\n'
b'PPS: Hr:0; Mn:0; Sc:3; GPS lock:0\n'
b'Event: Hr0; Mn:0; Sc:4; us:464668; Event Count:2\n'
b'PPS: Hr:0; Mn:0; Sc:4; GPS lock:0\n'