Mikheil Abulashvili / Mbed OS DISCO-F469NI_LCD_rtos

Dependencies:   LCD_DISCO_F469NI BSP_DISCO_F469NI

Files at this revision

API Documentation at this revision

Comitter:
misha83
Date:
Thu Jan 27 13:15:20 2022 +0000
Commit message:
stm32f469 rtos

Changed in this revision

BSP_DISCO_F469NI.lib Show annotated file Show diff for this revision Revisions of this file
LCD_DISCO_F469NI.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/BSP_DISCO_F469NI.lib	Thu Jan 27 13:15:20 2022 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/misha83/code/BSP_DISCO_F469NI/#6a046465dd1d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LCD_DISCO_F469NI.lib	Thu Jan 27 13:15:20 2022 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/teams/ST/code/LCD_DISCO_F469NI/#d38374480318
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Jan 27 13:15:20 2022 +0000
@@ -0,0 +1,66 @@
+#include "mbed.h"
+#include "LCD_DISCO_F469NI.h"
+#include "rtos.h"
+LCD_DISCO_F469NI lcd;
+
+DigitalOut led1(LED1);
+DigitalOut led2(LED2);
+
+Thread thread;
+
+void test(void)
+{
+    while(true){
+
+    led2=!led2;
+    ThisThread::sleep_for(300);
+    }
+}
+
+int main()
+{    
+    led1 = 1; 
+    led2 = 1;
+  
+  
+    thread.start(test);
+  
+    lcd.DisplayStringAt(0, LINE(1), (uint8_t *)"MBED EXAMPLE", CENTER_MODE);
+    ThisThread::sleep_for(1);
+  
+    while(1)
+    {
+      lcd.Clear(LCD_COLOR_BLUE);
+      lcd.SetBackColor(LCD_COLOR_BLUE);
+      lcd.SetTextColor(LCD_COLOR_WHITE);
+      ThisThread::sleep_for(300);
+      lcd.DisplayStringAt(0, LINE(4), (uint8_t *)"DISCOVERY", CENTER_MODE);
+      lcd.DisplayStringAt(0, LINE(5), (uint8_t *)"STM32F469NI", CENTER_MODE);
+      ThisThread::sleep_for(1000);
+
+      lcd.Clear(LCD_COLOR_GREEN);
+      
+      lcd.SetTextColor(LCD_COLOR_BLUE);
+      lcd.FillRect(10, 20, 50, 50);
+      ThisThread::sleep_for(100);
+      lcd.SetTextColor(LCD_COLOR_BROWN);
+      lcd.FillCircle(80, 80, 50);
+      ThisThread::sleep_for(100);
+      lcd.SetTextColor(LCD_COLOR_YELLOW);
+      lcd.FillEllipse(150, 150, 50, 100);
+      ThisThread::sleep_for(100);
+      lcd.SetTextColor(LCD_COLOR_RED);
+      lcd.FillCircle(200, 200, 40);
+      ThisThread::sleep_for(1000);
+
+      lcd.SetBackColor(LCD_COLOR_ORANGE);
+      lcd.SetTextColor(LCD_COLOR_CYAN);
+      BSP_LCD_SetFont(&Font20);
+      lcd.DisplayStringAt(0, LINE(7), (uint8_t *)"HAVE FUN !!!", CENTER_MODE);
+      ThisThread::sleep_for(1000);
+
+      led1 = !led1;
+      ThisThread::sleep_for(500);
+    }
+}
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-os.lib	Thu Jan 27 13:15:20 2022 +0000
@@ -0,0 +1,1 @@
+https://github.com/armmbed/mbed-os/#b1796dedeb8accde1cbaecf136fab96895e23d81