Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
00001 /* mbed Microcontroller Library 00002 * Copyright (c) 2019 ARM Limited 00003 * SPDX-License-Identifier: Apache-2.0 00004 */ 00005 00006 #include "mbed.h" 00007 #include "MFS.h" 00008 00009 MFS mfs; 00010 char seg7[10]={0b00111111,0b0000000110,0b01011011,0b01001111, 00011 0b01100110,0b01101101,0b01111101,0b00000111, 00012 0b01111111,0b01101111}; 00013 int main() 00014 { 00015 00016 // Initialise the digital pin LED1 as an output 00017 DigitalOut led(LED1); 00018 00019 while (true) { 00020 mfs=0x1000+seg7[5]; 00021 for(int i=0;i<4;i++) 00022 led = !led; 00023 HAL_Delay(500); 00024 } 00025 }
Generated on Wed Jul 20 2022 12:47:43 by
1.7.2