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 <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 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 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 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 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 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 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 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 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 "secrets.h" | |
#include <WiFiClientSecure.h> | |
#include <PubSubClient.h> | |
#include <ArduinoJson.h> | |
#include "WiFi.h" | |
#include "DHT.h" | |
#define DHTPIN 34 // Digital pin connected to the DHT sensor | |
#define DHTTYPE DHT11 // DHT 11 | |
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
Enter your forum-formatted code here | |
#include <ESP32WiFi.h> | |
#include <EEPROM.h> | |
#include | |
int val; | |
#define wifi_name “SSID” | |
#define password “la propria Password Wifi” | |
#define server “io.adafruit.com” | |
#define port 1883 | |
#define nome utente “Il proprio Adafruit ID Utente” |
NewerOlder