Board logo

標題: [操作疑難] Arduino ethernet shield w5100 slave pin更改問題 [打印本頁]

作者: hkepcnewbie    時間: 2013-11-7 09:07     標題: Arduino ethernet shield w5100 slave pin更改問題

請問這塊板SD card slave pin 4, 可唔可以改去其他 pin?

if (!sd.begin(7, SPI_HALF_SPEED)) sd.initErrorHalt();

試過用以上code改去7, 可以write落去sd, 但就好難read得番個file, 始終都是要改回4才正常, 但因4已經用了在touch mon, 所以想問有沒有辦法改default slave pin ?
作者: idleman    時間: 2013-11-7 10:22

你用咩板
作者: hkepcnewbie    時間: 2013-11-7 11:04

你用咩板
idleman 發表於 2013-11-7 10:22



    Mega2560
作者: edwardfcy    時間: 2013-11-7 13:54

回復 1# hkepcnewbie

師兄,又是I大做Project A的項目嗎??
作者: hkepcnewbie    時間: 2013-11-7 14:06

回復  hkepcnewbie

師兄,又是I大做Project A的項目嗎??
edwardfcy 發表於 2013-11-7 13:54



不是, 我冇讀書好耐, 係公司老闆要我做監測系統其中一部分





歡迎光臨 電腦領域 HKEPC Hardware (https://h2.hkepc.com/forum/) Powered by Discuz! 7.2