Пример #1
0
 //% blockId="control_device_name" block="device name" weight=10 blockGap=8
 //% advanced=true
 StringData* deviceName() {
     return ManagedString(microbit_friendly_name()).leakData();
 }
Пример #2
0
 //% blockId="control_device_name" block="device name" weight=10 blockGap=8
 //% advanced=true
 String deviceName() {
     return mkString(microbit_friendly_name(), -1);
 }