Skip to content

Instantly share code, notes, and snippets.

View ikizoglu's full-sized avatar

Kemal İKİZOĞLU ikizoglu

View GitHub Profile
@ikizoglu
ikizoglu / #RaspberryPi Mesafe Sensörü + LED Kullanımı
Created February 6, 2026 16:26
#RaspberryPi Mesafe Sensörü + LED Kullanımı
#RaspberryPi Mesafe Sensörü + LED Kullanımı
#------------------------------------------
import RPi.GPIO as GPIO
import time
GPIO.setwarnings(False) # Ignore warning for now
GPIO.setmode(GPIO.BCM) # Use physical pin numbering
LED_PIN = 12 # GPIO12
GPIO.setup(LED_PIN, GPIO.OUT)
@ikizoglu
ikizoglu / #RaspberryPi Mesafe Sensörü Kullanımı
Created February 6, 2026 16:09
#RaspberryPi Mesafe Sensörü Kullanımı
#RaspberryPi Mesafe Sensörü Kullanımı
#------------------------------------
import RPi.GPIO as GPIO
import time
GPIO.setwarnings(False) # Ignore warning for now
GPIO.setmode(GPIO.BCM) # Use physical pin numbering
TRIG = 18 #GPIO18
ECHO = 23 #GPIO23
@ikizoglu
ikizoglu / #RaspberryPi LED + Buton Kodu
Created February 5, 2026 21:31
#RaspberryPi LED + Buton Kodu
#RaspberryPi LED + Buton Kodu
#--------------------------------
import RPi.GPIO as GPIO
import time
GPIO.setwarnings(False) # Ignore warning for now
GPIO.setmode(GPIO.BOARD) # Use physical pin numbering
GPIO.setup(10, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
# Set pin 10 to be an input pin and set initial value to be pulled low (off)
@ikizoglu
ikizoglu / #RaspberryPi Temel Buton Kodu
Created February 5, 2026 21:16
#RaspberryPi Temel Buton Kodu
#RaspberryPi Temel Buton Kodu
#--------------------------------
import RPi.GPIO as GPIO
import time
GPIO.setwarnings(False) # Ignore warning for now
GPIO.setmode(GPIO.BOARD) # Use physical pin numbering
GPIO.setup(10, GPIO.IN, pull_up_down=GPIO.PUD_DOWN) # Set pin 10 to be an input pin and set initial value to be pulled low (off)
while True: # Run forever
@ikizoglu
ikizoglu / RaspberryPi-LED
Created January 6, 2026 18:51
RaspberryPi-LED
#RaspberryPi Temel LED Yakma Kodu
#--------------------------------
import RPi.GPIO as GPIO
import time
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
LED_PIN = 17 # GPIO17 (Pin 11)
GPIO.setup(LED_PIN, GPIO.OUT)
@ikizoglu
ikizoglu / HelloWorld-ICP
Created October 20, 2024 17:15
HelloWorld-ICP
//My First Motoko Project!
//Kemal İKİZOĞLU - @ikizoglukemal
actor HelloWorld {
public query func greet() : async Text {
return "Hello, World!";
};
public query func say(phrase : Text) : async Text {
return phrase;
@ikizoglu
ikizoglu / RentalCarApp
Created August 16, 2023 18:53
RentalCarApp
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "../../node_modules/@openzeppelin/contracts/utils/Counters.sol";
import "../../node_modules/@openzeppelin/contracts/security/ReentrancyGuard.sol";
contract CarRentalPlatform is ReentrancyGuard{
@ikizoglu
ikizoglu / Temel NodeMCU - Blynk Uygulama Kullanımı
Created February 28, 2023 13:48
Temel NodeMCU - Blynk Uygulama Kullanımı
// NodeMCU - Blynk IoT Uygulama Geliştirme
// ****************************************
#define BLYNK_PRINT Serial
//Device Info içerisinden alınan bilgileri buraya ekleyin
#define BLYNK_TEMPLATE_ID " "
#define BLYNK_TEMPLATE_NAME " "
#define BLYNK_AUTH_TOKEN " "
@ikizoglu
ikizoglu / NodeMCU DHT11 Nem Sıcaklık Sensörü Kullanımı
Created January 18, 2023 13:13
NodeMCU DHT11 Nem Sıcaklık Sensörü Kullanımı
// NodeMCU Web Sunucu Üzerinden DHT11 Takibi
// ********************************************
#include <ESP8266WiFi.h>
#include <DHT.h>
#define DHTTYPE DHT11
const char* ssid = " "; // Bağlantı kurulacak Wifi Ağ Adı
const char* password = " "; // Bağlantı kurulacak Wifi Parola
@ikizoglu
ikizoglu / NodeMCU Röle Kullanımı
Created January 18, 2023 08:05
NodeMCU Röle Kullanımı
// NodeMCU Web Sunucu Üzerinden Röle Kontrolü
// ********************************************
#include <ESP8266WiFi.h>
const char* ssid = " "; // Bağlantı kurulacak Wifi Ağ Adı
const char* password = " "; // Bağlantı kurulacak Wifi Parola
int role = D4; // Röle'nin bağlı olduğu pini buzzer olarak tanımladık
int value = LOW;