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
############################################## | |
# Instalar las dependencias | |
# pip install pyaudio | |
# pip install SpeechRecognition | |
############################################## | |
import speech_recognition as sr | |
# Record Audio | |
r = sr.Recognizer() |
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
window.RTCPeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection; //compatibility for firefox and chrome | |
var pc = new RTCPeerConnection({ iceServers: [] }); | |
var noop = function() {}; | |
pc.createDataChannel(""); //create a bogus data channel | |
pc.createOffer(pc.setLocalDescription.bind(pc), noop); // create offer and set local description | |
pc.onicecandidate = function(ice) { //listen for candidate events | |
if (!ice || !ice.candidate || !ice.candidate.candidate) return; | |
var myIP = /([0-9]{1,3}(\.[0-9]{1,3}){3}|[a-f0-9]{1,4}(:[a-f0-9]{1,4}){7})/.exec(ice.candidate.candidate)[1]; | |
//sessionStorage.setItem('IP',myIP) | |
pc.onicecandidate = noop; |
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
void setup(){ | |
Serial.begin(9600); | |
cerrarPuerta(); | |
} | |
bool estaAbierto; | |
bool estaSubiendo; | |
bool estaBajando; | |
int piso = 1; | |
int pisoAnt = 0; |
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
#define peatonInPin 12 | |
#define peatonVerde 3 | |
#define peatonRojo 2 | |
#define sem1Verde 5 | |
#define sem1Rojo 6 | |
#define sem1Amarillo 7 | |
#define sem2Amarillo A3 | |
#define sem2Rojo A2 | |
#define sem2Verde A4 |
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
;******************************************************+ | |
;* Autor: Felipe Moctezuma | |
;* Descripcion: Comparacion de 2 numeros binarios configurando los puertos de I/O | |
;* 3 bits de salida | |
;* 4 bits de entrada | |
LIST P=16F887 | |
#INCLUDE p16f887.inc | |
ORG 0 | |
GOTO CONF | |
CONF |
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
;*********************************************************************** | |
;* Autor: Felipe Moctezuma | |
;* Descripcion: Se va a evaluar la multiplicacion de 2 enteros | |
;* decimales de un solo digito | |
;*********************************************************************** | |
LIST P=16F628A | |
#INCLUDE p16f628a.inc | |
ORG 0X00 |