本文整理汇总了C++中LiquidCrystal_I2C::printByte方法的典型用法代码示例。如果您正苦于以下问题:C++ LiquidCrystal_I2C::printByte方法的具体用法?C++ LiquidCrystal_I2C::printByte怎么用?C++ LiquidCrystal_I2C::printByte使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LiquidCrystal_I2C
的用法示例。
在下文中一共展示了LiquidCrystal_I2C::printByte方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: robot_begin
int robot_begin()
{
int ret = SUCCESS;
int ivalue = 0;
ret = motor_begin();
if (ret != SUCCESS) return ret;
Serial.println("Begin Robot Init");
Serial.println("****************");
lcd.clear();
lcd.print("Begin Robot Init");
pinMode(Led_Green, OUTPUT); // set the pin as output
blink(Led_Green);
pinMode(Led_Red, OUTPUT); // set the pin as output
blink(Led_Red);
pinMode(Led_Blue, OUTPUT); // set the pin as output
blink(Led_Blue);
Serial.println("Init Leds OK");
// initialize the buzzer
pinMode(buzzPin, OUTPUT);
buzz(3);
Serial.println("Init Buzzer OK");
// initialize the Tilt&Pan servos
TiltPan_begin(HSERVO_Pin, VSERVO_Pin);
Serial.println("Init Tilt&Pan servos OK");
// initialize the camera
Serial.println(" ");
Serial.println("Begin Init Camera...");
ret=JPEGCamera.begin();
if (ret != SUCCESS)
{
Serial.print("Error Init Camera, error: ");
Serial.println(ret);
lcd.setCursor(0,1);
lcd.print("Init Camera KO ");
}
else
{
Serial.println("Init Camera OK");
lcd.setCursor(0,1);
lcd.print("Init Camera OK ");
}
delay(5*1000);lcd.clear();
// initialize the SD-Card
ret = initSDCard();
if (ret != SUCCESS)
{
Serial.print("Error Init SD-Card, error: ");
Serial.println(ret);
lcd.print("Init SD-Card KO ");
}
else
{
Serial.println("Init SD-Card OK");
lcd.print("Init SD-Card OK ");
}
// get infos from SD-Card
ret=infoSDCard();
if (ret < 0)
{
Serial.print("Error Infos SD-Card, error: ");
Serial.println(ret);
lcd.setCursor(0,1);
lcd.print("Err Infos SDCard");
}
else
{
no_picture = ret+1;
Serial.print("no_picture starts at: ");
Serial.println(no_picture);
lcd.setCursor(0,1);
lcd.print("Num picture:");lcd.print(no_picture);
}
delay(5*1000);lcd.clear();
// initialize the brightness sensor
TEMT6000.TEMT6000_init(TEMT6000_Pin); // initialize the pin connected to the sensor
Serial.println("Init Brightness sensor OK");
ivalue = TEMT6000.TEMT6000_getLight();
Serial.print("Value between 0 (dark) and 1023 (bright): ");
Serial.println(ivalue);
lcd.print("Lux:");lcd.print(ivalue);lcd.printByte(lcd_pipe);
// initialize the temperature sensor
TMP102.TMP102_init();
Serial.println("Init Temperature sensor OK");
double temperature = TMP102.TMP102_read();
ivalue = (int)(100.0 * temperature);
Serial.print("Temperature: ");
//.........这里部分代码省略.........