我想使用以太網盾的c庫,但它是爲ATMega644p編程的,但我使用ATMega2560。我遇到一些問題,找出我需要使用哪些端口。CS_DDR,CS_PORT,RESET_DDR和RESET_PORT Mega2560
庫可以在這裏看到:http://www.seanet.com/~karllunt/w5100_library.html
具體的地方我有一個問題是這個:
#define CS_DDR DDRD /* target-specific DDR for chip-select */
#define CS_PORT PORTD /* target-specific port used as chip-select */
#define CS_BIT 2 /* target-specific port line used as chip-select */
#define RESET_DDR DDRD /* target-specific DDR for reset */
#define RESET_PORT PORTD /* target-specific port used for reset */
#define RESET_BIT 3 /* target-specific port line used as reset */
我想從以下頁面https://github.com/Seeed-Studio/ArduinoPhone/blob/master/Libraries/TFT/TFT.h的端口,但它仍然無法正常工作。