Light sensor value - blocks used in mblock5...?


#1

HI, I USED TO HAVE A SIMPLE program that the sprite, would just ‘say’ the value of the on-board light sensor when green flag clicked and of course the mbot connected usb.

i cant seem to understand how to do this in v5. thank you all!
pic attachedLIGHTSENSORVALUE

i just figured out how to just create a variable called ‘lightsensor’ and has the sprite say the variable, and the mbot set hte variable to the sensor value…

but is there a simplier way, like earlier version?


#2

Hi magicmar,
In mBlock5, the devices and sprites are separated plate and the only communication method is variable.
Hope you can understand.


Thanks.