HW/IT/SingleBoardComputers/Raspberry/Depot/0519OG_BasicGaboTool/II/simple/src/sketch.ino

#include <Arduino.h>
#include <string.h>


//default delay and output trigger length

int length = 4000;
bool enabled = false;

int wholes = 0;
int remain =5000-8;


const byte inPin = 2;
const byte outPin = 12;

void setup() {
  pinMode(inPin, INPUT);
  pinMode(outPin, OUTPUT);



  // Open serial communications and wait for port to open:
  Serial.begin(9600);
  while (!Serial) {
    ; // wait for serial port to connect. Needed for native USB port only
  }


  Serial.println("Welcome to arduino trigger system for GOLEM");

}

int incomingByte = 0;

void loop() {
		digitalWrite(outPin, HIGH);
		
                delay(1000);

                digitalWrite(outPin, LOW);

		exit(0); 

}