Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Good day all,
I am trying to write a simple code that will return and store, in a txt file, the values of the five reflection sensors. I included m3pimaze.h library (http://mbed.org/users/jonmarsh/libraries/m3pimaze/lngdpc) which should allow me to do exactly that using readsensor(int *sensor). The problem is that, when I open the txt file, the returned values are 0, all the time, even if I change the surface (black/white) beneath the sensors. This is the code I am currently using:
Do you guys know what am I doning wrong?
Thank you in advance.
All the best, Igor