Need help about control game with sensor


#1

Hi, Im making a game with mblock using a ps2 direction button or sensor to control the character but it doesn’t work, even make a simple experiment like this:



A3 was connected with a tilt sensor and D7 was a led. Also with a Serial.println. It work fine, it can control led on/off and the serial data can be accurately display but the panda won’t interactive with the data signal. Can anyone tell me what I have missing?


#2

If you use block “Arduino program” - it mean arduino work offline, does not interact with any blocks.