Skip to content

Instantly share code, notes, and snippets.

View yakutozcan's full-sized avatar
🎯
Focusing

Yakut Özcan yakutozcan

🎯
Focusing
View GitHub Profile
package main
import (
"fmt"
"net/http"
"net/http/httputil"
"net/url"
"os"
)
package main
import (
"github.com/faiface/beep/wav"
"log"
"os"
"time"
"github.com/faiface/beep"
"github.com/faiface/beep/speaker"
//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 "============"
@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
#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);
#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
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

@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;
#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ı
package haydut.firebaseled;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
public class MainActivity extends AppCompatActivity {
int i = 2;
@Override