Graphical programming entertainment teaching, Kittenblock arduino example, LCD display

Like many students talked to a lot of students are not hard, but could not find the feeling. One thing is undeniable, the same class in a classroom, a teacher is also teaching, learning different. The key question is, bring a sense of advice I can give is to bite the bullet, hold on, no knowledge will not. We will continue to share experiences of graphical programming, hoping to make a topic. If you find useful, give a point like it. Software covered include Kittenblock , the Arduino.

Interpretation program: digital timer, the delay time is one second, variable plus 1 , completing the recording time

Knowledge Point: LCD display , the Arduino , actuators, structure

Key: LCD display

Software involved: Kittenblock, the Arduino .

 

#include <Arduino.h>

#include <Wire.h>

 

#include <LiquidCrystal_I2C.h>

 

int x;

LiquidCrystal_I2C lcd(0x3F, 16, 2);

 

void setup(){

  lcd.begin ();

  lcd.setBacklight(HIGH);

  lcd.clear();

  lcd.print ( " test statement! ");

  lcd.setCursor(0, 1);

  lcd.print ( " we love you ");

 

}

 

void loop(){

 

}

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/ztg1/p/12635735.html