testing N-PRO-50 STM32F103R with N-PRO-3DP 3d printer controller

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
chalikias
Date:
Fri Mar 13 16:10:22 2020 +0000
Commit message:
first test BED and HEAD0 MOSFETS

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	Fri Mar 13 16:10:22 2020 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+
+DigitalOut BED(PC_9);
+DigitalOut HEAD0(PC_8);
+
+int main() {
+    while(1) {
+        HEAD0 = 1; // LED is ON
+        BED =0;
+        wait(0.1); // 200 ms
+        HEAD0 = 0; // LED is OFF
+        BED=1;
+        wait(0.1); // 1 sec
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Mar 13 16:10:22 2020 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file