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
# *-* coding: utf-8 *-* | |
# ========= | |
# Funciones | |
# ========= | |
def ordenando(miLista): | |
miListaOrdenada = miLista[:] #COPIO los valores del array | |
# ======================== | |
# ALGORITMO DE ORDENACION |
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 <Arduino.h> | |
#define SEMIPERIODO 1000 | |
unsigned char salida = 0; | |
unsigned estado_salida = 0; | |
unsigned long tiempo_anterior = 0; | |
unsigned long tiempo =0; | |
void setup() { | |
// put your setup code here, to run once: |
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
// *********************** | |
// Bibliotecas y variables | |
// *********************** | |
#include <OneWire.h> //Se importan las librerías | |
#include <DallasTemperature.h> | |
#include <Wire.h> | |
#include <LiquidCrystal_I2C.h> | |
double temperatura = 0.0; | |
long tiempo = 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
// *********************** | |
// Bibliotecas y variables | |
// *********************** | |
#include <OneWire.h> //Se importan las librerías | |
#include <DallasTemperature.h> | |
#include <Wire.h> | |
#include <LiquidCrystal_I2C.h> | |
double temperatura = 0.0; | |
int Pin = 2; //Se declara el pin donde se conectará la DATA |
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
// ========== | |
// VARIABLES | |
// ========== | |
int disparo= 0; | |
double velocidadSonido = 343.0; | |
int distancia = 0; | |
// ===== | |
// SETUP |
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
import ddf.minim.*; | |
Minim minim; | |
AudioSample beep1; | |
// Datos | |
// Tierra, venus, mercurio,marte | |
String nombre[] = {"tierra","venus","mercurio","marte"}; | |
float m[]={5.97e24,4.869e24,3.302e23,6.4185e23}; | |
float diam[]={12756,12100,4878,6786}; |
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
import ddf.minim.*; | |
Minim minim; | |
AudioSample beep1; | |
// Datos | |
// Tierra, venus, mercurio,marte | |
String nombre[] = {"tierra","venus","mercurio","marte"}; | |
float m[]={5.97e24,4.869e24,3.302e23,6.4185e23}; | |
float diam[]={12756,12100,4878,6786}; |
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 machine import Pin | |
from time import sleep | |
led = Pin(2,Pin.OUT) | |
while True: | |
led.value(not led.value()) | |
sleep(0.5) |
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
/* Este ejemplo intenta recopilar lo aprendido de esquemas anteriores | |
* y comunicará dos NodeMCU station "hablando" entre ellos. | |
* La acción en uno, establecerá una reacción en el otro. | |
* | |
* Por Aurelio Gallardo, 19-Abril-2020 | |
*/ | |
/* Biblioteca para la comunicación Wifi */ | |
#include <ESP8266WiFi.h> | |
extern "C" { |
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
/* Este ejemplo intenta recopilar lo aprendido de esquemas anteriores | |
* y comunicará dos NodeMCU station "hablando" entre ellos. | |
* La acción en uno, establecerá una reacción en el otro. | |
*/ | |
#include <ESP8266WiFi.h> | |
extern "C" { | |
#include <espnow.h> | |
} |
NewerOlder