本文整理汇总了C++中Adafruit_RGBLCDShield::clear方法的典型用法代码示例。如果您正苦于以下问题:C++ Adafruit_RGBLCDShield::clear方法的具体用法?C++ Adafruit_RGBLCDShield::clear怎么用?C++ Adafruit_RGBLCDShield::clear使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Adafruit_RGBLCDShield
的用法示例。
在下文中一共展示了Adafruit_RGBLCDShield::clear方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: denaturization
void LCDScreen::denaturization()
{
lcd.clear();
lcd.setCursor( 0, 0 );
lcd.print("Denaturization? ");
lcd.setCursor( 0, 1 );
lcd.print("Yes No");
lcd.setCursor( 0, 1 );
lcd.blink();
uint8_t buttons;
while(true){
buttons = lcd.readButtons();
if (buttons & BUTTON_LEFT){
lcd.setCursor( 0, 1 );
denat = 1;
}
if (buttons & BUTTON_RIGHT){
lcd.setCursor( 8, 1 );
denat = 0;
}
if (buttons & BUTTON_SELECT){
lcd.noBlink();
break;
}
}
}
示例2: dispUserPrefCycles
void LCDScreen::dispUserPrefCycles()
{
lcd.clear();
lcd.setCursor( 0, 0 );
lcd.print( "# of cycles: " );
lcd.setCursor( 0, 15 );
lcd.print( maxCycles );
}
示例3: finalMess
void LCDScreen::finalMess()
{
lcd.clear();
lcd.home();
lcd.print( "PCR complete." );
lcd.setCursor( 0, 1 );
lcd.print( "RESET to cont." );
}
示例4: setUserInputs
void LCDScreen::setUserInputs()
{
lcd.clear();
// Check for Denaturization
denaturization();
delay(500);
lcd.clear();
// Adjust High/Low Values
int highlow = 0;
selectHighLowPush();
delay(500);
// Adjust No. of Cycles
selectCycles();
delay(500);
// All done with configuration
}
示例5: dispUserPrefHighLow
void LCDScreen::dispUserPrefHighLow()
{
lcd.clear();
lcd.home();
lcd.print( "High: " );
lcd.print( tempCeil );
lcd.setCursor( 0, 1 );
lcd.print( "Low: " );
lcd.print( tempFloor );
}
示例6: displayInitialStatus
void LCDScreen::displayInitialStatus( double temp, int current_cycle ) {
lcd.clear();
lcd.home();
updateArrow( temp );
lcd.setCursor( 0, 1 );
lcd.print( "Cycle no. " );
lcd.print( current_cycle );
lcd.print( "/" );
lcd.print( maxCycles );
}
示例7: printError
void LCDScreen::printError( int mess )
{
lcd.clear();
lcd.home();
String message;
if ( mess == 1 ) { message = "ERR: Overheating"; }
else if ( mess < 1 ) { message = "ERR: Not ramping"; }
else { message = "ERR: wrap failed"; }
lcd.print( message );
lcd.setCursor( 0, 1 );
lcd.print( "Check hardware" );
}
示例8: dispDenatStatus
void LCDScreen::dispDenatStatus(long int currentTime, long int stopTime)
{
int minLeft;
lcd.clear();
lcd.setCursor( 0, 1 );
if(currentTime == 0 && stopTime == 0){
lcd.print("Ramping Up");
}
else{
minLeft = (stopTime - currentTime) / 60000;
lcd.print(minLeft);
lcd.setCursor(2,1);
lcd.print("min left");
}
}
示例9: main
int main(int argc, char *argv[])
{
Adafruit_RGBLCDShield lcd = Adafruit_RGBLCDShield();
lcd.begin(16, 2);
lcd.setBacklight(RED);
lcd.clear();
lcd.home();
lcd.setCursor(0,0);
lcd.myPrint("Hello World");
int count = 0;
for(int i = 0; i < 20; i++){
usleep(300000);
if(count < 5){
lcd.scrollDisplayRight();
}
count++;
if(count > 5){
lcd.scrollDisplayLeft();
}
if(count > 9) count = 0;
}
uint8_t buttons = lcd.readButtons();
while(!(buttons & BUTTON_SELECT)){
if (buttons) {
if (buttons & BUTTON_LEFT) {
lcd.scrollDisplayLeft();
lcd.setBacklight(GREEN);
}
if (buttons & BUTTON_RIGHT) {
lcd.scrollDisplayRight();
lcd.setBacklight(TEAL);
}
}
buttons = lcd.readButtons();
usleep(90000);
}
return 0;
}
示例10:
void K3NGdisplay::clear(){
// do an immediate clearing of the screen
for (int x = 0;x < MAX_SCREEN_BUFFER_COLUMNS*MAX_SCREEN_BUFFER_ROWS;x++){
screen_buffer_live[x] = ' ';
screen_buffer_pending[x] = ' ';
screen_buffer_revert[x] = ' ';
screen_buffer_attributes_live[x] = 0;
screen_buffer_attributes_pending[x] = 0;
screen_buffer_attributes_revert[x] = 0;
}
lcd.clear();
current_print_row = 0;
current_print_column = 0;
revert_screen_flag = 0;
}