And we haven't even read any magnetic data, nor calculated a compass direction (which will happen in part 3). I really thought that the whole thing will be done in 2 or 3 parts, but I'm currently planning for 4 to 5 parts. These digital compasses are beasts.
The type "bool" is the offical C++ type for booleans. The Arduino IDE adds the alias "boolean" for it. However, meanwhile Arduino discourages its use ( www.arduino.cc/reference/en/language/variables/data-types/boolean/ ). If I remember right it helps sometimes to explicitly include "Arduino.h". Or, just replace all "boolean" in the code by "bool".
What IDE/complier are you using? "byte" is a type defined within the Arduino IDE. If you want to stay within the C++ standard use "unsigned char" or "uint8_t" instead (should work with any C++ compiler). Or simply put a "typedef uint8_t byte;" at the top of the .h file.
that's seems really nice. but got problem with. seems missing something. i can't compile... i got 'boolean' does not name a type; did you mean 'bool'? even if i add "arduino.h" i fail into some more errors... need some help..
Already answered in the comment section of part 2, but here it is again: That's curious! I'm assuming you're using the Arduino IDE since you're including "arduino.h". "boolean" is an Arduino IDE data type and doesn't require to include "arduino.h" ( www.arduino.cc/reference/en/language/variables/data-types/boolean/ ). "bool" is the standard c++ datatype and should work in any IDE. Which Arduino IDE version are you using (I'm using 1.8.19)? You could try to replace all "boolean" by "bool", but as mentioned that shouldn't be necessary.
Thank you Robert.
You're welcome!
Really nice series - thank you!
You're very welcome 😀
I find these very useful...cheers.
And we haven't even read any magnetic data, nor calculated a compass direction (which will happen in part 3). I really thought that the whole thing will be done in 2 or 3 parts, but I'm currently planning for 4 to 5 parts. These digital compasses are beasts.
@@robertssmorgasbord Indeed they are and Sunday's wouldn't be the same without your 'deep dives' !...cheers.
@@andymouse Thanks! Your support is really cheering me up 😀
I am getting an error for QMC5883l_v8 file "Compilation error: 'boolean' does not name a type; did you mean 'bool'?" Not sure why?
The type "bool" is the offical C++ type for booleans. The Arduino IDE adds the alias "boolean" for it. However, meanwhile Arduino discourages its use ( www.arduino.cc/reference/en/language/variables/data-types/boolean/ ). If I remember right it helps sometimes to explicitly include "Arduino.h". Or, just replace all "boolean" in the code by "bool".
QMC5883L::QMC5883L(TwoWire* wire,
byte default_address)
: wire(wire),
device_address(default_address)
{
}
'byte' has not been declared
What IDE/complier are you using? "byte" is a type defined within the Arduino IDE. If you want to stay within the C++ standard use "unsigned char" or "uint8_t" instead (should work with any C++ compiler). Or simply put a "typedef uint8_t byte;" at the top of the .h file.
yay
😁
👍
😃
that's seems really nice.
but got problem with. seems missing something.
i can't compile... i got
'boolean' does not name a type; did you mean 'bool'?
even if i add "arduino.h" i fail into some more errors...
need some help..
Already answered in the comment section of part 2, but here it is again:
That's curious! I'm assuming you're using the Arduino IDE since you're including "arduino.h". "boolean" is an Arduino IDE data type and doesn't require to include "arduino.h" ( www.arduino.cc/reference/en/language/variables/data-types/boolean/ ). "bool" is the standard c++ datatype and should work in any IDE. Which Arduino IDE version are you using (I'm using 1.8.19)? You could try to replace all "boolean" by "bool", but as mentioned that shouldn't be necessary.
Martinez Margaret Lopez Brenda Anderson Nancy
?!?