Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MPU9250_SPI
Fork of WearableDevice_Nucleo by
event.cpp@12:c88478dfc622, 2017-10-17 (annotated)
- Committer:
- gusteibolt
- Date:
- Tue Oct 17 09:25:38 2017 +0000
- Revision:
- 12:c88478dfc622
- Parent:
- 10:577e1fc4453e
- Child:
- 18:7f9c2b8541e1
Test, upload lasted version
Who changed what in which revision?
User | Revision | Line number | New 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 | 10:577e1fc4453e | 9 | */ |
gusteibolt | 7:ebaaff27840b | 10 | #include "mbed.h" |
gusteibolt | 8:ba93a973f967 | 11 | #include "event.h" |
gusteibolt | 7:ebaaff27840b | 12 | |
gusteibolt | 10:577e1fc4453e | 13 | /* |
gusteibolt | 7:ebaaff27840b | 14 | void print_stinrg(char c = '*') { |
gusteibolt | 7:ebaaff27840b | 15 | pc.putc(c); |
gusteibolt | 7:ebaaff27840b | 16 | } |
gusteibolt | 10:577e1fc4453e | 17 | */ |
gusteibolt | 7:ebaaff27840b | 18 | |
gusteibolt | 10:577e1fc4453e | 19 | /* |
gusteibolt | 10:577e1fc4453e | 20 | void print_event(void const *argv, int i) { |
gusteibolt | 10:577e1fc4453e | 21 | pc.printf("%d ",i); |
gusteibolt | 7:ebaaff27840b | 22 | pc.printf((const char*)argv); |
gusteibolt | 10:577e1fc4453e | 23 | pc.printf("\r\n"); |
gusteibolt | 7:ebaaff27840b | 24 | } |
gusteibolt | 10:577e1fc4453e | 25 | */ |
gusteibolt | 7:ebaaff27840b | 26 | |
gusteibolt | 10:577e1fc4453e | 27 | /* |
gusteibolt | 7:ebaaff27840b | 28 | void blink_event(DigitalOut pin){ |
gusteibolt | 7:ebaaff27840b | 29 | pin = 1; |
gusteibolt | 10:577e1fc4453e | 30 | */ |
gusteibolt | 10:577e1fc4453e | 31 | |
gusteibolt | 10:577e1fc4453e | 32 | void readIMU(){ |
gusteibolt | 10:577e1fc4453e | 33 | //imu.resetMPU9250(); |
gusteibolt | 10:577e1fc4453e | 34 | pc.printf("%d\r\r ",time_stamp.read()); |
gusteibolt | 12:c88478dfc622 | 35 | } |
gusteibolt | 12:c88478dfc622 | 36 | |
gusteibolt | 12:c88478dfc622 | 37 | void gayEvent(){ |
gusteibolt | 12:c88478dfc622 | 38 | pc.printf("Is Michi schwul? (1 - true, 0 - false): "); |
gusteibolt | 12:c88478dfc622 | 39 | pc.printf("%d", 1); |
gusteibolt | 12:c88478dfc622 | 40 | pc.printf("\r\n"); |
gusteibolt | 10:577e1fc4453e | 41 | } |