Amb Light test - NOT WORKING / TESTED

Committer:
monpjc
Date:
Fri May 17 20:13:13 2013 +0000
Revision:
0:be6163c66a11
NEW

Who changed what in which revision?

UserRevisionLine numberNew contents of line
monpjc 0:be6163c66a11 1 #ifndef _WIGO_AMBLIGHT_H_
monpjc 0:be6163c66a11 2 #define _WIGO_AMBLIGHT_H_
monpjc 0:be6163c66a11 3
monpjc 0:be6163c66a11 4 #include "mbed.h"
monpjc 0:be6163c66a11 5
monpjc 0:be6163c66a11 6 //Circuit for Avnet WiGo board
monpjc 0:be6163c66a11 7 #define AMBLIGHT_EN PTD5
monpjc 0:be6163c66a11 8 #define AMBLIGHT_LVL PTB0
monpjc 0:be6163c66a11 9 #define AMBLIGHT_HIGH 1
monpjc 0:be6163c66a11 10 #define AMBLIGHT_LOW 0
monpjc 0:be6163c66a11 11
monpjc 0:be6163c66a11 12 class WiGo_AmbLight
monpjc 0:be6163c66a11 13 {
monpjc 0:be6163c66a11 14 public:
monpjc 0:be6163c66a11 15
monpjc 0:be6163c66a11 16 WiGo_AmbLight( PinName en, PinName level );
monpjc 0:be6163c66a11 17
monpjc 0:be6163c66a11 18 void en( int n);
monpjc 0:be6163c66a11 19
monpjc 0:be6163c66a11 20 int level( void );
monpjc 0:be6163c66a11 21
monpjc 0:be6163c66a11 22 protected:
monpjc 0:be6163c66a11 23 DigitalOut _en;
monpjc 0:be6163c66a11 24 AnalogIn _level;
monpjc 0:be6163c66a11 25 };
monpjc 0:be6163c66a11 26
monpjc 0:be6163c66a11 27 #endif