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.
10 years, 6 months ago.
Problem with KL25Z
The compiler fails to read #include "MMA8451Q.h". Error displayed is
- include file "MMA8451Q/MMA8451Q.h" includes itself "#include "MMA8451Q.h""
please help.
point to the program, which one did you include?
posted by Martin Kojtal 17 Feb 2015-->this library creates the problemint main(void) {
MMA8451Q acc(P_E25, P_E24, MMA8451_I2C_ADDRESS); PwmOut rled(LED_RED); PwmOut gled(LED_GREEN); PwmOut bled(LED_BLUE);
while (true) { rled = 1.0 - abs(acc.getAccX()); gled = 1.0 - abs(acc.getAccY()); bled = 1.0 - abs(acc.getAccZ()); wait(0.1); } }
posted by Ramprasad Ramakrishnan 17 Feb 2015