Lcd.setCursor(0, 0) // Set the LCD cursor to column 0, line 0 Lcd.begin(16, 2) // Set up the LCD's number of columns and rows Open serial communications and wait for port to open: You can use Ethernet.init(pin) to configure the CS pinĮthernet.init(10) // Most Arduino shields LiquidCrystal lcd(rs, en, d4, d5, d6, d7) with the arduino pin number it is connected toĬonst int rs = 6, en = 7, d4 = 5, d5 = 4, d6 = 3, d7 = 2 initialize the library by associating any needed LCD interface pin Newer Ethernet shields have a MAC address printed on a sticker on the shield Enter a MAC address for your controller below. I modified the original dhcpAddressPrinter sketch to make it report the IP address in both the COM window and LCD. I connected up a 16x2 LCD w/o the I2C, because of this I thought I'd use UNO pins 6 and 7 instead of the recommended 12 and 11, respectively as in all the examples I can find, due to the fact that the Ethernet shield uses pins 10, 11, 12 and 13. I'm using an UNO coupled with the W5500 Ethernet shield 2. Newbie here experimenting with the DHCP Address Printer sketch example.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |