New to mBlock, not using makeblock products. I am evaluating the use of mBlock to teach Arduino programming to middle and high school students. It actually looks pretty good as an intermediary step. I like going from Scratch to a direct upload to Arduino.
However, the digitalRead block is faulty as it reads an integer value (1,0) but is structured as a logical value (true, false) with pointy ends. I’m not sure if I’m using the right words to describe this but I know it doesn’t work. One solution I found is to correct the s2e file for Arduino to substitute “digitalRead({0}) == 1” for “digitalRead({0})”. This does work.
What I don’t know though is whether I can change the install file to install the correct line, or whether I can provide students with an easy way to change it in their installations. (My course is being provided via Moodle California-wide, so its not easy to step people through the replacement. Anyone have any suggestions?
Milt