How to fix watchx.ino

Arduino:1.8.13 (Mac OS X), 開發板:“Arduino Leonardo”

/var/folders/ww/_mt2rwvd5dqcywwsyfxx19vw0000gn/T//ccTyHLPw.ltrans0.ltrans.o: In function oled_flush': sketch/oled.c:108: undefined reference to spi_transfer_nr’
sketch/oled.c:109: undefined reference to spi_transfer_nr' sketch/oled.c:110: undefined reference to spi_transfer_nr’
sketch/oled.c:112: undefined reference to spi_transfer_nr' sketch/oled.c:113: undefined reference to spi_transfer_nr’
/var/folders/ww/_mt2rwvd5dqcywwsyfxx19vw0000gn/T//ccTyHLPw.ltrans0.ltrans.o:sketch/oled.c:114: more undefined references to `spi_transfer_nr’ follow
collect2: error: ld returned 1 exit status
exit status 1
開發板 Arduino Leonardo 編譯錯誤。

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

how to fix watchx.ino

I had the same problem 2 days ago. I solved the problem using version 1.8.0 of Arduino IDE.

Hello Dear @tea8112 +1 for this solution. Please let us know if you solve the case.