sensor

Committer:
noutram
Date:
Wed Nov 22 15:18:12 2017 +0000
Revision:
4:d884f14069c6
Parent:
1:3250ba797c16
Child:
5:58ba1a6dbf60
Error codes using LEDs

Who changed what in which revision?

UserRevisionLine numberNew contents of line
noutram 0:6f9f2e93a0be 1 #ifndef __sample_hardware__
noutram 0:6f9f2e93a0be 2 #define __sample_hardware__
noutram 4:d884f14069c6 3 enum ELEC350_ERROR_CODE {OK, FATAL};
noutram 4:d884f14069c6 4
noutram 0:6f9f2e93a0be 5 extern DigitalOut onBoardLED;
noutram 0:6f9f2e93a0be 6 extern DigitalOut redLED;
noutram 0:6f9f2e93a0be 7 extern DigitalOut yellowLED;
noutram 0:6f9f2e93a0be 8 extern DigitalOut greenLED;
noutram 0:6f9f2e93a0be 9
noutram 0:6f9f2e93a0be 10 extern DigitalIn onBoardSwitch;
noutram 0:6f9f2e93a0be 11 extern DigitalIn SW1;
noutram 0:6f9f2e93a0be 12 extern DigitalIn SW2;
noutram 0:6f9f2e93a0be 13 //extern Serial pc;
noutram 1:3250ba797c16 14 extern AnalogIn adcIn;
noutram 0:6f9f2e93a0be 15
noutram 0:6f9f2e93a0be 16 extern void post();
noutram 4:d884f14069c6 17 extern void errorCode(ELEC350_ERROR_CODE err);
noutram 0:6f9f2e93a0be 18
noutram 0:6f9f2e93a0be 19 #endif