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
- Committer:
- Muglug
- Date:
- 2017-10-27
- Revision:
- 24:eed68c95160c
- Parent:
- 23:aad5fd1b3ef9
- Child:
- 25:86137c182a17
File content as of revision 24:eed68c95160c:
/* * Los Putacos * Copyright (C) 2017, All rights reserved. * ________________________________________ * * Created by: Gustavo Campana, Michael Schmidt, Miguel Lopez * Date: 12-Oct-2017 * Version: V0.1 */ #include "event.h" void CheckInputBuffer(void) { // Check for Received Frames XBee.process_rx_frames(); } void ReadIMUData(void) { imu.read_acc(); PC.printf("Time: %d:\t%d,%10.3f,%10.3f,%10.3f\n", time_stamp.read_ms(), micro.read_u16(), imu.accelerometer_data[0], imu.accelerometer_data[1], imu.accelerometer_data[2]); } void ReadMicroData(void) { // Reading the analog input (Microphone) // array = micro.read_u16(); } /* void print_stinrg(char c = '*') { pc.putc(c); } */ /* void print_event(void const *argv, int i) { pc.printf("%d ",i); pc.printf((const char*)argv); pc.printf("\r\n"); } */ /* void blink_event(DigitalOut pin){ pin = 1; } */ /* void readIMU(){ //imu.resetMPU9250(); PC.printf("%d\r\r ", time_stamp.read()); }*/ /*void gayEvent(){ PC.printf("Is Michi schwul? (1 - true, 0 - false): "); PC.printf("%d", 1); PC.printf("\r\n"); }*/ /* void print_event(void const *argv, int i) { pc.printf("%d ",i); pc.printf((const char*)argv); pc.printf("\r\n"); } //----------------------------------------------------------------- */ //----------------------------------------------------------------- /*void blink_event(DigitalOut pin){ pin = !pin; }*/ //----------------------------------------------------------------- //----------------------------------------------------------------- /*void println_event(){ pc.printf("Arroz, feijao e batata\r\n"); }*/ //-----------------------------------------------------------------