تشغيل مثال الوميض المضمّن
فتح أول sketch عاملة لكم وترجمتها ورفعها
تشغيل مثال الوميض المضمّن درس مجاني في Arduino & IoT Academy على CoddyKit. هذا هو الدرس 4 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في Arduino & IoT Academy، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة Arduino & IoT Academy 4 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
The Hello World of Hardware
Every maker starts with Blink, the classic first sketch. It makes the onboard LED flash, proving your whole setup works. 💡
Open the Examples
The IDE ships with ready-made sketches under File then Examples. You do not even have to type anything yet.
Find Blink
Go to Examples, then Basics, then Blink. The IDE opens the complete code in a fresh window for you.
Look at setup
The setup block runs once at startup. Here it tells the built-in LED pin to act as an output.
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
}Look at loop
The loop block repeats forever. It turns the LED on, waits, turns it off, waits, then starts over.
void loop() {
digitalWrite(LED_BUILTIN, HIGH);
delay(1000);
digitalWrite(LED_BUILTIN, LOW);
delay(1000);
}What HIGH Means
Writing HIGH sends voltage to the pin, lighting the LED. Writing LOW removes it, turning the LED off.
What delay Does
The delay call pauses the program for the given milliseconds. Here 1000 means a full one-second wait.
Compile It
Click Verify to compile Blink. A clean run with no red errors means the code is ready to upload.
Upload It
Press Upload to flash Blink onto the board. Watch the tiny lights flicker as the code transfers over USB.
Watch It Blink
The orange onboard LED now flashes on and off once per second. You just made hardware do your bidding. 🎉
Make It Yours
Change both delay numbers to 200 and upload again. The LED blinks faster, proving the code is truly under your control.
Quick Check
Let's check how to speed the blink up.
Recap
You opened Blink, read setup and loop, uploaded it, and tuned the delay. Your first smart device is alive. 🎉
الأسئلة الشائعة
هل درس «تشغيل مثال الوميض المضمّن» مجاني؟
نعم — نص درس «تشغيل مثال الوميض المضمّن» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة Arduino & IoT Academy، انتقل إلى CoddyKit PRO. تتضمن دورة Arduino & IoT Academy 4 دروس في المجموع.
ماذا ستتعلم في «تشغيل مثال الوميض المضمّن»؟
فتح أول sketch عاملة لكم وترجمتها ورفعها تتمرن على Arduino & IoT Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ Arduino & IoT Academy؟
لا تُشترط خبرة سابقة. Arduino & IoT Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 4 من أصل 4.
كم من الوقت يستغرق درس «تشغيل مثال الوميض المضمّن»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس Arduino & IoT Academy هذا؟
نعم. كل درس في Arduino & IoT Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- جولة في Arduino Uno
- تثبيت Arduino IDE
- اختيار اللوحة والمنفذ ثم الرفع
- تشغيل مثال الوميض المضمّن