Mind+General

MIND+ (v1.56) Number to ASCII

userHead anonymous 2019-08-01 22:21:03 6882 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() {

}
2019-08-02 17:59:15 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://github.com/Frances9/Mind-image/ ... g?raw=true

2.
https://github.com/Frances9/Mind-image/ ... g?raw=true

Frances
userHeadPic anonymous