RomanBlack: Shift1 system for 1-wire shift registersGitHub: ShiftRegLCD123_2012.02.12Цитат:
ShiftRegLCD123 - 1,2 and 3-wire shiftregister-based HD44780 compatible LCD library for Arduino
Connects a Hitachi HD44780 compatible LCD using 1, 2 or 3 pins from the Arduino via an 8-bit shift register (SR from now on).
HW compatible with LCD3Wire and old ShiftRegLCD libraries.
За схема с 74HC595 без диод в ShiftRegLCD123.cpp закоментирах реда:
Код за потвърждение:
...
// Comment out next line if not charging quicker via diodes.
#define LCD_SLIGHTLY_FASTER_1_WIRE
...
Има някаква неточност/необходимост от поправка в кода/ заради print (версия на Arduino IDE, друго?), но не съм търсил причина. Посимволен печат работи.
Код за потвърждение:
// Print a message to the LCD.
// srlcd.print("HELLO, WORLD!");
srlcd.setCursor(5, 0);
srlcd.print('H');
srlcd.print('E');
srlcd.print('L');
srlcd.print('L');
srlcd.print('O');
Прикачени файлове:
p.jpg [ 396.76 KiB | Прегледано 2351 пъти ]