2
4

1 回答 1

3

I found the answer here: https://electronics.stackexchange.com/questions/29240/arduino-uno-ethernet-shield-16x2-lcd-not-initializing

@ben as per the page here, the comment by user "njohnson" states that the shield uses all the digital pins except 1,2 and 8. based on this i tried hooking up the lcd to the 6 analog pins (as outputs) and its working fine now. Now the question is where/how can i study the shield schematic to be sure what all pins can i use. On a side now, it seems an unusual design decision since using the shield means sacrificing 13 of the digital pins ! – Ankit Apr 3 '12 at 21:14

Solution

I moved the LCD pins to analog pins (14-19).

Code Modifications

Change LiquidCrystal lcd(7, 8, 9, 10, 11, 12); to LiquidCrystal lcd(19, 18, 17, 16, 15, 14); and move the LCD screen pins accordingly.

于 2013-03-14T02:20:49.030 回答