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.
Dependencies: mbed TrapezoidControl QEI
Diff: LED/LED.cpp
- Revision:
- 0:669ef71cba68
diff -r 000000000000 -r 669ef71cba68 LED/LED.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/LED/LED.cpp Sat Sep 08 06:05:22 2018 +0000
@@ -0,0 +1,20 @@
+#include "LED.h"
+
+#include "../System/Using.h"
+#include "mbed.h"
+#include <stdint.h>
+
+namespace LED {
+ DigitalOut boardLED[USE_LED_NUM] = {
+ DigitalOut(LED_DEBUG0_PIN),
+ DigitalOut(LED_DEBUG1_PIN),
+ DigitalOut(LED_DEBUG2_PIN),
+ DigitalOut(LED_MU_PIN),
+ };
+
+ void LED::Initialize() {
+ for(uint8_t i=0; i < USE_LED_NUM; i++) {
+ boardLED[i] = LED_OFF;
+ }
+ }
+}