Los Putacos / Mbed OS WearableDevice_Nucleo_New

Dependencies:   MPU9250_SPI

Fork of WearableDevice_Nucleo by Los Putacos

Committer:
gusteibolt
Date:
Thu Oct 12 14:32:34 2017 +0000
Revision:
7:ebaaff27840b
Parent:
6:939df52d75c9
Child:
8:ba93a973f967
Separated event from main.cpp, still a bug on that!

Who changed what in which revision?

UserRevisionLine numberNew contents of line
gusteibolt 6:939df52d75c9 1 /*
gusteibolt 6:939df52d75c9 2 * Los Putacos
gusteibolt 6:939df52d75c9 3 * Copyright (C) 2017, All rights reserved.
gusteibolt 6:939df52d75c9 4 * ________________________________________
gusteibolt 6:939df52d75c9 5 *
gusteibolt 6:939df52d75c9 6 * Created by: Gustavo Campana, Michael Schmidt, Miguel Lopez
gusteibolt 6:939df52d75c9 7 * Date: 12-Oct-2017
gusteibolt 6:939df52d75c9 8 * Version: V0.1
gusteibolt 6:939df52d75c9 9 */
gusteibolt 7:ebaaff27840b 10 #include "mbed.h"
gusteibolt 6:939df52d75c9 11
gusteibolt 7:ebaaff27840b 12 extern Serial pc;
gusteibolt 7:ebaaff27840b 13
gusteibolt 7:ebaaff27840b 14
gusteibolt 7:ebaaff27840b 15 void print_stinrg(char c = '*') {
gusteibolt 7:ebaaff27840b 16 pc.putc(c);
gusteibolt 7:ebaaff27840b 17 }
gusteibolt 7:ebaaff27840b 18
gusteibolt 7:ebaaff27840b 19 void print_event(void const *argv) {
gusteibolt 7:ebaaff27840b 20 pc.printf((const char*)argv);
gusteibolt 7:ebaaff27840b 21 }
gusteibolt 7:ebaaff27840b 22
gusteibolt 7:ebaaff27840b 23 void blink_event(DigitalOut pin){
gusteibolt 7:ebaaff27840b 24 pin = 1;
gusteibolt 7:ebaaff27840b 25 }