Membuat delay 1 detik untuk mikrokontroller menggunakan SDCC

Ada  cara gampang untuk membuat sebuah delay selama 1 detik

Lihat contoh ini

delay(int x)

while(i<x)

{

i++;

}

gampang sekali bukan?

Tinggalkan Balasan

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Ubah )

Twitter picture

You are commenting using your Twitter account. Log Out / Ubah )

Facebook photo

You are commenting using your Facebook account. Log Out / Ubah )

Connecting to %s

Ikuti

Get every new post delivered to your Inbox.