Operácie

Micro:bit

Z SensorWiki

Hlavná stránka:


Set of links:



Deep into details:


Skusime urobit prvy program v rozlicnych jazykoch:

Tuto bude obrazok v blocks a pod nim tri rozlicne stlpecky, ani nemusia byt collapsible:

Microbit01.png

Javascript

basic.showIcon(IconNames.Heart)

Python

from microbit import *

display.show(Image.HEART)

C++

 #include "MicroBit.h"

 MicroBit uBit;
 MicroBitImage heart("0,1,0,1,0\n
                      1,0,1,0,1\n
                      0,1,0,1,0\n
                      1,0,1,0,1\n
                      0,1,0,1,0\n"); // 5x5 image 

int main()
{
    uBit.init();
    uBit.display.print(image);
    release_fiber();
}


Výsledok bude vyzerať takto...

Manuál k Blocks https://makecode.microbit.org/blocks

Manuál k Javascriptu: https://makecode.microbit.org/javascript

Manuál k Pythonu: https://microbit-micropython.readthedocs.io/en/latest/

Manuál k C-čku: https://lancaster-university.github.io/microbit-docs/

Jazyk (asi je najlepsie pouzit anglictinu, ale keby niekto trval na slovencine pre Blocks, tak takto: https://makecode.microbit.org/?lang=sk_SK


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)