Tempsensor / lights
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers lights.cpp Source File

lights.cpp

00001 #include "pins.h"
00002 #include "mbed.h"
00003 DigitalOut light1(LIGHT1_PIN);
00004 DigitalOut light2(LIGHT2_PIN);
00005 
00006 void setlight1(int value){
00007   light1.write(value);}
00008 void setlight2(int value){
00009   light2.write(value);}