blob: cdb6890e62784ebb15f7cca3d216eb44c254109f (
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
32
|
/*
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"
typedef long double ld;
const int LED_R = 8, LED_G = 10, LED_B = 12, THERM = 0; // Device component pins
const ld R_k = 10000, V_in = 5, analog_max = 1023; // Device constants
ld f2c(ld f);
ld c2f(ld c);
ld k2c(ld k);
ld c2k(ld c);
ld f2k(ld f);
ld k2f(ld k);
ld a2d(int a);
int d2a(ld d);
ld v2r(ld V_out);
void sort(ld a[], int n);
//void calculate();
#endif
|