updating and renaming folders
This commit is contained in:
parent
417b22e36e
commit
b0086daea5
@ -10,42 +10,8 @@
|
|||||||
//======================================================
|
//======================================================
|
||||||
// HARDWARE SETUP & SELECTION
|
// HARDWARE SETUP & SELECTION
|
||||||
//======================================================
|
//======================================================
|
||||||
// Arduino MEGA
|
// Arduino Uno Or Nano Was The Hardware
|
||||||
#ifdef ARDUINO_AVR_MEGA2560
|
#ifdef ARDUINO_AVR_UNO || ARDUINO_AVR_NANO
|
||||||
//------------------------------------------------------
|
|
||||||
|
|
||||||
// Library Nessesary
|
|
||||||
#ifdef __AVR__
|
|
||||||
#include <avr/power.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// Serial Terminal
|
|
||||||
#define Terminal Serial // SERIAL PORT USED AS TERMINAL WINDO FOR DEBUG
|
|
||||||
#define isTerminal Terminal.available() // Terminal Serial Buffer Available
|
|
||||||
#define flushTerminal while(isTerminal) { Terminal.read(); }
|
|
||||||
|
|
||||||
// Bluetooth Terminal
|
|
||||||
#define Bluetooth Serial1 // We will Connect The HC-05 To Hardware Serial1 In Arduino Mega
|
|
||||||
#define isBluetooth Bluetooth.available() // Bluetooth Serial Buffer Available
|
|
||||||
#define flushBluetooth while(isBluetooth) { Bluetooth.read(); }
|
|
||||||
|
|
||||||
// JSON Object & Memory
|
|
||||||
#define CAPACITY 100
|
|
||||||
DynamicJsonDocument JSON(CAPACITY); // Building JSON Buffer
|
|
||||||
|
|
||||||
// LED Strip
|
|
||||||
#define LED_STRIP 53 // LED STRIP PIN NUMBER
|
|
||||||
#define NUM_PIXELS 14 // NUMBER OF LED'S IN NEO PIXEL STRIP
|
|
||||||
Adafruit_NeoPixel pixels = Adafruit_NeoPixel(NUM_PIXELS, LED_STRIP, NEO_GRB + NEO_KHZ800);
|
|
||||||
|
|
||||||
// Impact Detection
|
|
||||||
#define VTH 14 // THRESHOLD VOLTAGE FOR ZERO POSITIONNING KICKING POWER SENSOR
|
|
||||||
#define SENSOR_PIN A0 // IMPACT SENSOR
|
|
||||||
#define RANDOM_SOURCE A7 // RANDOM NUMBER GENERATOR SOURCE
|
|
||||||
|
|
||||||
//------------------------------------------------------
|
|
||||||
// Arduino Uno / Nano
|
|
||||||
#elif ARDUINO_AVR_UNO || ARDUINO_AVR_NANO
|
|
||||||
//------------------------------------------------------
|
//------------------------------------------------------
|
||||||
|
|
||||||
// Library Nessesary
|
// Library Nessesary
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user