Mind+General

MIND+ (v1.56) Number to ASCII

userHead anonymous 2019-08-01 22:21:03 7116 Views1 Replies
In MIND+ transform Number to ASCII operator is NOT working.
When "Transform 97 to ASCII" is executed, it displays 97 instead of "a".

Sample Code demonstarting the problem:
Code: Select all
#include <Microbit_Matrix.h>

void buttonACallback()
{
	MMatrix.print((toascii('a')));
}

void buttonBCallback()
{
	MMatrix.print((char(97)));
}


void setup() {
	onEvent(ID_BUTTON_A, PRESS, buttonACallback);
	onEvent(ID_BUTTON_B, PRESS, buttonBCallback);
}

void loop() {

}
2025-05-12 15:22:12

Thanks for your feedback, we will solve it in the next version. Currently, there are two ways to avoid that problem, click the link to see the image
1.
https://raw.githubusercontent.com/Frances9/Mind-image/refs/heads/master/Image%201.png

2.
https://raw.githubusercontent.com/Frances9/Mind-image/refs/heads/master/Image%202.png


Frances

userHeadPic anonymous