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 Röle+LED Kullanımı
Created February 14, 2026 15:09
RaspberryPi Röle+LED Kullanımı
#RaspberryPi Röle+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
relay = 21
GPIO.setup(relay,GPIO.OUT)
GPIO.output(relay,False)
@ikizoglu
ikizoglu / RaspberryPi I2C 2x16 LCD Kullanımı
Created February 13, 2026 11:49
RaspberryPi I2C 2x16 LCD Kullanımı
#RaspberryPi I2C 2x16 LCD Kullanımı
#------------------------------------------
import smbus
import time
# Define some device parameters
I2C_ADDR = 0x27 # I2C device address
LCD_WIDTH = 16 # Maximum characters per line
# Define some device constants
@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 " "