Hi
I am trying to create a block for humidity sensor,
I want the text on it to be: “humidity (%)”,
But the Makecode keep shows the wrong text…
namespace mysensor {
/**
* get humidity as a relative percentage value.
*/
//% block="humidity (%)"
export function humidity(): number {
return sample.humidity;
}
}
I tried escaping the percentage sign (%) using:
“%%”
“%”
“\u0025”
“\uf295” (font awesome % icon)
But none of this works
Looking forward for some help,
Thanks,
Arad