This file contains 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
#define kirmiziPin 6 // Modülün R bacağını bağlı olduğu pin | |
#define yesilPin 5 // Modülün G bacağını bağlı olduğu pin | |
#define maviPin 3 // Modülün B bacağını bağlı olduğu pin | |
void renkAyarla(int kirmizi, int yesil, int mavi){ | |
analogWrite(kirmiziPin, kirmizi); | |
analogWrite(yesilPin, yesil); | |
analogWrite(maviPin, mavi); | |
Serial.print("Kirmizi icin deger: "); | |
Serial.println(kirmizi); |
This file contains 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
<?php | |
function icerik_paragraflama() { | |
$yazi = apply_filters('the_content', get_the_content() ); | |
$paragraflar = explode('</p>', $yazi); | |
echo $paragraflar[0] ."</p>"; | |
} |
This file contains 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
// Kütüphanemizi dahil ediyoruz. | |
#include "ArabaKontrol.h" | |
// Nesnemizi Oluşturuyoruz. | |
// parametreler: (solMotorPin1, solMotorPin2, sagMotorPin1, sagMotorPin2, solMotorHiz, sagMotorHiz) | |
Araba calistir(3, 4, 7, 8, 5, 6); | |
void setup() { | |
Serial.begin(9600); |
This file contains 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
// Aracın durması için kullanması gereken fonksiyon. | |
dur(); | |
// Aracın ileri yönde hareket etmesini sağlar. | |
// İçerisine hız parametresi alarak hız kontrolü yapabilirsiniz. | |
ileri( int hizDegeri ); | |
// Aracın geri yönde hareket etmesini sağlar. | |
// İçerisine hız parametresi alarak hız kontrolü yapabilirsiniz. | |
geri( int hizDegeri ); |
This file contains 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
/* | |
Hasan Eren Keskin | |
17.04.2017 | |
herenkeskin.com/arduino-nrf24l01-kablosuz-haberlesme | |
*/ | |
// Gerekli olan kütüphaneler | |
#include <SPI.h> | |
#include "nRF24L01.h" | |
#include "RF24.h" |
This file contains 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
/* | |
Hasan Eren Keskin | |
17.04.2017 | |
herenkeskin.com/arduino-nrf24l01-kablosuz-haberlesme | |
*/ | |
// Gerekli olan kütüphaneler | |
#include <SPI.h> | |
#include "nRF24L01.h" | |
#include "RF24.h" |
This file contains 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
/* | |
Hasan Eren Keskin | |
18.04.2017 | |
herenkeskin.com/arduino-nrf24l01-ile-joystick-kontrollu-araba | |
*/ | |
// Gerekli olan kütüphaneler | |
#include <SPI.h> | |
#include "nRF24L01.h" | |
#include "RF24.h" |
This file contains 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
/* | |
Hasan Eren Keskin | |
18.04.2017 | |
herenkeskin.com/arduino-nrf24l01-ile-joystick-kontrollu-araba/ | |
*/ | |
// Gerekli olan kütüphaneler | |
#include <SPI.h> | |
#include "nRF24L01.h" | |
#include "RF24.h" |