+
+
 /*
 This code takes input from two pushbuttons and i2c serial communications, and
 outputs a PWM squarewave to control two LED MINIPUCK constant current drivers.

Code borrowed from some of the tutorials at https://www.arduino.cc/en/Tutorial/HomePage
*/

#include <arduino.h>
#include <wire.h>

const byte frontLED 1; //digital pin 1 (PWM) - Output
const byte backLED  4; //digital pin 4 (PWM) - Output
const byte frontSwitch 3; //digital pin 3 - Input
const byte backSwitch 5; //digital pin 5 - Input
const byte slaveAddress 8;
//SDA = pin D0
//SCL = pin D2


}

void receiveEvent(int quantity){
  frontLEDpulse = Wire.read();
  backLEDpulse = Wire.read();
}

void ledOFF(int pin){
