blob: 4a268e873dca106ec2b37bf5e31bf105fba03767 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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 = 8, LED_G = 10, LED_B = 12, THERM = 0; // Device component pins
const double R_k = 10000, V_in = 5, analog_max = 1023; // Device constants
double f2c(double f);
double c2f(double c);
double k2c(double k);
double c2k(double c);
double f2k(double f);
double k2f(double k);
double a2d(int a);
int d2a(double d);
double v2r(double V_out);
void sort(double a[], int n);
//void calculate();
#endif
|