mBlock Block for Me Light and Grayscale Sensor


#1

I have not found block to control the light and grayscale module in MBLOCK. If I use the block “lightsensor” it’s OK for this value but there is nothing for grayscale …
How to use it ?

Update
In addition, there is no file for that module in the library V3.2.2.

Anyone have an answer?


#2

Hi Frederic,

Here is the link for latest mBlock (v3.3.0): http://learn.makeblock.com/software/
As for the grayscale, you may have opened the Arduino page. Please click on Back button to exit the Arduino page and then the gray block will be available.


#3

Hi, Thanks for your answer but my problem is different cause light sensor and light & grayscale sensor are 2 different products.
The answer you give is OK for the light sensor but not for the light & grayscale sensor.
As in the 3.2.2 version, in the 3.3.0 there is a file MeLightSensor.cpp and .h in the makeblock library but no file for the light & grayscale sensor.
And in mBlock, there is only a block to return light value. Nothing for the grayscale value.
Regards,


#4

Hi Frederic,

I misunderstood your problem before.
Yes, there is no light and grayscale module program in mBlock. We sold a module called light and grayscale module, while actually it is just a light sensor. Now we do not sell the light and grayscale module anymore and only sell the light sensor module.


#5

OK,
So I’ll return it to my distributor. But the Light & Grayscale sensor is still on sale on your website (SKU 11006) …