rgb-yorug‘lik diodi. impuls kengligining modulyatsiyasi
Page preview (3 pages)
Scroll down 👇About "rgb-yorug‘lik diodi. impuls kengligining modulyatsiyasi"
topshiriq maqsadi: rgb-yorug‘lik diodi. impuls kengligining modulyatsiyasi const int pingpin = 7; const int red=11; const int blue=10; int green=9; void setup() { // initialize serial communication: serial.begin(9600); pinmode(red,output); pinmode(blue,output); pinmode(green,output); } void loop() { // establish variables for duration of the ping, and the distance result // in inches and centimeters: long duration, inches, cm; // the ping))) is triggered by a high pulse of 2 or more microseconds. // give a short low pulse beforehand to ensure a clean high pulse: pinmode(pingpin, output); digitalwrite(pingpin, low); delaymicroseconds(2); digitalwrite(pingpin, high); delaymicroseconds(5); digitalwrite(pingpin, low); // the same pin is used to read the signal from the ping))): a high pulse //...
This file contains 3 pages in DOCX format (523.9 KB). To download "rgb-yorug‘lik diodi. impuls kengligining modulyatsiyasi", click the Telegram button on the left.