BlocklyProp
BlocklyProp copied to clipboard
HMC5883L blocks missing from Blockly.
The blocks for the HMC5883L are missing in Blockly but are still in the help menu.


They are available in the "other" board type - and are VERY old - so try them out and let me know if they still work, and we can open them back up in the rest of the board types.
I created a new project with the "Other" board type; added two blocks as shown below and found that the project will not compile.

Compile... Failed!
-------- compiler messages --------
Included libraries: compass3d, simpletools
single.c:2:25: fatal error: simpletools.h: No such file or directory
compilation terminated.
Download...
The generated C code for this project:
// ------ Libraries and Definitions ------
#include "simpletools.h"
#include "compass3d.h"
// ------ Global Variables and Objects ------
int __compX, __compY, __compZ;
float __compH;
int item;
// ------ Main Program ------
int main() {
i2c *compass_bus = i2c_newbus(0, 0, 0);
compass_init(compass_bus);
compass_read(bus, &__compX, &__compY, &__compZ);
__compH = atan2(((float) __compY), (((float) __compX)) * 180.0 / PI;
if (__compH < 0.0) __compH = (360.0 + __compH); item = (int) __compH;
}
@AndyLindsay is the compass3d.h file and library included in Simple Libraries?
That's what I was afraid of...