Skip to content

Instantly share code, notes, and snippets.

@ecehan-civril
ecehan-civril / Neopixel-Saat-Uygulamasi.ino
Created April 6, 2021 07:04
Neopixel Saat Uygulaması
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
#include <WiFiUdp.h>
#include <FastLED.h>
#define FASTLED_ESP8266_NODEMCU_PIN_ORDER
#define DEBUG_ON
const char ssid[] = "*"; // İnternet ismi
const char pass[] = "*"; // internet şifresi
unsigned long timeZone = 1.0; // Bu değeri yerel saat diliminize göre değiştirebilirsiniz
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
int ara_deger,ara_deger2;
// aradeger2 0 ve 1 olamaz
float hassasiyet = 0.2; // 0 ile 1 arasında bir float değer girin örnek 0.444 bu değer analogtan okuduğumuz değeri yumuşak bi şekilde yansıtmak için
#include <SPI.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define UP_BUTTON 2
#define DOWN_BUTTON 3
const unsigned long PADDLE_RATE = 33;
const unsigned long BALL_RATE = 16;
// I2C device class (I2Cdev) demonstration Arduino sketch for MPU6050 class using DMP (MotionApps v2.0)
// 6/21/2012 by Jeff Rowberg <jeff@rowberg.net>
// Updates should (hopefully) always be available at https://github.com/jrowberg/i2cdevlib
//
// Changelog:
// 2013-05-08 - added seamless Fastwire support
// - added note about gyro calibration
// 2012-06-21 - added note about Arduino 1.0.1 + Leonardo compatibility error
// 2012-06-20 - improved FIFO overflow handling and simplified read process
// 2012-06-19 - completely rearranged DMP initialization code and simplification
@ecehan-civril
ecehan-civril / 4x4-keypad-kullanimi.ino
Created May 15, 2021 10:34
4x4 keypad kullanımı
#include <Keypad.h>
const byte ROWS = 4; //satır
const byte COLS = 4; //sutun
char buton;
char keys [ROWS] [COLS] = {
{'1', '2', '3', 'A'},
{'4', '5', '6', 'B'},
{'7', '8', '9', 'C'},
@ecehan-civril
ecehan-civril / 4x4-keypad-hesap-makinesi.ino
Created May 15, 2021 10:36
4x4 keypad hesap makinesi uygulaması
#include <LiquidCrystal_I2C.h> //LCD ekran kütüphanesi
LiquidCrystal_I2C lcd(0x27, 16, 2); // Bu kodu kullanırken ekranda yazı çıkmaz ise 0x27 yerine 0x3f yazınız
#include <Keypad.h> //keypad kütüphanesi
const byte ROWS = 4; //satır
const byte COLS = 4; //sutun
char keys [ROWS] [COLS] = {
{'1', '2', '3', '+'},
@ecehan-civril
ecehan-civril / arduino-iot-cloud-sicaklik-nem-led.ino
Created August 6, 2021 08:45
Arduino IoT Cloud Led Kontrol
#include "arduino_secrets.h"
/*
Sketch generated by the Arduino IoT Cloud Thing "Untitled"
https://create.arduino.cc/cloud/things/95af331e-a4ee-4612-9086-f4e9309455f5
Arduino IoT Cloud Variables description
The following variables are automatically generated and updated when changes are made to the Thing
CloudLight led;
@ecehan-civril
ecehan-civril / 3kablolufan.ino
Created August 18, 2021 08:28
3-kablolu-fan
int pin = 7;
unsigned long duration;
void setup() {
Serial.begin(9600);
pinMode(pin, INPUT);
}
void loop()
{
@ecehan-civril
ecehan-civril / nodemcu-webserver.ino
Created September 10, 2021 06:05
Nodemcu ile Web Server Kullanımı
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include "DHT.h"
#define DHTTYPE DHT11 // DHT 11
/*Put your SSID & Password*/
const char* ssid = "******"; //Wifi adınız
const char* password = "******"; //wifi şifreniz
@ecehan-civril
ecehan-civril / sesli-komut.ino
Created September 16, 2021 12:45
Google Assistant ile Sesli Komut
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "********";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "*************";
char pass[] = "**************";
void setup()