Demo to control 4 LEDs
Dependencies: BSP_DISCO_F469NI mbed
user/user.h
- Committer:
- Faberge
- Date:
- 2017-10-11
- Revision:
- 0:e06404fdff2f
- Child:
- 1:a6d179a9ffbb
File content as of revision 0:e06404fdff2f:
/* * user.h * * Copyright 2017 Faberge@TsarTeam * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * */ #ifndef USER_H #define USER_H #include "stm32469i_discovery.h" void blueLedOn() { BSP_LED_On(DISCO_LED_BLUE); } void blueLedOff() { BSP_LED_Off(DISCO_LED_BLUE); } void redLedOn() { BSP_LED_On(DISCO_LED_RED); } void redLedOff() { BSP_LED_Off(DISCO_LED_RED); } void orangeLedOn() { BSP_LED_On(DISCO_LED_ORANGE); } void orangeLedOff() { BSP_LED_Off(DISCO_LED_ORANGE); } void greenLedOn() { BSP_LED_On(DISCO_LED_GREEN); } void greenLedOff() { BSP_LED_Off(DISCO_LED_GREEN); } #endif