Compiling Error


I just got my Lego nxt shield in the mail today but I can’t get any code to work with it. I have the bricktronics shield folder inside my libraries and inside the bricktronics folder I also placed the buttons, color, light and motor folders. When I try to compile the code I get the following error:

Arduino Stuff/libraries/BricktronicsShield/BricktronicsShield.h:41:18: fatal error: Wire.h: No such file or directory
#include <Wire.h>
compilation terminated.

What is this Wire.h it is referring to? I’ve done some searching on the website, github and this forum and have no idea.

Ah ha! So wire is a library provided by Arduino that I just didn’t import. That problem is solved but now when I am trying to do the single motor sketch, all I hear is a high pitch beep every second and don’t see the motor actually starting to spin.

The motor works with the multiple motor sketch so that is nice I guess. Sorry for my nonsense posts, I am very new to this and excited to learn!

1 Like