This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
getting_started:start [2018/12/30 01:57] 114.125.57.28 [Note for contributors] |
getting_started:start [2021/09/27 13:03] (current) al4he6 |
||
---|---|---|---|
Line 5: | Line 5: | ||
**[[install|Install]]** | **[[install|Install]]** | ||
+ | |||
+ | **[[Backup Your Work|Backup Your Work]]** | ||
**[[docs|Documentation]]** | **[[docs|Documentation]]** | ||
Line 11: | Line 13: | ||
**[[getting_started: | **[[getting_started: | ||
+ | |||
+ | **[[getting_started: | ||
+ | |||
+ | **[[getting_started: | ||
**[[getting_started: | **[[getting_started: | ||
+ | |||
+ | **[[getting_started: | ||
+ | |||
+ | **[[getting_started: | ||
Line 18: | Line 28: | ||
---- | ---- | ||
- | // Load the MicroBit plugin. | + | ====Note for contributors==== |
- | app.LoadPlugin( " | + | If you wish to create a new page in the **Getting Started** namespace, please create a link to the new page above, save this page and click on the link you just created. |
- | + | ||
- | // Called when application is started. | + | |
- | function OnStart() | + | |
- | { | + | |
- | // Lock screen orientation to Portrait. | + | |
- | app.SetOrientation( " | + | |
- | + | ||
- | // Create our main layout. | + | |
- | lay = app.CreateLayout( " | + | |
- | lay.SetBackColor( "# | + | |
- | + | ||
- | // Create the Microbit plugin. | + | |
- | microbit | + | |
- | + | ||
- | // Creates micro:bit board image with 90% of layout width | + | |
- | img = app.CreateImage( microbit.GetImage(), | + | |
- | | + | |
- | + | ||
- | //Add main layout | + | |
- | app.AddLayout( lay ); | + | |
- | } | + |