Help with my library error: no such file or directory

Hi guys, I'm making a fan control library that changes the speed of a cpu fan but when I include the library into my sketch: #include "fan_control.h" And compile my code and it says: error no such file or directory. What does that mean and how to fix it. Can you guys help me.

You need to install the library to use it.

In the IDE, Tool, Manage Libraries...

Possibly this one?

If it your own library, put it in the same folder as your sketch, then you can use quotes " " to include it.

When preparing your library to install in the C:\Users\xxx\Documents\Arduino\libraries folder, make sure the examples in this installation folder are using:

#include <fan_control.h>

Yep.

Many side benefits, too.

  • Appears as a tab in the IDE: both .h & .cpp
  • Easy to backup (Zip) sketch directory for back-up

#include "tabname.h"
or
# include "./tabname.h"        (Linux and Windows)
# include ".\tabname.h"        (Windows)

I'm talking about for arduino cloud

It has these functions:
SetSpeed(fan_speed, pulse_frequency); //This Sets the fan speed and the pulse_frequency for the fan
FanSetup(fan_pin, fan_type); //This setups the fan to the fan name and the pin and type
FanOff(); //This turns the fan off to it's pin
Check them out

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.