acd52832 blinky example
main.cpp
- Committer:
- jurica238814
- Date:
- 2016-09-15
- Revision:
- 0:796985b808bc
- Child:
- 1:8fd903e4bcef
File content as of revision 0:796985b808bc:
/* 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);
int main(){
while(1){
LD1 = 1;
wait(pause);
LD1 = 0;
wait(pause);
}
}