Μετάβαση στο κύριο περιεχόμενο

Αναρτήσεις

Προβολή αναρτήσεων από Απρίλιος, 2025

Esp32_school_bell_with_NTP

  /*   Rui Santos   Complete project details at https://RandomNerdTutorials.com/esp32-date-time-ntp-client-server-arduino/     Permission is hereby granted, free of charge, to any person obtaining a copy   of this software and associated documentation files.     The above copyright notice and this permission notice shall be included in all   copies or substantial portions of the Software.   Modified by Panagiotis Toumpaniaris on 10/4/2025 */ #include <WiFi.h> #include "time.h" const char * ssid = "Vodafone_2.4G-12329" ; const char * password = "9XfndzdcCnPdXD6k" ; const char * ntpServer = "pool.ntp.org" ; const long  gmtOffset_sec = 7200 ; const int   daylightOffset_sec = 3600 ; void setup (){   pinMode ( 2 , OUTPUT ) ;   Serial . begin ( 115200 ) ; // digitalWrite(2,HIGH);   // Connect to Wi-Fi   Serial . print ( "Connecting to " ) ;   Serial . println ( ssid ) ;   WiFi . begin ( s...

esp32-bluetooth

  #include "BluetoothSerial.h" BluetoothSerial SerialBT; const int ledPin= 2 ; void setup () {   // put your setup code here, to run once: SerialBT . begin ( "ESP32-Bluetooth20250402Β" ) ; pinMode ( ledPin,OUTPUT ) ; } void loop () {   // put your main code here, to run repeatedly: if ( SerialBT . available ()) {   char c= SerialBT . read () ;   if ( c=='1' ){     digitalWrite ( ledPin, 1 ) ;   } else if ( c=='0' ) {     digitalWrite ( ledPin, 0 ) ;   } } }