--- Başlık: Kurum Başlığı title_expanded: Daha Az veya Eşit kategoriler: [ "Structure" ] Alt kategoriler: [ "Subcategory Name" ] --- // ARDUINO DİL REFERANS ETİKETLERİ (yukarıda) ►►►►► HER ZAMAN DOSYADA DAHİL ◄◄◄◄◄ // title tüm Referans terimler Dizininde görünecek // Başlık bir operatör ise, title_expanded içindeki kelimelere yazın. // Kategoriler: Yapı, Değişken veya İşlev arasında seçim yapın // Dizinde mevcut olanlar içindeki alt kategori ("Dijital Giriş / Çıkış", "Aritmetik Operatörler") // PAGE TITLE = title // OVERVIEW SECTION STARTS [#overview] -- [float] === Description // Describe what this Reference term does, and what it is used for ►►►►► THIS SECTION IS MANDATORY ◄◄◄◄◄ Bir pime analog bir değer (http://arduino.cc/en/Tutorial/PWMCLPWM wave]) yazar. Bir LED'i farklı parlaklıklarda yakmak veya bir motoru çeşitli hızlarda sürmek için kullanılabilir. AnalogWrite () `a yapılan bir çağrıdan sonra, pin belirtilen görev döngüsünün sabit bir kare dalgasını oluşturacak, sonraki analogWrite ()` ya (ya da `digitalRead ()` ya da digitalWrite () 'a yapılan çağrıya kadar) Aynı pin). PWM sinyalinin çoğu pin üzerindeki frekansı yaklaşık 490 Hz'dir. Uno ve benzeri kartlarda, 5 ve 6 pimleri yaklaşık 980 Hz frekansa sahiptir. [%hardbreaks] image::http://arduino.cc/en/uploads/Main/ArduinoUno_R3_Front_450px.jpg[caption="", title="Güzel bir Arduino UNO"] [%hardbreaks] [float] === Sözdizimi // Enter Reference term syntax, please specify all available parameters ►►►►► THIS SECTION IS MANDATORY ◄◄◄◄◄ `analogWrite(pin, value)` [float] === Parametreler // List all available parameters, please describe them one by one adding the data type (e.g int, boolean, char, String, float, long, double...) ►►►►► THIS SECTION IS MANDATORY FOR FUNCTIONS ◄◄◄◄◄ `pin`: Yazılacak pin numarası. İzin verilen veri türleri: int. + `value`: görev döngüsü 0 (her zaman kapalı) ve 255 (her zaman açık) arasındadır. İzin verilen veri türleri: int. [float] === Returns // Enter what the function returns (e.g. HIGH or LOW), if there is no return please write: _Nothing_ ►►►►► THIS SECTION IS MANDATORY FOR FUNCTIONS ◄◄◄◄◄ Hiçbir şey değil -- // OVERVIEW SECTION ENDS // HOW TO USE SECTION STARTS [#howtouse] -- [float] === Örnek kod // Describe what the example code is all about and add relevant code ►►►►► THIS SECTION IS MANDATORY ◄◄◄◄◄ Çıkışı, potansiyometreden okunan değerle orantılı olarak LED'e ayarlar. [source,arduino] // Add relevant code that exemplify the use of the Reference term, // Please note that sometimes when copy-pasting code, a few spaces can be added at the beginnng of each line of code. // If that happens, please remove the extra spaces. Thanks! ---- int ledPin = 9; // LED connected to digital pin 9 int analogPin = 3; // potentiometer connected to analog pin 3 int val = 0; // variable to store the read value void setup() { pinMode(ledPin, OUTPUT); // sets the pin as output } void loop() { val = analogRead(analogPin); // read the input pin analogWrite(ledPin, val / 4); // analogRead values go from 0 to 1023, analogWrite values from 0 to 255 } ---- [%hardbreaks] [float] === Notlar ve Uyarılar // Add useful notes, tips, caveat, known issues, and warnings about this Reference term This is because of interactions with the `millis()` and `delay()` functions. [%hardbreaks] image::http://arduino.cc/en/uploads/Main/ArduinoUno_R3_Front_450px.jpg[caption="", title="Güzel bir Arduino UNO"] [%hardbreaks] -- // HOW TO USE SECTION ENDS // SEE ALSO SECTION [#see_also] -- [float] === Ayrıca bakınız // Link relevant content by category, such as other Reference terms (please add the tag #LANGUAGE#), // definitions: (please add the tag #DEFINITION#), and examples of Projects and Tutorials // examples: (please add the tag #EXAMPLE#) [role="language"] // Whenever you want to link to another Reference term, or more in general to a relative link, // use the syntax shown below. Please note that the file format is subsituted by attribute. // Please note that you always need to replace spaces that you might find in folder/file names with %20 // The entire link to Reference pages must be lower case, regardless of the case of the folders and files in this repository. // For language tag, items will be automatically generated for any other item of the same subcategory, // no need to add links to other pages of the same subcategory // if you don't include this section, a minimal version with only the other pages of the same subcategory will be generated. * #LANGUAGE# link:../AsciiDoc_Template-Parent_Of_Entities[Parent Of Entities] * #LANGUAGE# link:../../AsciiDoc_Dictionary/AsciiDoc_Template-Dictionary[AsciiDoc Template Dictionary] [role="definition"] // Please note that all external links need to be opened in a new window/tab by adding ^ right before the last square brackets * #DEFINITION# http://arduino.cc/en/Tutorial/PWM[PWM^] [role="example"] // Please note that all external links need to be opened in a new window/tab by adding ^ right before the last square brackets * #EXAMPLE# http://arduino.cc/en/Tutorial/Blink[Blink^] -- // SEE ALSO SECTION ENDS