acd52832 blinky example
main.cpp
- Committer:
- jurica238814
- Date:
- 2016-10-05
- Revision:
- 1:8fd903e4bcef
- Parent:
- 0:796985b808bc
- Child:
- 2:84d964276266
- Child:
- 3:f303ca535263
File content as of revision 1:8fd903e4bcef:
/* Copyright (c) 2016 Aconno. All Rights Reserved.
*
* Licensees are granted free, non-transferable use of the information. NO
* WARRANTY of ANY KIND is provided. This heading must NOT be removed from
* the file.
*
* aconno simple example program
* blinky LED LD1
*/
#include "mbed.h"
#include "acd52832_bsp.h"
#define pause 1 // Pause in seconds
DigitalOut LD1(PIN_LED_RED);
int main(){
while(1){
// Turn LED OFF
LD1 = 1;
wait(pause);
// Turn LED ON
LD1 = 0;
wait(pause);
}
}