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


C++ LiquidCrystal::begin方法代码示例

本文整理汇总了C++中LiquidCrystal::begin方法的典型用法代码示例。如果您正苦于以下问题:C++ LiquidCrystal::begin方法的具体用法?C++ LiquidCrystal::begin怎么用?C++ LiquidCrystal::begin使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在LiquidCrystal的用法示例。


在下文中一共展示了LiquidCrystal::begin方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: setup

void setup() {
    Serial.begin(115200);
    Serial.print("DHT11 LIBRARY VERSION: ");
    Serial.println(Dht11::VERSION);

    lcd.begin(LCD_COLS, LCD_ROWS);
}
开发者ID:emilio,项目名称:gii-3,代码行数:7,代码来源:final.cpp

示例2: setup

void setup()
{
  lcd.begin(16, 2);
  pinMode(motor_FW, OUTPUT);
  pinMode(motor_BW, OUTPUT);
  pinMode(buzzer, OUTPUT);
}
开发者ID:lomassubedi,项目名称:Door-Lock-System,代码行数:7,代码来源:Devlopment_5.cpp

示例3: setup

//==============================================================================================
//=============================================SETUP LOOP=======================================
//==============================================================================================
void setup() {
    pinMode(RLED, OUTPUT);
    pinMode(GLED, OUTPUT);
    pinMode(BLED, OUTPUT);
    pinMode(wire1, INPUT);
    pinMode(wire2, INPUT);
    pinMode(wire3, INPUT);
    pinMode(wire4, INPUT);
    pinMode(largeKey, INPUT);
    pinMode(smallKey, INPUT);

    TCCR1A |= (1 << COM1A0);
    TCCR1B |= (1 << WGM12) | (1 << CS12);
    TIMSK1 |= (1 << TOIE1);
    sei();

    lcd.begin(16, 2);
    lcd.clear();
    lcd.print("Bomb prop V1.1");
    lcd.setCursor(0,1);
    lcd.print("J McKenna [MMS]");
    for (int i = 0 ; i <= 3 ; i++) {
        delay(500);
        setLED(0);
        delay(500);
        setLED(1);
    }
    lcd.clear();
}
开发者ID:blackteam-2,项目名称:Bla,代码行数:32,代码来源:Backup+(15-2-2013).c

示例4: setup

void setup () {
  Serial.begin (9600);
  initComponents();

  lcd.begin(16, 2);
  lcd.print("Hello, World!");
}
开发者ID:tomekbielaszewski,项目名称:ArduinoLearning,代码行数:7,代码来源:Main.cpp

示例5: setup

// the setup routine runs once when you press reset:
void setup() {
  // initialize the digital pin as an output.
  lcd.begin(16, 2);
  lcd.setCursor(0,0);
 
  lcd.clear();
}
开发者ID:rahulsanjay18,项目名称:calculator,代码行数:8,代码来源:main.c

示例6: setup

void setup()
{
    RFID.begin(9600); // start serial to RFID reader
    Serial.begin(9600); // start serial to PC
    lcd.begin(16, 2);
    //lcd output
        lcd.clear();
        lcd.print("There are "); //start printing the result
        lcd.print(space_left); //then how many spaces
        lcd.print("  spaces left."); //words
        lcd.println(" "); //spaces
    
    for (int i = 0; i < 5; i++)
    {
       id_marker[i] = 0;
    }
    
    Serial.println("Ready!");
     
  //sets everything in the array equal to blank
 for(int i=0; i<5; i++)
        {
            id_array[i] = String("");
        }
  
}
开发者ID:Bensky13,项目名称:arduinyeah,代码行数:26,代码来源:Ben_Working0408.cpp

示例7: setup

void setup()
	{
	lcd.begin(16, 2);
	pinMode(_input_pin, INPUT);
	lcd.setCursor(0, 0);
	lcd.print("T");
	}
开发者ID:bertrandperrier,项目名称:RecetteDeGateau,代码行数:7,代码来源:receiver.cpp

示例8: setup

void setup() {
  Serial.begin(9600);
  lcd.begin(16, 2);
  Wire.begin(8); 
  Wire.onReceive(receiveEvent);
  lcd.setCursor(0, 0);
}
开发者ID:KalyanPalepu,项目名称:Enigma,代码行数:7,代码来源:slave.c

示例9: setup

void setup() {
  lcd.begin(16, 2);
  pinMode(switchPin, INPUT);
  lcd.print("Ask the");
  lcd.setCursor(0, 1);
  lcd.print("Crystal ball");
}
开发者ID:mikeyhu,项目名称:arduino-crystal-ball,代码行数:7,代码来源:main.cpp

示例10: setup

void setup() {
  // set the LCD's number of cols and lines
  lcd.begin(16, 2);
  
  // print a message
  lcd.print('RHTLCD Starting');
  delay(1000);
}
开发者ID:adamzaninovich,项目名称:Arduino-RHTLCD,代码行数:8,代码来源:rhtlcd.c

示例11: setup

void setup() {
    lcd.begin(16, 2);
    Serial.begin(9600);
    pinMode(10,OUTPUT);
    digitalWrite(10, HIGH);

    randomSeed(analogRead(RNG_SEED_PIN)); // Seed the PRNG with analog noise from A2
}
开发者ID:ben-hunter-hansen,项目名称:ArduinoBlackjack,代码行数:8,代码来源:Blackjack_Blackjack.ino.cpp

示例12: LCD_setup

void LCD_setup() 
{
  // set up the LCD's number of columns and rows: 
  lcd.begin(16, 2);
  lcd.noCursor();
  lcd_enabled = 0;
  lcd.noDisplay();
}
开发者ID:AMPWorks,项目名称:ArduinoLibs,代码行数:8,代码来源:LCD.cpp

示例13: setup

void setup() {
  // set up the LCD's number of columns and rows: 
  lcd.begin(16, 2);
  // Print a message to the LCD.
  lcd.print("Lu: To: Te:");
    // initialize the serial communication:
  Serial.begin(9600);
}
开发者ID:raulperula,项目名称:uco_student,代码行数:8,代码来源:trabajo_str_normal.cpp

示例14: setup

void setup(void){
   lcd.begin(16,2);
   lcd.print("Hola, Mundo");
   Serial.begin(9600);
   pinMode(11,OUTPUT);
    pinMode(12,INPUT_PULLUP);
   pinMode(13, INPUT_PULLUP); 
}
开发者ID:HeTpro,项目名称:ArduinoWeb,代码行数:8,代码来源:S5E2.cpp

示例15: setup

void setup(){
   lcd.begin(16, 2);               // start the library
   lcd.setCursor(0,0);             // set the LCD cursor   position 
   lcd.print("BustaDuino");  // print a simple message on the LCD
   CreateRandomSeed();
   randomSeed(seed);
   Serial.begin(9600);
}
开发者ID:FinlayDaG33k,项目名称:BustaDuino,代码行数:8,代码来源:sketch.c


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