I'm currently looking at a code example for MPU-6050 usage, written by Jeff Rowberg.
In this code there are statements that use a function called 'F' with a double quoted string as a parameter.
My first question is, in a case like this where I want to know what 'F(string)' does, how do I locate where the function comes from. I mean is there an IDE based way to easily find the function/method or its declaration? Or am I forced to try to search all the includes until I find it. I've looked at the Arduino IDE reference page and cannot find anything; and I seriously doubt there would be an official function named 'F'...
The only includes in the code example are:
#include "I2Cdev.h" #include "MPU6050_6Axis_MotionApps20.h" #if I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE #include "Wire.h" #endif
and here are a couple of lines using the function:
// verify connection Serial.println(F("Testing device connections...")); Serial.println(mpu.testConnection() ? F("MPU6050 connection successful") : F("MPU6050 connection failed"));
What general procedure would one of you experienced folks follow to track down what 'F' is?