Skip to content

Instantly share code, notes, and snippets.

View fygonzalo's full-sized avatar

Gonzalo Fernandez Yaique fygonzalo

View GitHub Profile
// Codigos
JOYSTICK = 1;
MICROFONO = 2;
ULTRASONIDO = 3;
TERMOMETRO = 4;
INFRARROJO = 5;
ROTARY = 6;
HUMEDAD = 7;
POTENCIOMETRO = 8;
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
@fygonzalo
fygonzalo / Main.ino
Last active November 30, 2018 15:55
Estructuras de datos comunes - TP Arduino
#include "Serializacion.h"
// Direccion del arduino
byte DIRECCION = 0x02;
void setup() {
Serial.begin(9600);
}
@fygonzalo
fygonzalo / Dockerfile
Created October 30, 2017 03:26
Unofficial embyserver docker image for armv7 based on ubuntu xenial.armhf
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 && \