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 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) |
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 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 |
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 " " |
NewerOlder