Arduino spi library error during S-Function build

조회 수: 3 (최근 30일)
An dosol
An dosol 2020년 7월 23일
편집: An dosol 2020년 7월 23일
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
An dosol
An dosol 2020년 7월 23일
영어가 미숙하지만, 친절한 답변 부탁드립니다

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by