LCD Work step1

This commit is contained in:
phdlee
2018-04-12 22:08:43 +09:00
parent 34be2d0845
commit d721816039
11 changed files with 1747 additions and 266 deletions

View File

@@ -2,11 +2,11 @@
This source code started with Farhan's original source. The license rules are followed as well.
Calibration related functions kept the original source except for the minor ones.
The part is collected in the last minute of this source.
Ian KD8CEC
*/
#include "ubitx.h"
#include "ubitx_eemap.h"
//Current Frequency and mode to active VFO by KD8CEC
void FrequencyToVFO(byte isSaveFreq)
@@ -471,6 +471,7 @@ void menuSDROnOff(int btn)
EEPROM.put(ENABLE_SDR, sdrModeOn);
setFrequency(frequency);
SetCarrierFreq();
menuClearExit(500);
}
}
@@ -589,7 +590,6 @@ int getValueByKnob(int valueType, int targetValue, int minKnobValue, int maxKnob
{
int knob;
int moveDetectStep = 0;
int negativeSensitivity;
char isInitDisplay = 1;
delay_background(300, 0); //Default Delay
@@ -679,7 +679,6 @@ int getValueByKnob(int valueType, int targetValue, int minKnobValue, int maxKnob
}
void menuCWSpeed(int btn){
int knob = 0;
int wpm;
wpm = 1200/cwSpeed;
@@ -732,15 +731,14 @@ void menuCWSpeed(int btn){
//Modified by KD8CEC
void menuSetupCwTone(int btn){
int knob = 0;
int prev_sideTone;
//int prev_sideTone;
if (!btn){
printLineF2(F("Change CW Tone"));
return;
}
prev_sideTone = sideTone;
//prev_sideTone = sideTone;
//printLineF1(F("Tune CW tone"));
//printLineF2(F("PTT to confirm."));
//printLineF1(F("Press to set WPM"));
@@ -789,7 +787,7 @@ void menuSetupCwTone(int btn){
//Modified by KD8CEC
void menuSetupCwDelay(int btn){
int knob = 0;
//int knob = 0;
int tmpCWDelay = cwDelayTime * 10;
if (!btn){
@@ -839,8 +837,8 @@ void menuSetupCwDelay(int btn){
//CW Time delay by KD8CEC
void menuSetupTXCWInterval(int btn){
char needDisplayInformation = 1;
int knob = 0;
//char needDisplayInformation = 1;
//int knob = 0;
int tmpTXCWInterval = delayBeforeCWStartTime * 2;
if (!btn){
@@ -892,8 +890,8 @@ void menuSetupTXCWInterval(int btn){
//IF Shift function, BFO Change like RIT, by KD8CEC
void menuIFSSetup(int btn){
int knob = 0;
char needApplyChangeValue = 1;
//int knob = 0;
//char needApplyChangeValue = 1;
if (!btn){
if (isIFShift == 1)
@@ -953,8 +951,8 @@ void menuIFSSetup(int btn){
//ATT SETUP (IF1(45MHZ) SHIFT), by KD8CEC
void menuATTSetup(int btn){
int knob = 0;
char needApplyChangeValue = 1;
//int knob = 0;
//char needApplyChangeValue = 1;
if (!btn){
if (attLevel != 0)
@@ -979,10 +977,10 @@ void menuATTSetup(int btn){
//Functions for CWL and CWU by KD8CEC
void menuSelectMode(int btn){
int knob = 0;
//int knob = 0;
int selectModeType = 0;
int beforeMode = 0;
int moveStep = 0;
//int moveStep = 0;
if (!btn){
printLineF2(F("Select Mode?"));
@@ -1064,9 +1062,9 @@ void menuSelectMode(int btn){
//Select CW Key Type by KD8CEC
void menuSetupKeyType(int btn){
int knob = 0;
//int knob = 0;
int selectedKeyType = 0;
int moveStep = 0;
//int moveStep = 0;
if (!btn){
printLineF2(F("Change Key Type?"));
}