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 <LCDWIKI_GUI.h> //Core graphics library | |
#include <LCDWIKI_SPI.h> //Hardware-specific library | |
#include <DHT11.h> | |
#include <RTClib.h> | |
RTC_DS1307 rtc; | |
#define MODEL ILI9488_18 | |
#define CS 8 | |
#define CD 10 | |
#define RST 9 |
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 <Adafruit_SSD1306.h> | |
#define OLED_Address 0x3C | |
Adafruit_SSD1306 oled(128, 64); | |
int x=0; | |
int lastx=0; | |
int lasty=0; | |
int LastTime=0; | |
int ThisTime; | |
bool BPMTiming=false; |
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 <ESP8266WebServer.h> | |
#include <DHT.h> | |
// Replace with your network credentials | |
const char* ssid = "YOUR_SSID"; | |
const char* password = "YOUR_PASSWORD"; | |
// Set DHT pin and type | |
#define DHTPIN 2 // D4 pin on NodeMCU |
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 "driver/rtc_io.h" | |
#include <Arduino.h> | |
#define wakeUpPin GPIO_NUM_36 | |
const int ledPin = 23; | |
RTC_DATA_ATTR int bootCount = 0; | |
volatile bool wakeUpFlag = false; // Flag to indicate wakeup | |
void IRAM_ATTR wakeUpISR() { |
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
void loop() { | |
server.handleClient(); | |
} |
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
void setup() { | |
// ... (Initialization code) ... | |
} |
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
void speakOutNumber(long n) { | |
// ... (Logic to handle numbers from negative to thousands) ... | |
} |
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
void textToSpeech() { | |
if (server.arg("Number")!= "") { | |
Serial.println("Recieved Number: " + server.arg("Number")); | |
String serverData = String(server.arg("Number")); | |
int finalNumber = serverData.toInt(); | |
speakOutNumber(finalNumber); | |
delay(2000); // Short delay, might not be necessary | |
} | |
} |
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
void handleRoot() { | |
// ... (HTML code for the web page) ... | |
server.send ( 200, "text/html", htmlResponse ); | |
} |
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 <WiFi.h> | |
#include <WiFiClient.h> | |
#include <WebServer.h> | |
#include <ESPmDNS.h> // Not actually used in this code | |
#include <Talkie.h> | |
Talkie voice; // Creates an instance of the Talkie speech synthesizer | |
const char* ssid = "NUA"; // Your WiFi network name |
NewerOlder