Added Dual LCD
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
**************************************************************************/
|
||||
#include "ubitx.h"
|
||||
|
||||
//Common Defines *********************************************************
|
||||
#define LCD_CLEARDISPLAY 0x01
|
||||
@@ -241,7 +242,7 @@ void backlight(void) {
|
||||
void LCD2004_Init()
|
||||
{
|
||||
//I2C Init
|
||||
_Addr = I2C_DISPLAY_ADDRESS;
|
||||
_Addr = I2C_LCD_MASTER_ADDRESS;
|
||||
_cols = 20;
|
||||
_rows = 4;
|
||||
_backlightval = LCD_NOBACKLIGHT;
|
||||
@@ -807,7 +808,7 @@ void idle_process()
|
||||
if (((displayOption1 & 0x08) == 0x08 && (sdrModeOn == 0)) && (++checkCountSMeter > SMeterLatency))
|
||||
{
|
||||
int newSMeter;
|
||||
|
||||
|
||||
//VK2ETA S-Meter from MAX9814 TC pin
|
||||
newSMeter = analogRead(ANALOG_SMETER);
|
||||
|
||||
@@ -823,6 +824,7 @@ void idle_process()
|
||||
}
|
||||
|
||||
DisplayMeter(0, scaledSMeter, 0);
|
||||
checkCountSMeter = 0; //Reset Latency time
|
||||
} //end of S-Meter
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user