- Thu Aug 01, 2019 6:21 am
#30259
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:
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() {
}