v
lights.cpp@0:48543b831703, 2016-02-18 (annotated)
- Committer:
- thorb3n
- Date:
- Thu Feb 18 14:58:53 2016 +0000
- Revision:
- 0:48543b831703
commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thorb3n | 0:48543b831703 | 1 | #include "pins.h" |
thorb3n | 0:48543b831703 | 2 | #include "mbed.h" |
thorb3n | 0:48543b831703 | 3 | DigitalOut light1(LIGHT1_PIN); |
thorb3n | 0:48543b831703 | 4 | DigitalOut light2(LIGHT2_PIN); |
thorb3n | 0:48543b831703 | 5 | |
thorb3n | 0:48543b831703 | 6 | void setlight1(int value){ |
thorb3n | 0:48543b831703 | 7 | light1.write(value);} |
thorb3n | 0:48543b831703 | 8 | void setlight2(int value){ |
thorb3n | 0:48543b831703 | 9 | light2.write(value);} |