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.
Diff: funcion_comun.h
- Revision:
- 3:8a8ff76e84bc
- Parent:
- 2:15facba8b8b4
--- a/funcion_comun.h Sat Nov 17 04:44:57 2018 +0000 +++ b/funcion_comun.h Sun Nov 18 04:56:35 2018 +0000 @@ -9,6 +9,7 @@ double mx;//variable donde se guarda los voltajes leidos double my;//variable donde se guarda los voltajes leidos +double mx_old; void sendSPI(uint8_t d1, uint8_t d2)//envia datos a la tarjeta, cierra y abre puertos { @@ -25,7 +26,7 @@ sendSPI(0x09,0); //No decodificacion sendSPI(0x0B,0x07); //Usa 8 leds sendSPI(0x0C,1); //No se apaga - sendSPI(0x0A,0xe); + sendSPI(0x0A,0x3); for (int i=0;i<2;i++) { sendSPI(0x0F,1);