-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
20,962 additions
and
1,413 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
/* | ||
* | ||
* MAIN SKETCH - Main entry point for the firmware | ||
* | ||
* DIY-Thermocam Firmware | ||
* | ||
* GNU General Public License v3.0 | ||
* | ||
* Copyright by Max Ritter | ||
* | ||
* http://www.diy-thermocam.net | ||
* https://github.com/maxritter/DIY-Thermocam | ||
* | ||
*/ | ||
|
||
/* Current firmware version */ | ||
#define Version "Firmware 2.37 from 01.02.2017" | ||
#define fwVersion 237 | ||
|
||
/* External Libraries */ | ||
|
||
#include "Libraries/SPI/SPI.h" | ||
#include "Libraries/I2C/i2c_t3.h" | ||
#include "Libraries/EEPROM/EEPROM.h" | ||
#include "Libraries/ADC/ADC.h" | ||
#include "Libraries/Metro/Metro.h" | ||
#include "Libraries/Time/Time.h" | ||
#include "Libraries/Bounce/Bounce.h" | ||
#include "Libraries/SdFat/SdFat.h" | ||
|
||
/* General Includes */ | ||
|
||
#include "General/GlobalDefines.h" | ||
#include "General/GlobalVariables.h" | ||
#include "General/GlobalMethods.h" | ||
#include "General/ColorSchemes.h" | ||
|
||
/* Modules */ | ||
|
||
#include "Hardware/Hardware.h" | ||
#include "GUI/GUI.h" | ||
#include "Thermal/Thermal.h" | ||
|
||
/* Main Entry point */ | ||
|
||
void setup() | ||
{ | ||
//Init the hardware components | ||
initHardware(); | ||
|
||
//Check for firmware upgrade done | ||
checkFWUpgrade(); | ||
|
||
//Enter USB connection if no display attached | ||
if (checkNoDisplay()) | ||
serialInit(); | ||
|
||
//Check for hardware issues | ||
checkDiagnostic(); | ||
|
||
//Do the first start setup if required | ||
if (checkFirstStart()) | ||
firstStart(); | ||
|
||
//Read all settings from EEPROM | ||
readEEPROM(); | ||
|
||
//Show the live mode helper if required | ||
if (checkLiveModeHelper()) | ||
liveModeHelper(); | ||
|
||
//Go to the live Mode | ||
liveMode(); | ||
} | ||
|
||
/* Loop not used */ | ||
|
||
void loop() | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 14 | ||
VisualStudioVersion = 14.0.25420.1 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "DIY-Thermocam", "DIY-Thermocam.vcxproj", "{C5F80730-F44F-4478-BDAE-6634EFC2CA88}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|x86 = Debug|x86 | ||
Release|x86 = Release|x86 | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{C5F80730-F44F-4478-BDAE-6634EFC2CA88}.Debug|x86.ActiveCfg = Debug|Win32 | ||
{C5F80730-F44F-4478-BDAE-6634EFC2CA88}.Debug|x86.Build.0 = Debug|Win32 | ||
{C5F80730-F44F-4478-BDAE-6634EFC2CA88}.Release|x86.ActiveCfg = Release|Win32 | ||
{C5F80730-F44F-4478-BDAE-6634EFC2CA88}.Release|x86.Build.0 = Release|Win32 | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.