当前位置: 首页>>代码示例>>C++>>正文


C++ UTFT::InitLCD方法代码示例

本文整理汇总了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;
}
开发者ID:BrianGilbert,项目名称:PanelDue,代码行数:8,代码来源:PanelDue.cpp

示例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.

}
开发者ID:markcgriffiths,项目名称:hydrocontroller,代码行数:36,代码来源:ECCalibrateScreen.cpp

示例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:
开发者ID:BrianGilbert,项目名称:PanelDue,代码行数:67,代码来源:PanelDue.cpp


注:本文中的UTFT::InitLCD方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。