#include question

Could somebody tell me what is the difference in using:-

#include "SPI.h"
#include <SPI.h>

at the start of a program. Are both necessary?

No

#include "SPI.h"

Looks for the header file in the sketch directory before moving on to look for it in the standard library folders if it is not found locally

#include <SPI.h>

Looks for the header file in the standard library folders

Where have you seen both in the same sketch ?

Thanks that clarifies things

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