Micro:bit: Rozdiel medzi revíziami
Zo stránky SensorWiki
Bez shrnutí editace |
Bez shrnutí editace |
||
Riadok 29: | Riadok 29: | ||
{| class="wikitable" style="width: 100%;" | {| class="wikitable" style="width: 100%;" | ||
|- | |- style="vertical-align:top;" | ||
| style="background: #ffffcc" | | | style="background: #ffffcc" | | ||
'''Javascript''' | '''Javascript''' | ||
Riadok 41: | Riadok 41: | ||
| | | | ||
'''Python''' | '''Python''' | ||
<source lang="python"> | <source lang="python" style="background: red;"> | ||
from microbit import * | from microbit import * | ||
Riadok 53: | Riadok 53: | ||
| | | | ||
'''C++''' | '''C++''' | ||
< | <syntaxhighlight lang=c style="background: #ffffcc"> | ||
#include "MicroBit.h" | #include "MicroBit.h" | ||
Riadok 66: | Riadok 66: | ||
release_fiber(); | release_fiber(); | ||
} | } | ||
</ | </syntaxhighlight> | ||
|} | |} | ||
Riadok 87: | Riadok 87: | ||
</div> | </div> | ||
[[Category: Základy počítačov]] [[Category: micro:bit]] | [[Category: Základy počítačov]] [[Category: micro:bit]] |
Verzia z 22:57, 14. január 2018
Hlavná stránka:
- http://microbit.org/code/
- Programovanie cez web: https://makecode.microbit.org
Set of links:
- Programovanie cez ikonky - projekty: https://makecode.microbit.org/projects/smiley-buttons
- Programovanie v C++ cez mbed https://developer.mbed.org/platforms/Microbit/ a https://developer.mbed.org/teams/microbit/
- Programovanie v C++ offline http://hwhacks.com/2016/05/21/getting-started-with-offline-c-on-the-bbc-microbit/
- Komentare k C++ https://www.forward.com.au/pfod/microbit/gettingStarted.html
- Slajdy k prednaskam https://www.scss.tcd.ie/~waldroj/3d1/
- Zaujimave ulohy / projekty:
- https://make.techwillsaveus.com/bbc-microbit/activities/step-counter-by-the-faraday-institute
- https://make.techwillsaveus.com/bbc-microbit/activities/micro-graphite-303
- https://blog.adafruit.com/category/microbit/
Deep into details:
- http://mattwarren.org/2017/11/28/Exploring-the-BBC-microbit-Software-Stack/
- List of resources: https://github.com/carlosperate/awesome-microbit
Skusime urobit prvy program v rozlicnych jazykoch:
Tuto bude obrazok v blocks a pod nim tri rozlicne stlpecky, ani nemusia byt collapsible:
Javascript basic.showString("Hello!")
basic.showIcon(IconNames.Heart)
|
Python from microbit import *
while True:
display.scroll('Hello, World!')
display.show(Image.HEART)
sleep(2000)
|
C++ #include "MicroBit.h"
MicroBit uBit;
int main()
{
uBit.init();
uBit.display.scroll("Ahoj :)");
release_fiber();
}
|
Python
Naprogramujte program pre
# Add your Python code here. E.g.
from microbit import *
while True:
display.scroll('Hello, World!')
display.show(Image.HEART)
sleep(2000)