dasdasd

Dependencies:   LCD_DISCO_F746NG BSP_DISCO_F746NG

Committer:
nam3886
Date:
Mon Jun 10 10:46:27 2019 +0000
Revision:
0:5aeff6026c36
asd

Who changed what in which revision?

UserRevisionLine numberNew contents of line
nam3886 0:5aeff6026c36 1 #include "mbed.h"
nam3886 0:5aeff6026c36 2 #include "LCD_DISCO_F746NG.h"
nam3886 0:5aeff6026c36 3 #include "stdio.h"
nam3886 0:5aeff6026c36 4 LCD_DISCO_F746NG lcd;
nam3886 0:5aeff6026c36 5
nam3886 0:5aeff6026c36 6 int main()
nam3886 0:5aeff6026c36 7 {
nam3886 0:5aeff6026c36 8 lcd.DisplayStringAt(0, LINE(1), (uint8_t *)"NHOM 7", CENTER_MODE);//xu?t ra màn hình "nhom 7"
nam3886 0:5aeff6026c36 9 wait(1);
nam3886 0:5aeff6026c36 10
nam3886 0:5aeff6026c36 11 while(1)
nam3886 0:5aeff6026c36 12 {
nam3886 0:5aeff6026c36 13 lcd.Clear(LCD_COLOR_BLUE);
nam3886 0:5aeff6026c36 14 lcd.SetBackColor(LCD_COLOR_BLUE); //set màu n?n
nam3886 0:5aeff6026c36 15 lcd.SetTextColor(LCD_COLOR_WHITE); // set màu ch?
nam3886 0:5aeff6026c36 16 wait(0.3);
nam3886 0:5aeff6026c36 17 lcd.DisplayStringAt(0, LINE(5), (uint8_t *)"Hien Thi LCD", CENTER_MODE); // hi?n th? "Hien Thi LCD"
nam3886 0:5aeff6026c36 18 lcd.DisplayStringAt(0, LINE(6),(uint8_t*)"16119", CENTER_MODE); // hi?n th? "16119"
nam3886 0:5aeff6026c36 19 wait(1);
nam3886 0:5aeff6026c36 20 }
nam3886 0:5aeff6026c36 21 }