Add in 'console' doc stuff (#342)
* Add 'playSound' api docs * Add in 'console' doc stuff * Add 'send to screen' in summary\
This commit is contained in:
committed by
Peli de Halleux
parent
60ec3f1c99
commit
8ee63df325
@ -51,6 +51,7 @@ namespace console {
|
||||
*/
|
||||
//% blockId=logsendtostreen block="send console to screen"
|
||||
//% weight=1
|
||||
//% help=console/send-to-screen
|
||||
export function sendToScreen(): void {
|
||||
console.screen.attach();
|
||||
}
|
||||
|
@ -10,6 +10,7 @@ namespace control {
|
||||
*/
|
||||
//% weight=21 blockGap=12 blockId="control_raise_event"
|
||||
//% block="raise event|from %src|with value %value" blockExternalInputs=1
|
||||
//% help=control/raise-event
|
||||
void raiseEvent(int src, int value) {
|
||||
pxt::raiseEvent(src, value);
|
||||
}
|
||||
|
Reference in New Issue
Block a user