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.
Diff: main.cpp
- Revision:
- 0:a29090b0a895
- Child:
- 1:27f896032e0c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Wed Dec 08 08:04:12 2021 +0000
@@ -0,0 +1,28 @@
+/* mbed Microcontroller Library
+ * Copyright (c) 2019 ARM Limited
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+#include "mbed.h"
+#include "platform/mbed_thread.h"
+#include "MFS.h"
+
+// Blinking rate in milliseconds
+#define BLINKING_RATE_MS 500
+
+MFS display;
+char seg7[10]={0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07,0x7F,0x6F};
+int main()
+{
+ // Initialise the digital pin LED1 as an output
+ DigitalOut led(LED1);
+
+ while (true) {
+ for(int i=0; i<10; i++){
+ display=0x1000+seg7[i];
+ HAL_Delay(500);
+ display=0x2000+seg7[0];
+ HAL_Delay(500);
+ }
+ }
+}