Controller firmware for a mobile robot, having a K64F MCU on board. Please read README.md for details.
lights.h
- Committer:
- dralisz82
- Date:
- 2018-05-30
- Revision:
- 0:260ca1f1cba7
File content as of revision 0:260ca1f1cba7:
#ifndef lights_H #define lights_H #include "mbed.h" #include "rtos.h" class Lights { public: Lights(); Lights(PinName pIL, PinName pIR, PinName pHL, PinName pHB, PinName pRL, PinName pBL); ~Lights(); void indexLeft(); void indexRight(); void indexOff(); void hazardLightsOn(); void hazardLightsOff(); void headLightOn(); void headLightOff(); void headLightToggle(); void highBeamOn(); void highBeamOff(); void highBeamToggle(); void reversingLightOn(); void reversingLightOff(); void brakeLightOn(); void brakeLightOff(); private: bool f_indexLeft; bool f_indexRight; DigitalOut* do_indexLeft; DigitalOut* do_indexRight; DigitalOut* do_headLight; DigitalOut* do_highBeam; DigitalOut* do_reversingLight; DigitalOut* do_brakeLight; Thread *indexThread; static void indexThread_main(void const *argument); }; #endif