本文整理汇总了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);
}
示例2: setup
void setup()
{
lcd.begin(16, 2);
pinMode(motor_FW, OUTPUT);
pinMode(motor_BW, OUTPUT);
pinMode(buzzer, OUTPUT);
}
示例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();
}
示例4: setup
void setup () {
Serial.begin (9600);
initComponents();
lcd.begin(16, 2);
lcd.print("Hello, World!");
}
示例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();
}
示例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("");
}
}
示例7: setup
void setup()
{
lcd.begin(16, 2);
pinMode(_input_pin, INPUT);
lcd.setCursor(0, 0);
lcd.print("T");
}
示例8: setup
void setup() {
Serial.begin(9600);
lcd.begin(16, 2);
Wire.begin(8);
Wire.onReceive(receiveEvent);
lcd.setCursor(0, 0);
}
示例9: setup
void setup() {
lcd.begin(16, 2);
pinMode(switchPin, INPUT);
lcd.print("Ask the");
lcd.setCursor(0, 1);
lcd.print("Crystal ball");
}
示例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);
}
示例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
}
示例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();
}
示例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);
}
示例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);
}
示例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);
}