This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
plugins:bbc_microbit [2016/10/23 20:26] madlyr Added desription to MicroBitCtrl methods |
plugins:bbc_microbit [2019/03/04 08:22] madlyr [Table] |
||
---|---|---|---|
Line 19: | Line 19: | ||
===== MicroBit Methods ===== | ===== MicroBit Methods ===== | ||
- | ^ Method ^ Description ^ | + | ^ Method |
- | | [[microbit_analogread|AnalogRead( pin )]] | | | + | | [[microbit_analogread|AnalogRead( pin )]] | |
- | | [[microbit_connect|Connect( address )]] | | | + | | [[microbit_connect|Connect( address )]] | |
- | | [[microbit_createcontroller|CreateController( size )]] | | | + | | [[microbit_createcontroller|CreateController( size )]] |
- | | [[microbit_disconnect|Disconnect()]] | | | + | | [[microbit_disconnect|Disconnect()]] |
- | | [[microbit_getimage|GetImage()]] | | | + | | [[microbit_getimage|GetImage()]] |
- | | [[microbit_getversion|GetVersion( num, txt )]] | | | + | | [[microbit_getversion|GetVersion( num, txt )]] |
- | | [[microbit_oncancel|OnCancel()]] | | | + | | [[microbit_oncancel|OnCancel()]] |
- | | [[microbit_onconnect|OnConnect()]] | | | + | | [[microbit_onconnect|OnConnect()]] |
- | | [[microbit_ondevice|OnDevice( name, address, bonded, rssi )]] | | | + | | [[microbit_ondevice|OnDevice( name, address, bonded, rssi )]] | |
- | | [[microbit_ondisconnect|OnDisconnect()]] | | | + | | [[microbit_ondisconnect|OnDisconnect()]] |
- | | [[microbit_onreceive|OnReceive( data )]] | | | + | | [[microbit_onreceive|OnReceive( data )]] |
- | | [[microbit_onselect|OnSelect( title, body )]] | | | + | | [[microbit_onselect|OnSelect( title, body )]] | |
- | | [[microbit_reset|Reset()]] | | | + | | [[microbit_reset|Reset()]] |
- | | [[microbit_save|Save()]] | | | + | | [[microbit_save|Save()]] |
- | | [[microbit_scan|Scan( address )]] | | | + | | [[microbit_scan|Scan( address )]] | |
- | | [[microbit_scrolltext|ScrollText( text, interval )]] | | | + | | [[microbit_scrolltext|ScrollText( text, interval )]] |
- | | [[microbit_send|Send( msg )]] | | | + | | [[microbit_send|Send( msg )]] | |
- | | [[microbit_sendcode|SendCode( code )]] | | | + | | [[microbit_sendcode|SendCode( code )]] |
- | | [[microbit_setleds|SetLEDs( bits )]] | | | + | | [[microbit_setleds|SetLEDs( bits )]] |
- | | [[microbit_setonbutton|SetOnButton( callback )]] | | | + | | [[microbit_setonbutton|SetOnButton( callback )]] |
- | | [[microbit_setonconnect|SetOnConnect( callback )]] | | | + | | [[microbit_setonconnect|SetOnConnect( callback )]] |
- | | [[microbit_setondevice|SetOnDevice( callback )]] | | | + | | [[microbit_setondevice|SetOnDevice( callback )]] |
- | | [[microbit_setondisconnect|SetOnDisconnect( callback )]] | | | + | | [[microbit_setondisconnect|SetOnDisconnect( callback )]] |
- | | [[microbit_setonevent|SetOnEvent( callback )]] | | | + | | [[microbit_setonevent|SetOnEvent( callback )]] |
- | | [[microbit_setonmotion|SetOnMotion( callback )]] | | | + | | [[microbit_setonmotion|SetOnMotion( callback )]] |
- | | [[microbit_setonreceive|SetOnReceive( callback )]] | | | + | | [[microbit_setonreceive|SetOnReceive( callback )]] |
- | | [[microbit_setontemp|SetOnTemp( callback )]] | | | + | | [[microbit_setontemp|SetOnTemp( callback )]] |
- | | [[microbit_setsplitmode|SetSplitMode( mode, p1, p2 )]] | | | + | | [[microbit_setsplitmode|SetSplitMode( mode, p1, p2 )]] |
- | | [[microbit_startscan|StartScan()]] | | | + | | [[microbit_startscan|StartScan()]] |
- | | [[microbit_stopscan|StopScan()]] | | | + | | [[microbit_stopscan|StopScan()]] |
- | | [[microbit_watchaccelerometer|WatchAccelerometer( precision, interval, cancel )]] | | | + | | [[microbit_watchaccelerometer|WatchAccelerometer( precision, interval, cancel )]] | |
- | | [[microbit_watchbutton|WatchButton( name, cancel )]] | | | + | | [[microbit_watchbutton|WatchButton( name, cancel )]] |
- | | [[microbit_watchinput|WatchInput( pin, cancel )]] | | | + | | [[microbit_watchinput|WatchInput( pin, cancel )]] | |
Line 292: | Line 292: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | ===== Troubleshooting ===== | ||
+ | There is a separate article on [[microbit: | ||
+ |