0
jolios

請問有 AMEBA 同好使用 AMBEA RTL8195 與 Adafruit_PN532 成功的連接過嗎?

無論我用 SPI 或是 I2C 的模式,都會遇到以下的狀況,但此狀況在我的 Ardunio UNO 板子上,並不會發生這問題。

 

請有經驗的同好,可以指點我一下,是否我有什麼設定是錯誤的。

錯誤代碼如下:

Arduino: 1.6.8 (Mac OS X), Board: "Ameba RTL8195A"

/Users/Jolios/Documents/Arduino/libraries/Adafruit_PN532/Adafruit_PN532.cpp: In member function 'void Adafruit_PN532::begin()':
/Users/Jolios/Documents/Arduino/libraries/Adafruit_PN532/Adafruit_PN532.cpp:71:28: error: 'SPI_CLOCK_DIV16' was not declared in this scope
#define PN532_SPI_CLOCKDIV SPI_CLOCK_DIV16
^
/Users/Jolios/Documents/Arduino/libraries/Adafruit_PN532/Adafruit_PN532.cpp:190:27: note: in expansion of macro 'PN532_SPI_CLOCKDIV'
SPI.setClockDivider(PN532_SPI_CLOCKDIV);
^
exit status 1
Error compiling for board Ameba RTL8195A.

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

chengc115 回答了