I tried the accelerometer code to change the color of rgb led as per the tilt of the board but to explore more further I am intrested in knowing what values of mma8451q corresponds to what led signal data, I am using Kielv4, I imported the code from mbed.
Hi,
The FRDM-KL25Z demo RGB led control routine is located at <FRDM_KL25ZDemo.c> file accel_demo() function.
Wish it helps.
Have a great day,
Ma Hui
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------