I just purchased a load of Me Uno Shields and different Me sensors to use in a school environment. I’m now trying to use the Me 4-button with an Arduino Uno (3) with Me Uno Shield and mBlock, but I can’t find a block for it. I’m running 3.1. I tried 3.2.1 (the latest?)
Me 4-button not compatible with Me Uno Shield?
Try the ‘button’ block.
It has key 1-4 options, which seem to match the 4-button operation.
Sorry, I don’t have the shield or 4-button module to test it.
Good luck,
Mike
Mike, it works fine. My problem, not updated to 3.2.2. After update, firmwire update, and a little programming I have it working. What is interesting is how it cycles -
Uno Shield Program
Forever
If
button port 7 - key 1 pressed
set led 1 to red
else led 1 to 0
if button port 7 - key 2 pressed
set led 2 to blue
…
If I hold down button 1 : It flashes! I think it is cycling through the “if’s”, or maybe it bounces and causes the flashes.
That code block uses a library function show(). I cannot find the actual code, but it must have an ‘on-delay-off’ command in it.
When Manually coding, once the LED is turned on (writeRed(255)) is stays on until turned off (writeRed(0)).