Moving strings (more)

This commit is contained in:
Ben V. Brown
2017-08-05 22:51:54 +10:00
parent f8f20bee5c
commit de0059bd08
5 changed files with 59 additions and 12 deletions

View File

@@ -51,7 +51,7 @@
<option id="gnu.c.compiler.option.warnings.nowarn.1227270879" name="Inhibit all warnings (-w)" superClass="gnu.c.compiler.option.warnings.nowarn" useByScannerDiscovery="false" value="false" valueType="boolean"/>
<option id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.fdata.1556802580" name="Place the data in their own section (-fdata-sections)" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.fdata" useByScannerDiscovery="false" value="true" valueType="boolean"/>
<option id="gnu.c.compiler.option.warnings.extrawarn.826041739" name="Extra warnings (-Wextra)" superClass="gnu.c.compiler.option.warnings.extrawarn" useByScannerDiscovery="false" value="true" valueType="boolean"/>
<option id="fr.ac6.managedbuid.gnu.c.compiler.option.misc.other.1256666959" superClass="fr.ac6.managedbuid.gnu.c.compiler.option.misc.other" useByScannerDiscovery="false" value="-fmessage-length=0 -fno-common" valueType="string"/>
<option id="fr.ac6.managedbuid.gnu.c.compiler.option.misc.other.1256666959" name="Other flags" superClass="fr.ac6.managedbuid.gnu.c.compiler.option.misc.other" useByScannerDiscovery="false" value="-fmessage-length=0 -fno-common" valueType="string"/>
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.c.1635097739" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.c"/>
<inputType id="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.s.211510996" superClass="fr.ac6.managedbuild.tool.gnu.cross.c.compiler.input.s"/>
</tool>

View File

@@ -10,6 +10,7 @@
#ifndef MODES_H_
#define MODES_H_
#include "Interrupt.h"
#include "S100V0_1.h"
#include "Oled.h"
@@ -18,6 +19,7 @@
#include "Analog.h"
#include "MMA8652FC.h"
#include <string.h>
#include "Strings.h"
typedef enum {
STARTUP, //we are sitting on the prompt to push a button

View File

@@ -0,0 +1,18 @@
/*
* Strings.h
*
* Created on: 4Aug.,2017
* Author: Ben V. Brown
*/
/*
* This file is used to allow for different language builds of the firmware
* This file houses all the strings for the text used on the iron.
*/
#ifndef STRINGS_H_
#define STRINGS_H_
extern const char* SettingsLongNames[12];
extern const char* SettingsShortNames[12];
#endif /* STRINGS_H_ */

View File

@@ -5,17 +5,7 @@
* Author: Ralim <ralim@ralimtek.com>
*/
#include "Modes.h"
const char *SettingsLongNames[] =
{ " Power source. Sets cutoff voltage. <DC 10V> <S 3.3V per cell>",
" Sleep Temperature <C>", " Sleep Timeout <Minutes>",
" Shutdown Timeout <Minutes>",
" Motion Sensitivity <0.Off 1.least sensitive 9.most sensitive>",
" Temperature Unit", " Temperature Rounding Amount",
" Temperature Display Update Rate",
" Display Orientation <A. Automatic L. Left Handed R. Right Handed>",
" Enable front key boost 450C mode when soldering",
" Temperature when in boost mode",
" Changes the arrows to a power display when soldering" };
uint8_t StatusFlags = 0;
uint32_t temporaryTempStorage = 0;

View File

@@ -0,0 +1,37 @@
/*
* Strings.c
*
* Created on: 5Aug.,2017
* Author: Ben V. Brown
*/
#include "Strings.h"
const char* SettingsLongNames[12] =
{
/*These are all the help text for all the settings.*/
/*All must start with 6 spaces so they come on screen nicely.*/
" Power source. Sets cutoff voltage. <DC 10V> <S 3.3V per cell>",
" Sleep Temperature <C>", " Sleep Timeout <Minutes>",
" Shutdown Timeout <Minutes>",
" Motion Sensitivity <0.Off 1.least sensitive 9.most sensitive>",
" Temperature Unit", " Temperature Rounding Amount",
" Temperature Display Update Rate",
" Display Orientation <A. Automatic L. Left Handed R. Right Handed>",
" Enable front key boost 450C mode when soldering",
" Temperature when in boost mode",
" Changes the arrows to a power display when soldering" };
const char* SettingsShortNames[12]=
{
"PWRSC",
"STMP",
"SLTME",
"SHTME",
"MSENSE",
"TMPUNT",
"TMPRND",
"TMPSPD",
"DSPROT",
"BOOST ",
"BTMP",
"PWRDSP",
};