SPKT
Dependencies: mbed LCD_DISCO_F746NG BSP_DISCO_F746NG
Revision 0:f1552b338f7b, committed 2019-06-04
- Comitter:
- phungductung
- Date:
- Tue Jun 04 09:06:10 2019 +0000
- Commit message:
- SPKT
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/BSP_DISCO_F746NG.lib Tue Jun 04 09:06:10 2019 +0000 @@ -0,0 +1,1 @@ +https://developer.mbed.org/teams/ST/code/BSP_DISCO_F746NG/#df2ea349c37a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LCD_DISCO_F746NG.lib Tue Jun 04 09:06:10 2019 +0000 @@ -0,0 +1,1 @@ +https://developer.mbed.org/teams/ST/code/LCD_DISCO_F746NG/#d44525b1de98
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Jun 04 09:06:10 2019 +0000 @@ -0,0 +1,57 @@ +#include "mbed.h" +#include "LCD_DISCO_F746NG.h" +#include "stdio.h" +LCD_DISCO_F746NG lcd; +int i ; + +DigitalOut led1(LED1); + +int main() +{ + led1 = 1; + + + lcd.DisplayStringAt(0, LINE(1), (uint8_t *)"NHOM 7", CENTER_MODE); + wait(1); + + while(1) + { + led1 = !led1; + lcd.Clear(LCD_COLOR_BLUE); + lcd.SetBackColor(LCD_COLOR_BLUE); + lcd.SetTextColor(LCD_COLOR_WHITE); + wait(0.3); + lcd.DisplayStringAt(0, LINE(5), (uint8_t *)"CHOP TAT LED", CENTER_MODE); + wait(1); + led1 = !led1; + lcd.Clear(LCD_COLOR_GREEN); + + lcd.SetTextColor(LCD_COLOR_BLUE); + lcd.DrawRect(10, 20, 50, 50); + wait(0.1); + led1 = !led1; + lcd.SetTextColor(LCD_COLOR_BROWN); + lcd.DrawCircle(80, 80, 50); + wait(0.1); + led1 = !led1; + lcd.SetTextColor(LCD_COLOR_YELLOW); + lcd.DrawEllipse(150, 150, 50, 100); + wait(0.1); + lcd.SetTextColor(LCD_COLOR_RED); + lcd.FillCircle(200, 200, 40); + wait(1); + lcd.SetTextColor(LCD_COLOR_BLUE); + lcd.FillCircle(250, 200, 40); + wait(1); + led1 = !led1; + lcd.SetTextColor(LCD_COLOR_DARKCYAN); + lcd.FillCircle(300, 200, 40); + wait(1); + led1 = !led1; + lcd.SetBackColor(LCD_COLOR_ORANGE); + lcd.SetTextColor(LCD_COLOR_CYAN); + for(i=0;i<9999;i++) + lcd.DisplayStringAt(0, LINE(5),(uint8_t*)"16119", CENTER_MODE); + wait(1); + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Jun 04 09:06:10 2019 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file