Retrowatch Problems

Hi guys. I have been trying for awhile to make this project and have had no success. I am trying to make smart glasses like in the link at the bottom. I keep getting error messages and I don't understand how to fix them. I have experienced 20 plus problems and I don't understand why. If anyone can help, here is the project code. It's a long project, so if you are up to a challenge, this is for you. Thanks for the help!!

First error message.

Arduino: 1.8.8 (Windows 10), Board: "Arduino Nano, ATmega328P"

Build options changed, rebuilding all
smartglass:27:20: error: bitmap.h: No such file or directory

compilation terminated.

exit status 1
bitmap.h: No such file or directory

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

1 Like

How would I get that file?

I copied and pasted this code. I just keep getting problems. I believe it is for a OLED display screen possibly. How would I put it in?

There is a 'bitmap.h' file at the Github link you posted, maybe you should start with that?

In fact, this page (which is linked from the Github page) says this:

4-2. Copying the bitmap image header

You must copy the header file that contains bitmap images to load and use them. You should copy bitmap.h in RetroWatchArduino folder to /Arduino install folder/Arduino/hardware/libraries/RetroWatch. If there’s no such folder, simply make it.

I believe it is for a OLED display screen possibly.

Seems pretty silly to copy and paste code, if you don't even know for sure what it does.

We strongly recommend starting your Arduino journey by working through some of the simple examples that come with Arduino: blink an LED without using delay, read a voltage, a switch or a sensor, learn the special features of the Arduino and the programming language.

Otherwise expect endless frustration.

BJHenry:
In fact, this page (which is linked from the Github page) says this:

It's generally good advice to read and follow the documentation provided by the author of the code but in this case the instructions are completely wrong. Installing a library to /Arduino install folder/Arduino/hardware/libraries/RetroWatch won't work because that is not, and never has been a valid libraries folder. There are valid library folders under the Arduino IDE installation folder, but you should never install anything to that the Arduino IDE installation folder because it will all be lost every time you update to a new version of the Arduino IDE. It's unfortunate that the author of the documentation didn't know any better and didn't even bother to test their own instructions.

The correct place to install libraries is to the libraries subfolder of the sketchbook folder. You can find the sketchbook folder location in the Arduino IDE at File > Preferences > Sketchbook Location.

Are you certain you're thinking of the /Arduino install folder/Arduino/hardware/libraries folder, and not the /Arduino install folder/libraries folder? I have never used a pre-1.0 IDE version (I think I came in at 1.0.2) and when I did try running one of the pre-1.0 IDE versions a while ago it wouldn't start on my computer, so I could certainly be wrong, but that seems like a very unlikely path. I can't imagine why Arduino would have added support for recognizing libraries in that location.

The instructions at that link also say to install the "graphics driver" library to /Arduino install folder/libraries, which is not best practices but at least will work. I don't know why they would say to install one library to one folder and the other library to a completely different folder.

If you put a library in the same folder as the sketch, you can open it in IDE tabs where if you edit it, the changes will get saved to that library. The #include does need to change but tbh I'd have to mess with code to re-find-out just what.

#include <library.h>

#include "library.h"

Something like the latter, there's rules for those things but I haven't used them for 3 or 4 years now.

You got the #include syntax right GoForSmoke. The #include <library.h> syntax causes only the include search paths to be searched for library.h, so it won't be found if it's in the sketch folder. The #include "library.h" causes the local folder to be searched for library.h first, followed by the include search paths if the file is not found in the local folder. So the latter syntax is needed to #include .h files from the sketch folder.

However, I strongly recommend against using this technique as a workaround to avoid learning how to correctly install Arduino libraries. Installing libraries is an essential skill for every Arduino user. There are several library installation methods, which are documented here:

Delta_G:
Sorry bout that. Carrion.

You are right there! It's dead! :grinning:

I have just put bitmap.h in the libraries and I am getting the same error message.

If you're still getting the error:

smartglass:27:20: error: bitmap.h: No such file or directory

then it means you didn't install the library correctly. The file should be at {sketchbook folder}/libraries/RetroWatch/bitmap.h. You can find the location of the sketchbook folder in the Arduino IDE at File > Preferences > Sketchbook Location.

Sir, I facing problem with reterowatch connection with my bluetooth HC- 05. my code is properly run and i take my reference from retro watch projects from Git hub. But I did't find any kind of problem in my code.

RetroWatchArduino_smart_glass_code.ino (26 KB)