added radio transmit power

This commit is contained in:
Peli de Halleux
2016-03-15 13:05:11 -07:00
parent fb65711f08
commit 3c76e86cef
3 changed files with 23 additions and 1 deletions

View File

@ -82,4 +82,16 @@ namespace radio {
//% blockId=radio_set_group block="set group %ID"
export function setGroup(id: number) : void {
}
/**
* Change the output power level of the transmitter to the given value.
* @param power a value in the range 0..7, where 0 is the lowest power and 7 is the highest, eg: 7
*/
//% help=/functions/set-transmit-power
//% shim=micro_bit::setTransmitPower
//% weight=9
//% blockId=radio_set_transmit_power block="set transmit power %power"
export function setTransmitPower(power:number) {
}
}