a
Dependencies: LCD_DISCO_F429ZI mbed BSP_DISCO_F429ZI
led.cpp
- Committer:
- matis755
- Date:
- 2020-05-21
- Revision:
- 4:e48aee3e8d09
File content as of revision 4:e48aee3e8d09:
#include "led.h" Led::Led() : led0(PG_4), led1(PG_5), led2(PG_6), led3(PG_7) { } void Led::On(unsigned char ucLedIndex) { led0 = 0; led1 = 0; led2 = 0; led3 = 0; switch(ucLedIndex){ case 0: led0 = 1; break; case 1: led1 = 1; break; case 2: led2 = 1; break; case 3: led3 = 1; break; default: break; } }