This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //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{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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 " " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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; |
NewerOlder