Arduino spi library error during S-Function build
Mostra commenti meno recenti
I have included the spi and sd libraries to make the sd card storage code into a function, but I get an error
but, the other library is succeed
Why can't only the spi and sd libraries included?
I want to finally add spi and sd libraries in s-funtionbuild

//succeed code
#ifndef MATLAB_MEX_FILE
#ifndef MATLAB_MEX_FILE
#include <Arduino.h>
#include "dht.h"
#include "SoftwareSerial.h"
#include "Wire.h"
//#include "SPI.h"
//#include "SD.h"
#endif
//Failure code
//succeed code
#ifndef MATLAB_MEX_FILE
#ifndef MATLAB_MEX_FILE
#include <Arduino.h>
#include "dht.h"
#include "SoftwareSerial.h"
#include "Wire.h"
#include "SPI.h"
#include "SD.h"
#endif
this is Header file folder

1 Commento
An dosol
il 23 Lug 2020
Risposte (0)
Categorie
Scopri di più su Embedded Coder Supported Hardware in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!