本文整理汇总了C++中LCD::init方法的典型用法代码示例。如果您正苦于以下问题:C++ LCD::init方法的具体用法?C++ LCD::init怎么用?C++ LCD::init使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LCD
的用法示例。
在下文中一共展示了LCD::init方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: wakeupFunction
void wakeupFunction()
{
lcd.init();
lcd.update();
return;
}
示例2: main
int main()
{
clock_begin();
bool success;
LCD lcd;
lcd.init();
#if BAUD == 9600
usart1.init(0x33, true);
#elif BAUD == 38400
usart1.init(12, true);
#endif
// usart1.setTriggerTime(50);
char tmp[32];
lcd.dis("Zigbee Test");
// _delay_ms(1000);
Zigbee zigbee;
int panid = zigbee.panid();
// _delay_ms(500);
int addr = zigbee.addr();
sprintf(tmp, "PAN: %x\nADDR: %x", panid, addr);
lcd.clear();
lcd.dis(tmp);
while (1);
{
_delay_ms(1000);
}
}
示例3: settings_save
void settings_save()
{
if(conf.cameraMake == PANASONIC) conf.halfPress = HALF_PRESS_DISABLED;
eeprom_write_block((const void*)&conf, &conf_eep, sizeof(settings));
lcd.init(conf.lcdContrast, conf.lcdCoefficent, conf.lcdBias);
lcd.update();
}
示例4: main
int main()
{
LCD lcd;
lcd.init();
char s[128];
sprintf(s, "short: %d\n int: %d\n long: %d\n ", sizeof(short), sizeof(int), sizeof(long));
lcd.dis(s);
while (1);
}
示例5: settings_save
void settings_save()
{
if(conf.camera.cameraMake == PANASONIC) conf.camera.halfPress = HALF_PRESS_DISABLED;
if(settings_camera_index > 0)
{
eeprom_write_block((const void*)&conf.camera, &camera_settings_eep[settings_camera_index - 1], sizeof(camera_settings_t));
eeprom_read_block((void*)&conf.camera, &conf_eep.camera, sizeof(camera_settings_t));
}
conf.camera.autoConfigured = 0;
eeprom_write_block((const void*)&conf, &conf_eep, sizeof(settings_t));
lcd.init(conf.lcdContrast);
lcd.update();
}
示例6: main
int main()
{
clock_begin();
lcd.init();
lcd.drawText(0, 0, "Ready");
usart.init(12, true);
// usart.init(0x33, true);
// usart.setTrigger(';');
_delay_ms(1000);
usart1.send("zigbee_ready(b);");
while (1)
{
if (usart.triggered())
{
sprintf(tmp, "[%02x %02x %02x %02x %s", usart.buf[0], usart.buf[1], usart.buf[2], usart.buf[3], usart.buf+4);
// lcd.clear();
// lcd.drawText(0, 0, usart.buf);
// usart.send(usart.buf);
lcd.dis(tmp);
usart.clear_buf();
}
_delay_ms(500);
}
}