mirror of
https://github.com/JeffersGlass/DDS_VFO.git
synced 2025-07-17 07:29:50 -05:00
Remove temporary SWR meter code
Comment out applicable SWR meter code, still in base
This commit is contained in:
26
VFO/VFO.ino
26
VFO/VFO.ino
@ -123,6 +123,10 @@ const int PIN_BUTTON_MODE = 4;
|
||||
const int PIN_BUTTON_BAND = 0;
|
||||
const int BUTTON_DEBOUNCE_TIME = 10; //milliseconds
|
||||
|
||||
//SWR Sensor Pins
|
||||
const int PIN_SWR_FORWARD = A1;
|
||||
const int PIN_SWR_REVERSE = A0;
|
||||
|
||||
void setup(){
|
||||
// inialize LCD, display welcome message
|
||||
lcd.begin(20, 4);
|
||||
@ -148,6 +152,9 @@ void setup(){
|
||||
pinMode(PIN_BUTTON_BAND, INPUT);
|
||||
digitalWrite(PIN_BUTTON_BAND, HIGH);
|
||||
|
||||
pinMode(PIN_SWR_FORWARD, INPUT);
|
||||
pinMode(PIN_SWR_REVERSE, INPUT);
|
||||
|
||||
lcd.clear();
|
||||
lcd.setCursor(2, 7);
|
||||
lcd.print("WELCOME!");
|
||||
@ -259,8 +266,23 @@ void displayInfo(){
|
||||
lcd.print(modeNames[currMode]);
|
||||
|
||||
//DEBUG
|
||||
lcd.setCursor(0,0);
|
||||
lcd.print(getCurrentBand());
|
||||
//lcd.setCursor(0,0);
|
||||
//lcd.print(getCurrentBand());
|
||||
|
||||
/*float fwd = analogRead(PIN_SWR_FORWARD);
|
||||
float rev = analogRead(PIN_SWR_REVERSE);
|
||||
float gamma = rev/fwd;
|
||||
float swr = (1 + abs(gamma)) / (1 - abs(gamma));
|
||||
|
||||
lcd.setCursor(0, 1);
|
||||
lcd.print(int(fwd));
|
||||
lcd.setCursor(4, 1);
|
||||
lcd.print(int(rev));
|
||||
lcd.setCursor(8, 1);
|
||||
lcd.print(gamma);
|
||||
lcd.setCursor(14, 1);
|
||||
lcd.print(swr);*/
|
||||
|
||||
}
|
||||
|
||||
boolean checkButtonPress(int pin){
|
||||
|
Reference in New Issue
Block a user