aboutsummaryrefslogtreecommitdiff
path: root/libraries/detectorBuilding/src/detectorBuilding.h
diff options
context:
space:
mode:
authorTa180m2020-02-21 21:36:47 -0600
committerTa180m2020-02-21 21:36:47 -0600
commit92e93933c29a4071c11a2a1b831951e1dbe5458b (patch)
treef2e4da494cb82e0bb148fa233a48074d312b4bb1 /libraries/detectorBuilding/src/detectorBuilding.h
parentb0141d3f681c0edc04253c70c13863772b20cc4a (diff)
Fixed libraries
Diffstat (limited to 'libraries/detectorBuilding/src/detectorBuilding.h')
-rw-r--r--libraries/detectorBuilding/src/detectorBuilding.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/libraries/detectorBuilding/src/detectorBuilding.h b/libraries/detectorBuilding/src/detectorBuilding.h
new file mode 100644
index 0000000..b82cc35
--- /dev/null
+++ b/libraries/detectorBuilding/src/detectorBuilding.h
@@ -0,0 +1,31 @@
+/*
+ detectorBuilding.h - Library for Detector Building utility functions
+ Created by Anthony Wang, February 21, 2020.
+ Released into the public domain.
+*/
+
+#ifndef detectorBuilding_h
+#define detectorBuilding_h
+
+#include "Arduino.h"
+
+const int LED_R = 4, LED_G = 3, LED_B = 2, THERM = 0; // Device component pins
+const double R_k = 10000, V_in = 5, analog_max = 1023; // Device constants
+
+inline double f2c(double f);
+inline double c2f(double c);
+inline double k2c(double k);
+inline double c2k(double c);
+inline double f2k(double f);
+inline double k2f(double k);
+
+inline double a2d(int a);
+inline int d2a(double d);
+
+inline double v2r(double V_out);
+
+void sort(double a[], int n);
+
+//void calculate();
+
+#endif \ No newline at end of file