Josh Blackann / Mbed 2 deprecated DISCO_L476VG_GlassLCD_LAB_with_joystick

Dependencies:   BSP_DISCO_L476VG LCD_DISCO_L476VG mbed

Fork of DISCO_L476VG_GlassLCD by ST

Files at this revision

API Documentation at this revision

Comitter:
bcostm
Date:
Fri Aug 28 13:03:53 2015 +0000
Child:
1:edfd90f36e8b
Commit message:
First release.

Changed in this revision

BSP_DISCO_L476VG.lib Show annotated file Show diff for this revision Revisions of this file
LCD_DISCO_L476VG.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.bld 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_L476VG.lib	Fri Aug 28 13:03:53 2015 +0000
@@ -0,0 +1,1 @@
+BSP_DISCO_L476VG#792b4cbebcb6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LCD_DISCO_L476VG.lib	Fri Aug 28 13:03:53 2015 +0000
@@ -0,0 +1,1 @@
+LCD_DISCO_L476VG#6ac2ed34f595
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Aug 28 13:03:53 2015 +0000
@@ -0,0 +1,54 @@
+/* Copyright (c) 2010-2011 mbed.org, MIT License
+*
+* Permission is hereby granted, free of charge, to any person obtaining a copy of this software
+* and associated documentation files (the "Software"), to deal in the Software without
+* restriction, including without limitation the rights to use, copy, modify, merge, publish,
+* distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
+* Software is furnished to do so, subject to the following conditions:
+*
+* The above copyright notice and this permission notice shall be included in all copies or
+* substantial portions of the Software.
+*
+* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
+* BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
+* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+*/
+
+#include "mbed.h"
+#include "LCD_DISCO_L476VG.h"
+
+LCD_DISCO_L476VG lcd;
+
+DigitalOut led_green(LED1);
+
+int main()
+{
+    uint32_t temp = 0;
+    uint8_t stemp[7] = {0};
+    uint8_t title[] = "      DISCOVERY STM32L476";
+  
+    printf("Hello\n");
+    led_green = 1;
+    lcd.Clear();
+    lcd.DisplayString((uint8_t *)"HELLO");
+    wait(1);
+    
+    printf("Scroll sequence\n");
+    led_green = 0;
+    lcd.Clear();
+    lcd.ScrollSentence(title, 2, 200);
+    lcd.Clear();
+  
+    while(1) {
+        printf("BAR = %d\n", temp);
+        sprintf((char *)stemp, "BAR %d", temp);
+        lcd.DisplayString(stemp);
+        lcd.BarLevelConfig((uint8_t)temp);
+        temp++;
+        if (temp > 4) temp = 0;
+        led_green = !led_green;
+        wait(1);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Aug 28 13:03:53 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/8ed44a420e5c
\ No newline at end of file