Multifunctionshield Anzeige GSOE NucleoL152RE STM32L152RET

Dependencies:   MFS_Display_HAL

Committer:
jack1930
Date:
Mon Jan 17 16:34:16 2022 +0000
Revision:
1:76c8355954fd
Parent:
0:102036aff258
Kommentare

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jack1930 0:102036aff258 1 /* mbed Microcontroller Library
jack1930 0:102036aff258 2 * Copyright (c) 2019 ARM Limited
jack1930 0:102036aff258 3 * SPDX-License-Identifier: Apache-2.0
jack1930 0:102036aff258 4 */
jack1930 0:102036aff258 5
jack1930 0:102036aff258 6 #include "mbed.h"
jack1930 0:102036aff258 7 #include "MFS.h"
jack1930 0:102036aff258 8
jack1930 0:102036aff258 9 MFS mfs;
jack1930 0:102036aff258 10 char seg7[10]={0b00111111,0b0000000110,0b01011011,0b01001111,
jack1930 0:102036aff258 11 0b01100110,0b01101101,0b01111101,0b00000111,
jack1930 0:102036aff258 12 0b01111111,0b01101111};
jack1930 0:102036aff258 13 int main()
jack1930 0:102036aff258 14 {
jack1930 0:102036aff258 15
jack1930 0:102036aff258 16 // Initialise the digital pin LED1 as an output
jack1930 0:102036aff258 17 DigitalOut led(LED1);
jack1930 0:102036aff258 18
jack1930 0:102036aff258 19 while (true) {
jack1930 0:102036aff258 20 mfs=0x1000+seg7[5];
jack1930 0:102036aff258 21 for(int i=0;i<4;i++)
jack1930 0:102036aff258 22 led = !led;
jack1930 0:102036aff258 23 HAL_Delay(500);
jack1930 0:102036aff258 24 }
jack1930 0:102036aff258 25 }