Skip to content

Translated bitWrite #57

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 6, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions Language/Functions/Bits and Bytes/bitWrite.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: bitWrite()
categories: [ "Functions" ]
subCategories: [ "Bits and Bytes" ]
categories: [ "कार्यों" ]
subCategories: [ "बिट्स और बाइट्स" ]
---


Expand All @@ -11,69 +11,69 @@ subCategories: [ "Bits and Bytes" ]
= bitWrite()


// OVERVIEW SECTION STARTS
[#overview]
// अवलोकन अनुभाग शुरू होता है
[#अवलोकन]
--

[float]
=== Description
Writes a bit of a numeric variable.
=== विवरण
न्यूमेरिक वैरिएबल का थोड़ा लिखता है।
[%hardbreaks]


[float]
=== Syntax
=== वाक्य - विन्यास (Syntax)
`bitWrite(x, n, b)`


[float]
=== Parameters
`x`: the numeric variable to which to write. +
`n`: which bit of the number to write, starting at 0 for the least-significant (rightmost) bit. +
`b`: the value to write to the bit (0 or 1).
`x`: संख्यात्मक चर जिस पर लिखना है। +
`n`: कम से कम महत्वपूर्ण (सबसे दाहिने) के लिए 0 से शुरू होने वाली संख्या को लिखने के लिए कौन सा है। +
`b`: बिट (0 या 1) को लिखने का मान।


[float]
=== Returns
=== रिटर्न
Nothing

--
// OVERVIEW SECTION ENDS
// ओवरव्यू अनुभाग अंत


// HOW TO USE SECTION STARTS
[#howtouse]
// कैसे उपयोग करें खंड की शुरुआत
[#कैसेउपयोगकरें]
--

[float]
=== Example Code
Demonstrates the use of bitWrite by printing the value of a variable to the Serial Monitor before and after the use of `bitWrite()`.
=== उदाहरण कोड
`bitWrite()` के उपयोग से पहले और बाद में सीरियल मॉनीटर पर एक वैरिएबल के मान को प्रिंट करके bitWrite के उपयोग को दर्शाता है।.


[source,arduino]
----
void setup() {
Serial.begin(9600);
while (!Serial) {} // wait for serial port to connect. Needed for native USB port only
byte x = 0b10000000; // the 0b prefix indicates a binary constant
while (!Serial) {} // कनेक्ट करने के लिए सीरियल पोर्ट की प्रतीक्षा करें। केवल देशी यूएसबी पोर्ट के लिए आवश्यक है
byte x = 0b10000000; // 0b उपसर्ग एक द्विआधारी स्थिर इंगित करता है
Serial.println(x, BIN); // 10000000
bitWrite(x, 0, 1); // write 1 to the least significant bit of x
bitWrite(x, 0, 1); // x का कम से कम महत्वपूर्ण बिट 1 लिखें
Serial.println(x, BIN); // 10000001
}

void loop() {}
----
[%hardbreaks]
--
// HOW TO USE SECTION ENDS
// कैसे उपयोग करें खंड का अंत


// SEE ALSO SECTION
[#see_also]
// यह भी देखे खंड
[#यह_भी_देखे]
--

[float]
=== See also
=== यह भी देखे

--
// SEE ALSO SECTION ENDS
// यह भी देखे खंड का अंत