acd52832 blinky example
main.cpp
- Committer:
- jurica238814
- Date:
- 2017-08-25
- Revision:
- 3:f303ca535263
- Parent:
- 1:8fd903e4bcef
File content as of revision 3:f303ca535263:
/* 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);
}
}