DigitalSignal_Lab

Dependencies:   LCD_DISCO_F746NG BSP_DISCO_F746NG Graphics

Files at this revision

API Documentation at this revision

Comitter:
ngtkien
Date:
Sat Aug 24 17:12:53 2019 +0000
Child:
1:3548e164151b
Commit message:
Initial Digital SignalAlgorithm

Changed in this revision

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/main.cpp	Sat Aug 24 17:12:53 2019 +0000
@@ -0,0 +1,36 @@
+#include "mbed.h"
+
+/*------------------------------------------------------------------------------
+Before to use this example, ensure that you an hyperterminal installed on your
+computer. More info here: https://developer.mbed.org/handbook/Terminals
+
+The default serial comm port uses the SERIAL_TX and SERIAL_RX pins (see their
+definition in the PinNames.h file).
+
+The default serial configuration in this case is 9600 bauds, 8-bit data, no parity
+
+If you want to change the baudrate for example, you have to redeclare the
+serial object in your code:
+
+Serial pc(SERIAL_TX, SERIAL_RX);
+
+Then, you can modify the baudrate and print like this:
+
+pc.baud(115200);
+pc.printf("Hello World !\n");
+------------------------------------------------------------------------------*/
+
+DigitalOut led(LED1);
+
+int main()
+{
+    int i = 1;
+
+    printf("Hello World !\n");
+
+    while(1) {
+        wait(1); // 1 second
+        led = !led; // Toggle LED
+        printf("This program runs since %d seconds.\n", i++);
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sat Aug 24 17:12:53 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file