Sistema de compras montado sobre docker Guillermo Sampallo @gsampallo
This file contains hidden or 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
| /* | |
| * Send Push notification from NodeMCU with Pushbullet API | |
| * https://www.gsampallo.com/2020/07/09/envio-de-notificaciones-desde-nodemcu-con-pushbullet/ | |
| * Guillermo Sampallo 2020 | |
| */ | |
| #include <ESP8266WiFi.h> | |
| const char* ssid = "SSD_NETWORK"; | |
| const char* password = "PASSWORD_NETWORK"; |
This file contains hidden or 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
| /* | |
| * Control de un motor paso a paso ( 28BYJ-48) con Attiny85 y L293D | |
| * Esquemas y documentación aqui: https://www.gsampallo.com/blog/?p=624 | |
| */ | |
| const int motorPin1 = 0; | |
| const int motorPin2 = 1; | |
| const int motorPin3 = 2; | |
| const int motorPin4 = 4; | |
| int motorSpeed = 1200; //variable para fijar la velocidad |
This file contains hidden or 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 python:latest | |
| LABEL Maintainer="gsampallo" | |
| WORKDIR /usr/app/src | |
| COPY *.py ./ | |
| COPY requirements.txt ./ | |
| COPY test.jpg ./ | |
| RUN pip install --no-cache-dir -r requirements.txt |
This file contains hidden or 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
| # Code from https://dev.to/stokry/create-ascii-art-with-python-31nd | |
| import sys | |
| from PIL import Image | |
| from termcolor import colored | |
| import colorama | |
| colorama.init() | |
| image_path = 'test.jpg' | |
| class AsciiArt: |
This file contains hidden or 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 <EEPROM_24LC32A_I2C.h> | |
| EEPROM_24LC32A_I2C eprom = EEPROM_24LC32A_I2C(0x50); | |
| void setup() { | |
| Serial.begin(9600); | |
| eprom.begin(); | |
| //Escribe los datos en la eeprom en la direccion 0 |
This file contains hidden or 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
| /* | |
| * Ejemplo de Charlieplexing con 3 pines y 6 leds. | |
| * Guillermo Sampallo - 2020 | |
| */ | |
| void setup() { | |
| } | |
| void loop() { | |
| pinMode(2,OUTPUT); |
This file contains hidden or 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 <ESP8266WiFi.h> | |
| #include <WiFiClient.h> | |
| #include <ESP8266WebServer.h> | |
| #include "DHT.h" | |
| #define DHTPIN 4 | |
| #define DHTTYPE DHT11 | |
| DHT dht(DHTPIN, DHTTYPE); |
This file contains hidden or 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 <ESP8266WiFi.h> | |
| #include <WiFiClient.h> | |
| #include <ESP8266WebServer.h> | |
| const char* ssid = "NOMBRE_RED"; | |
| const char* password = "CLAVE"; | |
| ESP8266WebServer servidor(80); | |
| int pinLed1 = 5; //D1 |
This file contains hidden or 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 <ESP8266WiFi.h> | |
| #include "ThingSpeak.h" | |
| const char* ssid = "X"; | |
| const char* password = "X"; | |
| WiFiClient client; | |
| unsigned long numeroCanal = X; |
NewerOlder