Skip to content

Instantly share code, notes, and snippets.

View yakutozcan's full-sized avatar
🎯
Focusing

Yakut Özcan yakutozcan

🎯
Focusing
View GitHub Profile
#include <IFTTTMaker.h>
#include <ESP8266WiFi.h>
#include <WiFiClientSecure.h>
#include "DHT.h"
#define DHTPIN D5 //DHT11 Pin
#define DHTTYPE DHT11 // DHT 11
DHT dht(DHTPIN, DHTTYPE);
char ssid[] = "****"; // WiFi Adı
@yakutozcan
yakutozcan / esp8266_oled_bitcoin.ino
Last active December 28, 2017 08:48
bitcoin,esp8266,nodemcu,arduino,oled display,SSD1306
//yakutozcan.blogspot.com
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
#include <ESP8266HTTPClient.h>
#define USE_SERIAL Serial
ESP8266WiFiMulti WiFiMulti;
Tüm işlemler SD kart içinde yapılıyor ve boot alanındadır..
SSH servisini acmak icin

$touch ssh

boot.txt dosyasını bulup son satırına aşağıda ki kodu ekliyoruz

dtoverlay=dwc2

#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
#include <ESP8266HTTPClient.h>
#include <ESP8266httpUpdate.h>
#define USE_SERIAL Serial
// Kodunuzu her guncellediğinizde aşağıdaki sayıyı arttırmayı unutmayın!!
#define currentVersion 130
#include <AceButton.h>
using namespace ace_button;
const int BUTTON_PIN = 10;
const int GREEN_LED_PIN = 11;
// LED states. Some microcontrollers wire their built-in LED the reverse.
const int LED_ON = HIGH;
const int LED_OFF = LOW;
AceButton button(BUTTON_PIN);
@yakutozcan
yakutozcan / io101-telegram-bot-esp8266.ino
Created August 8, 2018 10:22
iot telegrambot esp8266
#include "CTBot.h"
CTBot myBot;
String ssid = "WIFI ADI";
String pass = "SIFRE";
String token = "TELEGRAM API KEY";
uint8_t led = D4;
void setup() {
// initialize the Serial
//https://ifttt.com/maker_webhooks
//https://platform.ifttt.com
#include <ESP8266WiFi.h>
#include "IFTTTWebhook.h"
#define WIFI_SSID "======"
#define WIFI_PASSWORD "======="
#define IFTTT_API_KEY "============"
package main
import (
"github.com/faiface/beep/wav"
"log"
"os"
"time"
"github.com/faiface/beep"
"github.com/faiface/beep/speaker"
package main
import (
"fmt"
"net/http"
"net/http/httputil"
"net/url"
"os"
)