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:
Galen Nickel
2018-02-23 14:13:08 -08:00
committed by Peli de Halleux
parent 60ec3f1c99
commit 8ee63df325
6 changed files with 56 additions and 2 deletions

View File

@ -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();
}

View File

@ -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);
}