Justin Edwards / Mbed 2 deprecated BLIRQ

Dependencies:   TextLCD mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers sense.cpp Source File

sense.cpp

00001 #include "sense.h"
00002 
00003 void SetGear(info* currInfo,DigitalIn Nswitch){
00004     if(Nswitch == 1)
00005         currInfo->gear = 0;
00006     else if(Nswitch == 0)
00007         currInfo->gear = 1;
00008 }