本文整理汇总了C++中UTFT::InitLCD方法的典型用法代码示例。如果您正苦于以下问题:C++ UTFT::InitLCD方法的具体用法?C++ UTFT::InitLCD怎么用?C++ UTFT::InitLCD使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UTFT
的用法示例。
在下文中一共展示了UTFT::InitLCD方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: InitLcd
void InitLcd(DisplayOrientation dor, uint8_t language)
{
lcd.InitLCD(dor); // set up the LCD
Fields::CreateFields(language); // create all the fields
mgr.RefreshAll(true); // redraw everything
currentTab = NULL;
}
示例2: begin
void ECCalibrateScreen::begin()
{
// Initial setup
myUTFT.InitLCD();
myUTFT.clrScr();
myTouch.InitTouch();
myTouch.setPrecision(PREC_MEDIUM);
myUTFT.setFont(BigFont);
myUTFT.setBackColor(0, 0, 255);
myButtons.setTextFont(BigFont);
resetButtons();
sensorstring = "";
sensorstring.reserve(30); //set aside some bytes for receiving data
inputstring = "";
waiting_for_info = false;
waiting_for_single_reading = false;
sensor_stringcomplete = false;
factReset = false;
inStopMode = false;
waiting_for_dry = false;
Serial3.begin(38400); //To communicate with the sensor.
Serial.begin(115200);
//Start Read straight away.
inputstring = ( waterTempString + ",C\r"); //Start based on temp.
Serial3.print(inputstring); //send command to sensor.
}
示例3: ProcessTouch
//.........这里部分代码省略.........
}
break;
case evCancelPrint:
CurrentButtonReleased();
mgr.SetPopup(NULL);
currentFile = NULL; // allow the file list to be updated
break;
case evDeleteFile:
CurrentButtonReleased();;
PopupAreYouSure(ev, "Confirm file delete");
break;
case evSendCommand:
case evPausePrint:
case evResumePrint:
case evReset:
SerialIo::SendString(f->GetSParam());
SerialIo::SendChar('\n');
break;
case evScrollFiles:
FileManager::Scroll(f->GetIParam());
ShortenTouchDelay();
break;
case evKeyboard:
mgr.SetPopup(keyboardPopup, keyboardPopupX, keyboardPopupY);
break;
case evInvertDisplay:
nvData.lcdOrientation = static_cast<DisplayOrientation>(nvData.lcdOrientation ^ (ReverseX | ReverseY | InvertText | InvertBitmap));
lcd.InitLCD(nvData.lcdOrientation);
CalibrateTouch();
CheckSettingsAreSaved();
break;
case evSetBaudRate:
Adjusting(f);
mgr.SetPopup(baudPopup, fullWidthPopupX, popupY);
break;
case evAdjustBaudRate:
nvData.baudRate = f->GetIParam();
SerialIo::Init(nvData.baudRate);
baudRateButton->SetValue(nvData.baudRate);
CheckSettingsAreSaved();
CurrentButtonReleased();
mgr.SetPopup(NULL);
StopAdjusting();
break;
case evSetVolume:
Adjusting(f);
mgr.SetPopup(volumePopup, fullWidthPopupX, popupY);
break;
case evAdjustVolume:
nvData.touchVolume = f->GetIParam();
volumeButton->SetValue(nvData.touchVolume);
TouchBeep(); // give audible feedback of the touch at the new volume level
CheckSettingsAreSaved();
break;
case evSetLanguage: