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
| # MyPaste RAW - Control Logic | |
| PYTHON = python3 | |
| PID_FILE = mypaste.pid | |
| PORT = 5000 | |
| STORAGE = $(HOME)/justpaste | |
| .PHONY: run stop status list | |
| # Lancia il server. Nota: in foreground il PID_FILE non serve per il kill, | |
| # ma lo stop pulisce comunque il socket della porta PORT. |
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
| version: '2.1' | |
| networks: | |
| monitor-net: | |
| driver: bridge | |
| volumes: | |
| prometheus_data: {} | |
| grafana_data: {} |
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 <LiquidCrystal_I2C.h> | |
| #include <math.h> | |
| #include <Wire.h> | |
| #define I2C_SDA 23 | |
| #define I2C_SCL 18 | |
| #define VELOCITA_DEL_SUONO 0.034 | |
| #define TENTATIVI_CALIBRAZIONE 8 | |
| const int echoPin = 21; |
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
| /* | |
| Driver per motore elettrico brushed | |
| - pin 9 di Arduino collegato alla base del TIP120 | |
| */ | |
| int pinMotorino = 9; | |
| void setup() { | |
| Serial.begin(9600); | |
| pinMode(pinMotorino, 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
| int ledPin = 13; | |
| char* letters[] = { | |
| “.-”, “-…”, “-.-.”, “-..”, “.”, “..-.”, “–.”, “….”, “..”, | |
| “.—”, “-.-”, “.-..”, “–”, “-.”, “—”, “.–.”, “–.-”, “.-.”, | |
| “…”, “-”, “..-”, “…-”, “.–”, “-..-”, “-.–”, “–..” | |
| }; | |
| // A-I | |
| // J-R | |
| // S-Z | |
| char* numbers[] = { “—–”, “.—-”, “..—”, |
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 <Arduino.h> | |
| #include <ESP8266WiFi.h> | |
| #include <Hash.h> | |
| #include <ESPAsyncTCP.h> | |
| #include <Adafruit_Sensor.h> | |
| #include <DHT.h> | |
| #include <EMailSender.h> | |
| #include <ESP8266HTTPClient.h> | |
| #include <ArduinoJson.h> |
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 <Arduino.h> | |
| #include <FastLED.h> | |
| #include <SensirionI2cScd30.h> | |
| #include <Wire.h> | |
| #define LED_PIN 14 | |
| #define NUM_LEDS 12 | |
| #define BRIGHTNESS 4 | |
| #define LED_TYPE WS2811 | |
| #define COLOR_ORDER GRB |
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 <esp_wifi.h> | |
| #include <WiFiClientSecure.h> | |
| #include <PubSubClient.h> | |
| #include <ArduinoJson.h> | |
| #include "WiFi.h" | |
| #include "DHT.h" | |
| #include "secrets.h" | |
| #define AWS_IOT_PUBLISH_TOPIC "esp32/pub" | |
| #define AWS_IOT_SUBSCRIBE_TOPIC "esp32/sub" |
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 <WiFi.h> | |
| #include "SD.h" | |
| #include "DHT.h" | |
| #include <Wire.h> | |
| #include <Adafruit_BMP085.h> | |
| // Replace with your network credentials | |
| const char* ssid = "REPLACE_WITH_YOUR_SSID"; | |
| const char* password = "REPLACE_WITH_YOUR_PASSWORD"; |
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
| int ledPin = 13; | |
| char* letters[] = { | |
| “.-”, “-…”, “-.-.”, “-..”, “.”, “..-.”, “–.”, “….”, “..”, | |
| “.—”, “-.-”, “.-..”, “–”, “-.”, “—”, “.–.”, “–.-”, “.-.”, | |
| “…”, “-”, “..-”, “…-”, “.–”, “-..-”, “-.–”, “–..” | |
| }; | |
| // A-I | |
| // J-R | |
| // S-Z | |
| char* numbers[] = { “—–”, “.—-”, “..—”, |
NewerOlder