I don't use any library, I write all of my own code from scratch, usually in assembly language.
The libraries of Mario H. and DFRobot don't provide the ablitiy to provide specific IO pins for the outputs.
I don't know anything about those libraries and since you didn't include a link, and since I have obviously never heard of Google, I gave you an example based upon a library that I am familiar with.
This is the declaration of the .begin statement.
The .begin statement gives the library information about the characteristics of the display but does not give it information about the interconnections between the display and the Arduino.
The library by Mario H. is the one that's published in the Arduino Playground. On several sites where I2C LCD's are sold, you can also download a library but 9 out of 10 they are the DFRobot library.
Concerning my response about Google: You asked about which lead is the emitter on the transistor. I just tried to be smart. XD
The library by Mario H. is the one that's published in the Arduino Playground. On several sites where I2C LCD's are sold, you can also download a library but 9 out of 10 they are the DFRobot library.
You asked about which lead is the emitter on the transistor.
There were several references to the wiring of the transistor posted before I asked this rhetorical question (Rhetorical question - Wikipedia). If you really comprehended what was going on you would have pointed your response toward a more appropriate party.
The DF circuit is fine If the transistor was an NPN as the LCD backlight doesn't need more than 4 volts to work properly, The emitter follower actually is a blessing there as full 5V isn't required. a PNP connected properly (Emitter more positive than collector and emitter and the base -.6 V with respect to the emitter you have a full on high current switch. I do agree though it is more likely the mistake of the draftsman or engineer who did the drawing because it either is the wrong symbol or miswired.
The DF circuit is fine If the transistor was an NPN ...
But the transistor is labeled as a PNP and it is drawn as a PNP so why keep giving excuses that this incorrect circuit has no problems. I have been ignoring the fact that there is no current limiting resistor because there is an outside possibility that there is one on the display PC board.