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 #include statement was automatically added by the Particle IDE. | |
#include <Particle-GPS.h> | |
#include <ParticleSoftSerial.h> | |
#include "Particle.h" | |
//note that the number of live reservations in the system is stored in eeprom location 2046 (i.e. the last slot) | |
//This is licensed under GPL V3. | |
//status: |
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 #include statement was automatically added by the Particle IDE. | |
#include <ParticleSoftSerial.h> | |
/***************************************************************************** | |
* ParticleSoftSerial library (PSS_SimpleTest.ino) | |
* Copyright (c) 2016 Free Software Foundation. All right reserved. | |
* Written by Andreas Rothenw�nder (aka ScruffR) | |
* | |
* This sample shows sends data from Serial1 to ParticleSoftSerial(D2/D3) | |
* |
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
/****************************************************************************/ | |
// Function: Set time and get the time from RTC chip(PCD85063TP) and display | |
// it on the serial monitor. | |
// Hardware: Grove - RTC v2.0 | |
// Arduino IDE: Arduino-1.6.6 | |
// Author: lambor | |
// Date: June 14,2016 | |
// Version: v1.0 | |
// by www.seeedstudio.com | |
// |
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
/* | |
Description: | |
Development firmware for the CosmicPi V1.5. | |
With this one can set the high voltage and thresholds for the detector on the fly, all while listening to all events. | |
It indicates detections on all three channels - A for one slab, B for the other slab and C for a coincidence event. | |
Usage: | |
Set sensible default values for: | |
The high voltage: HV_DEFAULT_VAL | |
Both thresholds: Thresh_default_val |
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
// ----------------------------------- | |
// Controlling LEDs over the Internet | |
// ----------------------------------- | |
// First, let's create our "shorthand" for the pins | |
// Same as in the Blink an LED example: | |
// led1 is D0, led2 is D7 | |
int Relay1 = D4; | |
int Relay2 = D5; |
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
/***************************************************************************** | |
* ParticleSoftSerial library (PSS_SimpleTest.ino) | |
* Copyright (c) 2016 Free Software Foundation. All right reserved. | |
* Written by Andreas Rothenw�nder (aka ScruffR) | |
* | |
* This sample shows sends data from Serial1 to ParticleSoftSerial(D2/D3) | |
* | |
* Prerequisites: | |
* import SparkIntervalTimer library (by Paul Kourany) | |
* wire Serial1 TX to D2 |
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
//unnamed project | |
int MaxSegments = 5; | |
int leftorright = 3; //1 = left, 3 = right |
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
/* | |
Features: | |
Working: | |
Set HV | |
Set Threshold | |
Print out events | |
ToDo: | |
Print precise GPS timestamps for events | |
HV calibration? |
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
#include <Wire.h> | |
//this code sets values in the MAX5387LAUD+ via I2C. | |
//it then reads back those values over A1 and A2 inputs | |
//The ADC is set to 12 bits for the DUE | |
//Channels are scanned in parallel (0 to 255) | |
//then alternatively ascending and descending. | |
//Output is a CSV over serial at 9600bps. | |
//this test works when testing with board 2 |