Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 <SPI.h> | |
#include <Wire.h> | |
//updated to include a whole bunch of extra functions 120818 | |
/* Cosmic Pi SPI test routines - Master version, slave is commented out below. Runs on an Arduino DUE, | |
Pinouts: | |
MOSI - MOSI | |
MISO - MISO | |
SCK - SCK | |
Pin 10 - Pin 10 (SS) | |
GND - GND |
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
The source code and project moved here: https://github.com/HenniOVP/OV7607_sccb_configuration |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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: | |
Event/Interrupt recording firmware for the Arduino DUE. | |
The firmware can record events from different detectors with sufficent precision. | |
The resulting output can be recorded to calculate coincidence rates. | |
Usage: | |
Set pins that are supposed to be used as detection interrupts. | |
Attach interrupts to those pins and give them fitting names. (See example further down) | |
Flash firmware to DUE. | |
Record serial output with: https://gist.github.com/HenniOVP/3ee85aee16575391f46451dbd566b0ef |
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 events. | |
Usage: | |
Set sensible default values for: | |
The high voltage: HV_DEFAULT_VAL | |
Both thresholds: Thresh_default_val | |
Wether to use the DAC or the MAX5387 for thershold setting: useDAC |
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
//flash the red/green LED on the cosmic Pi analogue board when | |
//it's connected directly to the Arduino DUE | |
int LED1_pin = 12; // green and lower one | |
int LED2_pin = 11; // red and upper one | |
void setup() { | |
Serial.begin(115200); | |
Serial.println("Cosmic Pi Status: Alive"); |
NewerOlder