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
#! python3 | |
# prnt.sc_downloader.py - | |
# Descarga de imágenes del sitio LightShot utilizando un patrón conocido (dos letras-cuatro números) | |
import requests, os, bs4, random, time | |
url = 'https://prnt.sc/' # URL de base | |
os.makedirs('imagenes', exist_ok=True) | |
headers = [{'user-agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.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
/* | |
Creamos un servidor web con un ESP8266 para mostrar temperatura y humedad | |
utilizando un sensor DHT11.También mostraremos la hora actual conectándonos | |
a un servidor NTP. Más información en: https://thenerdyapprentice.blogspot.com/ | |
The Nerdy Apprentice | |
*/ | |
#include <ESP8266WiFi.h> | |
#include <ESP8266WebServer.h> | |
#include "DHT.h" |
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
/* | |
En este sketch utilizamos un Arduino Pro Micro, un lector RFID RC522 y un par de LEDs. | |
El objetivo es que al leer el UID de un TAG autorizadoo el Pro Micro ingrese la contraseña | |
y envíe el código de la tecla Enter/Entrar logueándonos así en el sistema. | |
Si el TAG es el autorizado se encenderá el LED verde, caso contrario el colorado. | |
El Pro Micro utilziza un microcontrolador Atmega32U4 (el mismo que el Arduino Leonardo) | |
que nos permite emular un teclado. No puede utilizarse la libreria Keyboard.h con un Arduino | |
con un microcontrolador Atmega328 como el Arduino UNO. | |
Los LEDs rojo y verde están concectados a los pines 3 y 4 respectivamente. |
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 proyecto trata de hacer uso de la librería TIME y utilizar una rueda NeoPixel | |
* de 12 leds RGB para mostrar la hora, minutos y segundos utilizando los colores como referencia. | |
* La rueda de leds está conectada al PIN D3 del Arduino (con una resistencia de 330 ohms). | |
* También hay conectado un condensador de 100uf en la alimentación de la rueda y un potenciómetro conectado en A0 | |
* para poder variar la intensidad del brillo de los LED. | |
* Más información en: https://thenerdyapprentice.blogspot.com/ | |
*/ | |
// Incluimos las librerías que vamos a utilizar |
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
/************************************************* | |
* Public Constants | |
*************************************************/ | |
#define NOTE_B0 31 | |
#define NOTE_C1 33 | |
#define NOTE_CS1 35 | |
#define NOTE_D1 37 | |
#define NOTE_DS1 39 | |
#define NOTE_E1 41 |
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
//A-ha! | |
//by GeneralSpud | |
// For this to work, we need the pitches library | |
#include "pitches.h" | |
// Two things need to be created: the array for the notes of the melody (in order) | |
// and the duration of each (think of it like sheet music in two parts) |
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
// Conectar el Buzzer al pin 8 | |
#include "pitches.h" | |
int melody[] = { | |
NOTE_AS4, NOTE_AS4, NOTE_AS4, NOTE_AS4, | |
NOTE_AS4, NOTE_AS4, NOTE_AS4, NOTE_AS4, | |
NOTE_AS4, NOTE_AS4, NOTE_AS4, NOTE_AS4, | |
NOTE_AS4, NOTE_AS4, NOTE_AS4, NOTE_AS4, | |
NOTE_AS4, NOTE_AS4, NOTE_AS4, NOTE_AS4, | |
NOTE_D5, NOTE_D5, NOTE_D5, NOTE_D5, |