This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Codigos | |
JOYSTICK = 1; | |
MICROFONO = 2; | |
ULTRASONIDO = 3; | |
TERMOMETRO = 4; | |
INFRARROJO = 5; | |
ROTARY = 6; | |
HUMEDAD = 7; | |
POTENCIOMETRO = 8; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
delimitador_entradas = '#' | |
function [lecturas,restante] = leer_entradas(cadena) | |
// Obtenemos las posiciones de aparicion del delimitador | |
punteros = strindex(buffer, delimitador_entradas) | |
// Inicializamos la lista de cadenas completas | |
lecturas = list() | |
// Si no encontramos ningun delimitador, no hay datos que procesar | |
if length(punteros) == 0 then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Serializacion.h" | |
// Direccion del arduino | |
byte DIRECCION = 0x02; | |
void setup() { | |
Serial.begin(9600); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM lsiobase/mono.armhf | |
# set environment variables | |
ARG DEBIAN_FRONTEND="noninteractive" | |
ENV XDG_CONFIG_HOME="/config/xdg" | |
# install wget | |
RUN \ | |
apt-get update && \ | |
apt-get install -y wget && \ |