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 00002 #include "mbed.h" 00003 PwmOut rled(LED_RED); 00004 PwmOut gled(LED_GREEN); 00005 PwmOut bled(LED_BLUE); 00006 int16_t dato[3]; 00007 int16_t x = 0; //final.ok revisado. 00008 int16_t y = 0; 00009 int16_t z = 0; 00010 #include "arturo.h" 00011 #include "mejia.h" 00012 #include "MMA8451Q.h" 00013 00014 MMA8451Q acc(PTE25, PTE24); 00015 00016 00017 int main() { 00018 while(1) { 00019 00020 acc.getAccAllAxis(dato); 00021 x = dato[0] * 0.03; 00022 y = dato[1] * 0.03; 00023 z = dato[2] * 0.03; 00024 arturo_mensaje(); 00025 mejia_mensaje(); 00026 00027 00028 00029 } 00030 }
Generated on Sun Jul 17 2022 20:01:07 by
