I know my mBot has a light sensor, because I can read it with a C program. (I’m not talking about the line follower or the ultrasonic sensor.) Yet, it isn’t mentioned as a feature on the Makeblock website page for the mBot, nor are there any examples that I can see in Mblock.
Does anyone have any insight into this omission?
Here’s my code:
#include "MeMCore.h"
MeLightSensor lightSensor(PORT_6);
void setup()
{
Serial.begin(115200);
}
void loop()
{
Serial.println(lightSensor.read());
delay(100);
}