aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md4
-rw-r--r--csource/Blink/Blink.cpp2
-rw-r--r--csource/Blink/build-cli/core.abin292302 -> 292302 bytes
-rw-r--r--csource/Fade/Fade.cpp6
-rw-r--r--csource/Fade/build-cli/core.abin291670 -> 291730 bytes
5 files changed, 7 insertions, 5 deletions
diff --git a/README.md b/README.md
index 5c7c2c1..7ae35c1 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
energia-core-0101E0008
======================
- (***** PLACEHOLDER --- NOT READY FOR PRIMETIME ******)
-makefile based core for working with the msp430 launchpad platform. \ No newline at end of file
+makefile based core for working with the msp430 launchpad platform.
+Currently only tested for the energia based toolchain on osx.
diff --git a/csource/Blink/Blink.cpp b/csource/Blink/Blink.cpp
index a8c64ba..85c0397 100644
--- a/csource/Blink/Blink.cpp
+++ b/csource/Blink/Blink.cpp
@@ -17,7 +17,7 @@ void setup() {
void loop() {
digitalWrite(14, HIGH); // set the LED on
- delay(1000); // wait for a second
+ delay(100); // wait for a second
digitalWrite(14, LOW); // set the LED off
delay(1000); // wait for a second
}
diff --git a/csource/Blink/build-cli/core.a b/csource/Blink/build-cli/core.a
index 8a83f9a..5fb09ee 100644
--- a/csource/Blink/build-cli/core.a
+++ b/csource/Blink/build-cli/core.a
Binary files differ
diff --git a/csource/Fade/Fade.cpp b/csource/Fade/Fade.cpp
index ffc7636..0c5a2a1 100644
--- a/csource/Fade/Fade.cpp
+++ b/csource/Fade/Fade.cpp
@@ -16,12 +16,14 @@ int fadeAmount = 5; // how many points to fade the LED by
void setup() {
// declare pin 9 to be an output:
- pinMode(GREEN_LED, OUTPUT);
+ pinMode(GREEN_LED, OUTPUT);
+ pinMode(RED_LED, OUTPUT);
}
void loop() {
// set the brightness of pin 9:
- analogWrite(GREEN_LED, brightness);
+ analogWrite(GREEN_LED, brightness);
+ analogWrite(RED_LED, 255-brightness);
// change the brightness for next time through the loop:
brightness = brightness + fadeAmount;
diff --git a/csource/Fade/build-cli/core.a b/csource/Fade/build-cli/core.a
index 6a972b3..efc0af7 100644
--- a/csource/Fade/build-cli/core.a
+++ b/csource/Fade/build-cli/core.a
Binary files differ