Uyga topshiriq:
1.
2 ta svetadiod ulang. Ular navbati bilan yonib o‟chsin. (qoldiqli bo‟lish %
amalidan
foydalaning)
2.
2 ta svetadiod ulang. Ular har juft sekundda yonsin.
3.
Monitor portda 0 dan 10 gacha sanasin. 10 ga kelganda qaytadan sanasin.
4.
Monitor portda 0 dan 10 gacha sanasin. 10 ga kelganda orqaga qarab sanasin.
5.
Svetadiod o‟chib yonsin. Har 5 marta o‟chib yonganda monitor portda “5 marta o‟chib
yondi” degan yozuv chiqsin.
6.
Svetadiod o‟chib yonsin. 5 marta o‟chib yongandan keyin monitor portda “svetadiod
o‟chiq” degan yozuv doimiy chiqib tursin va svetadiod qaytib yonmasin.
7.
Svetadiod o‟chib yonsin. 5 marta o‟chib yongandan keyin monitor portda bir martagina
“5 marta o‟chib yondi” degan yozuv chiqsin va svetadiod qaytib yonmasinam, monitor
portdayam yozuv chiqmasin.
8.
Svetadiod har 10 sekundda bir yonsin va monitor portda “10 sekund bo‟ldi” yozuvi
chiqsin.
9.
8 ta svetadiod ulang. Ular navbati bilan yonsin.
10.
8 ta svetadiod ulang. Sakkizta svetodiodli qatorda bitta
svetodiodli yuruvchi olov
dasturini tuzing. Ular navbati bilan yonib o‟chsin, ya‟ni, birinchi, 1-svetadiod yonsin, 1
sekunddan keyin o‟chib 2-svetadiod yonsin, 1 sekunddan keyin o‟chib 3-svetadiod
yonsin va h.z va oxirida 8-svetadiod yonsin. 8-svetadiod o‟chganda 1-svetadiod yonsin.
Jarayon takrorlansin.
11.
Monitor portda 0 dan 10 gacha sanasin.
12.
Monitor portda 0 dan 10 gacha sanasin va 10 ga teng bo‟lganda orqaga qarab sanasin.
13.
Kun, oy, yilni monitor portga chiqarish.
14.
Soat yasang. Bunda har 1-daqiqada svetadiod yonsin (bunda delayni tezlashtirishingiz
mumkin).
15.
Soatning 1chi daqiqasida svetadiod 1chi shaklda yonsin va yonib bo`lgandan so`ng
“1chi shakl tugadi” degan yozuv chiqsin.
16.
Soatning 2chi daqiqasida svetadiod 2chi shaklda yonsin va yonib bo`lgandan so`ng
2chi shakl tugadi degan yozuv chiqsin.
17.
Svetafor ishlating. Bu yerda qizil yonganda “To`xtang”, sariq yonganda
“Tayyorlaning” va yashil yonganda “Oq yo`l ” degan yozuv chiqsin.
18.
Soatning 5-soniyasida 1-svetadiod yonsin va monitorda “1-svetadiod yondi”
degan
yozuv chiqsin. 10-soniyasida 2-svetadiod yonsin “2-svetadiod yondi” degan yozuv
chiqsin va hokazo.
19.
Knopka bosilsa svetadiod yonsin.
20.
Knopka bosilmaganda svetadiod yonsin.
21.
Knopka bosilganda 2ta
svetodiod yonsin , bosilmaganda boshqa 2ta svetodiod yonsin.
22.
Knopka bosib turilganda monitor portda o‟sish tartibida sanash boshlansin
(0,1,2,3,4,……), bosilmaganda kamayish tartibida (4,3,2,….) .
23.
4 ta knopka ulang. Qaysi knopka bosilsa monitor port o‟sha
knopka bosildi degan
yozuv chiqsin.
24.
Ikkita knopkani arduinoga ulang va knopkaning birinchisi bosilganda birinchi
svetodiod ikkinchi knopkani bosganimizda
ikkinchi svetodiod yonsin , bosilmaganda
ular o‟chiq tursin.
25.
Knopka bosib turilganda svetadiod yonib-o‟chib ishlab tursin. Qo‟yvorilganda
ishlashdan to‟xtasin.
26.
8 ta svetadiod tartib bilan yonib o‟chib tursin. Knopka bosib
turilganda esa teskari
tomonga yonib o‟chib tursin.
27.
Knopka bosilsa svetadiod xiralishib borsin.
28.
1-knopka bosilsa svetadiod xiralishib borsin, 2-knopka bosilsa yorqinlashib borsin.
29.
3 ta knopka va 8 ta svetadiod ulang. 1-knopka bosib turilganda 1 talik yuguruvchi olov,
2-knopka bosilgan 2
talik yuguruvchi olov, 3-knopka bosib turilganda 3 talik
yuguruvchi olov hosil bo‟lsin.
30.
1-knopka bosilsa
svetadiod navbati bilan yonsin, 2-knopka bosilsa ular navbati bilan
o‟chsin.
31.
Soat yasang. Qachonki knopka bosib turilganda soat ekranda ko‟rinsin.
32.
1-knopka
bosilsa ekranda vaqt, oy, yil ko‟rinsin, 2-knopka bosilganda soat ekranda
ko‟rinsin.