test

Dependencies:   APA102 mbed

Fork of blink_led_threading by Rolando Pelayo

Files at this revision

API Documentation at this revision

Comitter:
hkiela
Date:
Mon Sep 17 13:51:18 2018 +0000
Parent:
0:390b0a20e899
Commit message:
test share

Changed in this revision

APA102.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 390b0a20e899 -r 697b75dc3b8f APA102.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/APA102.lib	Mon Sep 17 13:51:18 2018 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/rosienej/code/APA102/#b8dc9a84801c
diff -r 390b0a20e899 -r 697b75dc3b8f main.cpp
--- a/main.cpp	Tue Nov 21 20:12:41 2017 +0000
+++ b/main.cpp	Mon Sep 17 13:51:18 2018 +0000
@@ -1,7 +1,7 @@
 #include "mbed.h"
 
-DigitalOut GENLED(PC_7);         //LED for AD9833 output
-DigitalOut DDSLED(PC_13);        //LED for AD9850 output
+DigitalOut GENLED(LED1);         //LED for AD9833 output
+DigitalOut DDSLED(LED2);        //LED for AD9850 output
 
 Thread GENthread;                   //create thread to allow simultaneous LED blink and DDS output
 Thread LEDthread; 
@@ -10,7 +10,7 @@
 void GENBlinkThread() {
     while (true) {
         GENLED = !GENLED;
-        Thread::wait(1000);     
+        Thread::wait(100);     
     }
 }