Note: It seems the two-wire method does not work with the HC family IC's. I'm not entirely sure why. This goes for 74HC164 and 74HC595. For these types, use the three-wire method. Use an LS type IC for the two-wire method. Note2: If using the 595, keep in mind the schematics for this one is also a "quick'n'dirty" solution. The library was originally written with the 74LS164 in mind. The thing is the enable pulse will be at the same time for the 595 and the LCD, and it is hoped that the 595 is fast enough. As of this writing I have not tested this myself, but according to others it works.
Vorrei usare un 74LS164 con un diodo ed una resistenza, secondo gli schemi proposti per mettere su la configurazione a due fili ed usare la relativa libreria.