Skip to content

Instantly share code, notes, and snippets.

View chepecarlos's full-sized avatar

Jose Carlos Garcia Diaz chepecarlos

View GitHub Profile
@chepecarlos
chepecarlos / DemoMQTT.py
Last active March 12, 2021 03:14
Git de prueba de python con mqtt
import paho.mqtt.client as mqtt
def on_connect(client, userdata, flags, rc):
print("Se conecto a con mqtt "+str(rc))
client.subscribe("ALSW/#")
def on_message(client, userdata, msg):
if msg.topic == "ALSW/temp":
@chepecarlos
chepecarlos / CodigoAmigo.ino
Last active July 30, 2020 21:03
Codigo de amigo
#include <SoftwareSerial.h>//Se puede emular mas de un puerto Serial
SoftwareSerial BTSerial(10, 11); // RX | TX Poner los pines que usas
char data = 0;
int arranque = 0;
int enclavamiento = 0;
int paro = 0;
int estado = 0;
int reversible = 0;
@chepecarlos
chepecarlos / Error
Created July 15, 2020 18:34
error Frecad
./FreeCAD_0.18-16146-Linux-Conda_Py3Qt5_glibc2.12-x86_64.AppImage
/tmp/.mount_FreeCAIOmWUW
FreeCAD 0.18, Libs: 0.18R16146 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2019
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
@chepecarlos
chepecarlos / .xbindkeysrc
Created June 24, 2020 03:38
Archivo de comandos de PC Umaru
# Boton 9 de Reproducir
"xvkbd -no-jump-pointer -xsendevent -text '\[space]'"
b:9
# Boton 8 de Salvar
"xvkbd -no-jump-pointer -xsendevent -text '\Cs'"
b:8
@chepecarlos
chepecarlos / ArduinoColaboracion.ino
Last active June 18, 2020 01:00
Codigo Colaboracion con Ing Gomes
boolean EstadoRele[6] = {false, false, false, false, false, false};
int PinRele[6] = {3, 4, 5, 6, 7, 8};
void setup() {
Serial.begin(9600);
for (int i = 0; i < 6; i++) {
pinMode(PinRele[i], OUTPUT);
digitalWrite(PinRele[i], 0);
}
}
@chepecarlos
chepecarlos / Processing6.pde
Created June 16, 2020 22:54
Codigo de Apoyo a Gomes
//import processing.serial.*;
//Serial MiPuerto;
color ColorCirculo1 = color(255, 0, 0);
color ColorCirculo2 = color(255, 0, 0);
color ColorCirculo3 = color(255, 0, 0);
color ColorCirculo4 = color(255, 0, 0);
color ColorCirculo5 = color(255, 0, 0);
color ColorCirculo6 = color(255, 0, 0);
@chepecarlos
chepecarlos / hola.ino
Last active May 30, 2020 05:05
codigo ejemolo
/*
Blink
Turns an LED on for one second, then off for one second, repeatedly.
Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
the correct LED pin independent of which board is used.
If you want to know what pin the on-board LED is connected to on your Arduino
model, check the Technical Specs of your board at:
@chepecarlos
chepecarlos / Colaboracion.md
Created May 29, 2020 05:59
Colaboracion con iobotic y ALSWnet

Colaboracion

Variables

nombre del proyecto: Nombre del proyecto final por definir

Idea

Haces un proyecto conjuntos con @iobotic: Display NeoPixel que muestre la cantidad de subcriptores en tiempo real, usando la api de Youtube con un servidoe nodejs y ESP32/ESP8266

@chepecarlos
chepecarlos / ClaseChatBotArduino.md
Last active May 12, 2020 18:25
Clase ChatBot Arduino

Objetivo

Que los participantes entienda y comprendan:

  • Uso plataforma de Arduino
  • Domotica(Contro/Sensores en la casa) con Arduino
  • Automatizacion de ChatBot
  • Crear proyecto IOT(Inter de las cosas)
  • Levantar un Servidor NodeJS

Actividad

@chepecarlos
chepecarlos / Flisol Live 2020.md
Last active April 25, 2020 16:03
Agenda Flisol Live 2020

Flisol Live 2020

Objetivo: Celebrar el Festival Internacional de SoftWare libre, este año en linea

Fecha

Sabado 25 de abril 2020

Horario