Blinks LED1 on the LED natrux
Revision 0:b8f6165b972c, committed 23 months ago
- Comitter:
- appa
- Date:
- Sun Dec 04 19:35:03 2022 +0000
- Commit message:
- Blinks LED1 on the LED matrix
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 Sun Dec 04 19:35:03 2022 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+
+DigitalOut C11(COL2, 0); // low for colum 2
+DigitalOut LED11(ROW2); // high for row 2
+
+int main() {
+ while(1) {
+ LED11 = 1;
+ wait(0.2);
+ LED11 = 0;
+ wait(0.2);
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sun Dec 04 19:35:03 2022 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file