Oh well that’s the point … guess two LCD are not possible yet. If you double the plugin, Pimatic won’t start. So maybe some workaround with a shell script that writes the commands to a second LCD screen…
Don’t know if @sweetpi or @mwittig have a clue?
-
multiple LCDs and special characters
pimatic v0.9 has been released!
Support Pimatic and get some free stickers
Like us on Facebookmake it so !
-
@leader21, @fletcher, @Overflow To support multiple LCDs, the plugin pimatic-lcd needs to be extended. The straightforward way of doing this is to introduce a LCD-Device rather than configure it through the plugin configuration. The tricky bit, however, is to support this in a backwards-compatible manner. I can do the necessary changes if needed.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@mwittig said:
@leader21, @fletcher, @Overflow To support multiple LCDs, the plugin pimatic-lcd needs to be extended. The straightforward way of doing this is to introduce a LCD-Device rather than configure it through the plugin configuration. The tricky bit, however, is to support this in a backwards-compatible manner. I can do the necessary changes if needed.
That would be great! I wonder why nobody asked this question before. I set up a pimatic dev system already myself but I think I lack some general pimatic plugin knowledge to accomplish this.
best,
fletcher -
@fletcher i found in the Sainsmart user reviews a comment about this device how to change device addresses maybe this will help?
http://www.sainsmart.com/sainsmart-iic-i2c-twi-serial-2004-20x4-lcd-module-shield-for-arduino-uno-mega-r3.html#customer-reviews
"I used the I2C scanning program (google for it) and found that the LCD device address was 0x27, which when you shift to the left by one bit, resolves to 0x4E or 0x4F. Seems like they may have changed the device address to 0x4F in the last year." -
@Pimagical I think the problem is that it is not possible to change the i2c address of the SaintSmart controller. If you have two controllers of the same batch you cannot use them on the same i2c bus. As @Overflow pointed out some controllers (different vendor) provide pins to change the address on the PCB.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
Hello community,
today i found this topic with the search.
@mwittig Could you add multiple support for LCD displays?with best regards
techsolo12 -
@techsolo12 said in multiple LCDs and special characters:
@mwittig Could you add multiple support for LCD displays?
It is supported already, see https://github.com/pimatic/pimatic-lcd/blob/master/lcd-config-schema.coffee
The only problem is that the config expects a number and JSON does not allow for writing a number as hex if I remember currectly. Thus you need to provide the address as decimal number. If you need help with the translation please post the address on this thread.Note, beyond, the problem with the SaintSmart controller having hard coded addresses there is nothing we can do about on the pimatic side of things.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
Thank you @mwittig for your fast response.
I don’t understand how i can adjust the second display.
My current display had hex 0x27 (decimal nr. 39) the other one 3f (decimal nr. 63).with best regards
techsolo12 -
@techsolo12 Ups, sorry. You can only setup it once as it is tied to the plugin configuration
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
@mwittig Is it possible to add multiple support or is it to much work? I don’t know because i can’t program things like this.
With best regards
techsolo12