|
|
səhifə | 2/2 | tarix | 02.06.2023 | ölçüsü | 1,35 Mb. | | #122531 |
| Laboratoriya №7 OTvaUDT 2020 6
Dastur kodi
else if (cmd.equals(CMD_3)) {
analogWrite(RED_PIN, power);
} else if (cmd.equals(CMD_4)) {
digitalWrite(RED_PIN, LOW);
} else if (cmd.equals(CMD_5)) {
analogWrite(GREEN_PIN, power);
} else if (cmd.equals(CMD_6)) {
digitalWrite(GREEN_PIN, LOW);
}
//...
}
recStr = "";
} else if (ch >= 'a' && ch <= 'w' || ch >= 'A' && ch <= 'W'
|| ch >= '0' && ch <= '9' || ch == ':'|| ch == '-'
|| ch == '+'||ch == '_') {
recStr += ch; }
}
}
6-laboratoriya ishi
Android orqali boshqarish
6-laboratoriya ishi
Android orqali boshqarish
6-laboratoriya ishi
Android orqali boshqarish
6-laboratoriya ishi
Modellashtirish
6-laboratoriya ishi
Modellashtirish
6-laboratoriya ishi
Topshiriq
N
|
RED
LED
pin
|
GREEN
LED
pin
|
BLUE
LED
pin
|
N
|
RED
LED
pin
|
GREEN
LED
pin
|
BLUE
LED
pin
|
1.
|
4
|
7
|
3
|
16.
|
10
|
8
|
7
|
2.
|
3
|
8
|
4
|
17.
|
4
|
5
|
8
|
3.
|
4
|
7
|
6
|
18.
|
5
|
8
|
7
|
4.
|
5
|
10
|
2
|
19.
|
6
|
2
|
10
|
5.
|
4
|
5
|
8
|
20.
|
8
|
11
|
5
|
6.
|
2
|
8
|
5
|
21.
|
9
|
2
|
8
|
7.
|
3
|
9
|
8
|
22.
|
7
|
7
|
9
|
8.
|
4
|
6
|
2
|
23.
|
2
|
4
|
6
|
9.
|
5
|
7
|
11
|
24.
|
9
|
5
|
7
|
10.
|
5
|
9
|
2
|
25.
|
2
|
5
|
9
|
11.
|
6
|
4
|
7
|
26.
|
3
|
9
|
4
|
12.
|
4
|
8
|
6
|
27.
|
6
|
7
|
4
|
13.
|
3
|
9
|
5
|
28.
|
10
|
9
|
5
|
14.
|
2
|
6
|
5
|
29.
|
5
|
8
|
6
|
15.
|
7
|
9
|
4
|
30.
|
4
|
3
|
9
|
6-laboratoriya ishi
HISOBOT NAMUNASI: - Ishning nomi;
- Belgilangan variant asosida yeg’ilgan ulanish sxemasi;
- Tegishli vazifani bajaruvchi, sxemaga mos keluvchi dastur kodi;
- Xulosa.
Hisobot Word yoki PDF formatlarida tayyorlanishi mumkin. Ishchi holatdagi sxema va dasturni ilova qilinishi tavsiya qilinadi.
6-laboratoriya ishi
FOYDALANISH UCHUN ADABIYOTLAR RO’YHATI: - Exploring Arduino: Tools and Techniques for Engineering Wizardry; 2nd Ed; Jeremy Blum; Wiley; 512 pages; 2019; ISBN 978-1119405375.
- Programming Arduino Next Steps: Going Further with Sketches; 2nd Ed; Simon Monk; McGraw-Hill Education; 320 pages; 2018; ISBN 978-1260143249.
- Programming Arduino: Getting Started With Sketches; 2nd Ed; Simon Monk; McGraw-Hill Education; 192 pages; 2016; ISBN 978-1259641633.
- Arduino For Dummies; 2nd Ed; John Nussey; John Wiley & Sons; 400 pages; 2018; ISBN 978-1119489542.
- Beginning C for Arduino: Learn C Programming for the Arduino; 2nd Ed; Jack Purdum; Apress; 388 pages; 2015; ISBN 978-1484209417.
- Проекты с использованием контроллера Arduino, БХВ-Петербург, 2014, ISBN9785977533379.
6-laboratoriya ishi
NAZORAT SAVOLLARI: - SoftwareSerial buyrug’ining vazifasi nimadan iborat;
- analogWrite funksiyasi vazifasini izohlang;
- include buyrug’ining vazifasi nimadan iborat;
- equals funksiyasi vazifasini izohlang;
- If operatori vazifasini tushuntiring.
6-laboratoriya ishi
Dostları ilə paylaş: |
|
|