-
Notifications
You must be signed in to change notification settings - Fork 7
/
functions.h
66 lines (62 loc) · 2.41 KB
/
functions.h
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// This software, known as CarbOnBal is
// Copyright, 2017-2020 L.L.M. (Dennis) Meulensteen. [email protected]
//
// This file is part of CarbOnBal. A combination of software and hardware.
// I hope it may be of some help to you in balancing your carburetors and throttle bodies.
// Always be careful when working on a vehicle or electronic project like this.
// Your life and health are your sole responsibility, use wisely.
//
// CarbOnBal hardware is covered by the CERN Open Hardware License v1.2
// a copy of the text is included with the source code.
//
// CarbOnBal is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// CarbOnBal is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with CarbOnBal. If not, see <http://www.gnu.org/licenses/>.
#include <Arduino.h>
#include"globals.h"
void makeCenterBars(char *bars, int8_t number);
void initRpmDisplay();
int readSensorRaw(int sensor);
int readSensorCalibrated(int sensor);
int getCalibrationOffset(int sensor, int value);
void updateRpmDisplay(unsigned int rpm);
void eepromWriteIfChanged(int address, int8_t data);
int detectAmbient();
void serialOut(unsigned int value[]);
void serialOutBytes(unsigned int value[]);
void lcdBarsCenterSmooth( unsigned int value[]);
void lcdDiagnosticDisplay(unsigned int value[]);
int getCalibrationTableOffsetByValue(int sensor, int value);
void doMatrixDemo();
void doCalibrate(int sensor);
void displayCalibratedValues(int values[]);
void makeCalibrationChars();
void zeroCalibrations();
void intRunningAverage();
bool isRPMStable(int sensor);
void descendingAverage();
void crawlingAverage();
settings_t loadSettings(settings_t);
void lcdBarsSmooth( int value[]);
void doDataDumpChars();
void doDataDumpBinary();
void doAbsoluteDemo();
void doRelativeDemo();
void doDeviceInfo();
void doViewCalibration(int sensor);
void doViewCalibration1();
void doViewCalibration2();
void doViewCalibration3();
void doClearCalibration1();
void doClearCalibration2();
void doClearCalibration3();
void doClearCalibration(int sensor);