الخطوة 1: اصنعها
ماذا يعني؟
اصنع آلة موسيقية تعزف نغمات مختلفة بضغطة زر.
هذان الفيديوهان يعرضان لك ما ستصنعه وكيفية برمجته:
مقدمة
دليل البرمجة
كيف يعمل ؟
- إن صندوق الموسيقى عبارة عن آلة تقوم بتشغيل أغانٍ مختلفة عندما تضع عملة معدنية وتختار اللحن الذي تريد سماعه بالضغط على الأزرار.
- This micro:bit jukebox uses the A and B button inputs to play different built-in tunes.
- If you have a micro:bit V2 with built-in speaker, you'll hear the sound straight away. You can also attach headphones to any micro:bit using crocodile clip leads:

- قم بتوصيل موصل مايكروبت (micro:bit) 0 بطرف قابس سماعة الرأس، وGND بالجزء الأطول من قابس سماعة الرأس.
- عندما تصدر صوتًا باستخدام micro:bit، يتحول الدبوس 0 إلى ناتج.
ما تحتاجه
- المايكروبيت (micro:bit) (أو محاكي MakeCode)
- محرر MakeCode أو Python
- حزمة البطارية (اختياري)
- a pair of headphones and two crocodile clip leads (optional)
الخطوة 2: برمجها
الخطوة 3: حسّنها
- قم بتغيير النغمات، على سبيل المثال جرب PRELUDE أو ENTERTAINER. You can find a list of all the built-in tunes you can use in Python here.
- اعرض صور، أو أحرف، أو أرقام، أو كلمات مختلفة بناءً على اللحن الذي اخترته.
- Make it play a different tune if you shake it, press buttons A and B at the same time, or press the micro:bit's touch logo.
This content is published under a Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) licence.