Test for "including" pinnumbers in headerfiles

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
WillemBraat
Date:
Tue Aug 26 11:17:00 2014 +0000
Parent:
0:8871a6550511
Commit message:
Toevoegen LED1 .. LED4

Changed in this revision

analogin.h 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
--- a/analogin.h	Tue Aug 26 11:04:06 2014 +0000
+++ b/analogin.h	Tue Aug 26 11:17:00 2014 +0000
@@ -1,1 +1,6 @@
 #define MeetIngang p16
+
+#define L1 LED1
+#define L2 LED2
+#define L3 LED3
+#define L4 LED4
\ No newline at end of file
--- a/main.cpp	Tue Aug 26 11:04:06 2014 +0000
+++ b/main.cpp	Tue Aug 26 11:17:00 2014 +0000
@@ -2,10 +2,10 @@
 #include "analogin.h"
  
 AnalogIn ain(MeetIngang);
-DigitalOut led1(LED1);
-DigitalOut led2(LED2);
-DigitalOut led3(LED3);
-DigitalOut led4(LED4);
+DigitalOut led1(L1);
+DigitalOut led2(L2);
+DigitalOut led3(L3);
+DigitalOut led4(L4);
  
 int main() {
     while (1){