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.
main.cpp
00001 #include "mbed.h" 00002 #include "MMA8451Q.h" 00003 #include "Diego.h" 00004 #include "detectorimpacto.hh" 00005 #include "cruz.h" 00006 00007 //Serial s0(USBTX, USBRX); 00008 MMA8451Q acc(PTE25, PTE24); 00009 //PwmOut rled(LED_BLUE); 00010 //PwmOut gled(LED_GREEN); 00011 //PwmOut bled(LED_RED); 00012 // PwmOut bled(LED_RED); 00013 int16_t data[3]; 00014 00015 int main() 00016 { 00017 // s0.baud(9600); 00018 // s0.format(8,SerialBase::None,1); 00019 // s0.putc(65); 00020 00021 while(1) 00022 { 00023 acc.getAccAllAxis(data); 00024 // s0.printf("%d,\t%d,\t%d\n", data[0], data[1], data[2]);// 00025 detectorimpacto_choqueX(data[0]); 00026 cruz_choqueY(data[1]); 00027 Diego_Choque(data[0], data[1]); 00028 } 00029 } 00030 //Hola grupo
Generated on Sat Jul 23 2022 03:04:05 by
1.7.2