A speedtest

Dependencies:   aconno_SEGGER_RTT CustomService

Committer:
jurica238814
Date:
Fri Aug 25 06:54:20 2017 +0000
Revision:
3:f303ca535263
Parent:
1:8fd903e4bcef
Child:
6:58023588fb4b
Pure blinky example.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jurica238814 0:796985b808bc 1 /* Copyright (c) 2016 Aconno. All Rights Reserved.
jurica238814 0:796985b808bc 2 *
jurica238814 0:796985b808bc 3 * Licensees are granted free, non-transferable use of the information. NO
jurica238814 0:796985b808bc 4 * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
jurica238814 0:796985b808bc 5 * the file.
jurica238814 0:796985b808bc 6 *
jurica238814 0:796985b808bc 7 * aconno simple example program
jurica238814 0:796985b808bc 8 * blinky LED LD1
jurica238814 0:796985b808bc 9 */
jurica238814 0:796985b808bc 10
jurica238814 0:796985b808bc 11 #include "mbed.h"
jurica238814 0:796985b808bc 12 #include "acd52832_bsp.h"
jurica238814 0:796985b808bc 13
jurica238814 3:f303ca535263 14 #define pause 1 // Pause in seconds
jurica238814 0:796985b808bc 15
jurica238814 1:8fd903e4bcef 16 DigitalOut LD1(PIN_LED_RED);
jurica238814 0:796985b808bc 17
jurica238814 0:796985b808bc 18 int main(){
jurica238814 0:796985b808bc 19 while(1){
jurica238814 1:8fd903e4bcef 20 // Turn LED OFF
jurica238814 0:796985b808bc 21 LD1 = 1;
jurica238814 0:796985b808bc 22 wait(pause);
jurica238814 1:8fd903e4bcef 23 // Turn LED ON
jurica238814 0:796985b808bc 24 LD1 = 0;
jurica238814 0:796985b808bc 25 wait(pause);
jurica238814 0:796985b808bc 26 }
jurica238814 0:796985b808bc 27 }