Closed Gjorgjevikj closed 2 years ago
If I understand correctly, the range of valid addresses is 0x20 to 0x27.
What's the use case for changing the address?
Connecting multiple displays to the same I2C bus. Probably not a most common scenario, but can be usable in certain projects. It does exist as an option on the hardware modules, anyway.
From: Uri Shaked @.> Sent: вторник, 16 август 2022 21:41 To: wokwi/wokwi-features @.> Cc: Dejan Gjorgjevikj @.>; Author @.> Subject: Re: [wokwi/wokwi-features] Support seting a different I2C address (different from the default 0x27) on character LCDs with PCF8574T (wokwi-lcd1602, wokwi-lcd2004) (Issue #404)
If I understand correctly, the range of valid addresses is 0x20 to 0x27.
What's the use case for changing the address?
— Reply to this email directly, view it on GitHub https://github.com/wokwi/wokwi-features/issues/404#issuecomment-1217084401 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AD3EHKLIIU7CDEZAZMCVT7TVZPVE3ANCNFSM56WRPMPA . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AD3EHKJ3H5RHFB7A66RK3GDVZPVE3A5CNFSM56WRPMPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOJCFTX4I.gif Message ID: @. @.> >
Apparently, it's already supported - use the "i2c-address" attribute to set the address, e.g.:
{
"type": "wokwi-lcd2004",
"id": "lcd2",
"top": 276.63,
"left": -16.62,
"attrs": { "pins": "i2c", "i2c-address": "0x20" }
}
Probably my bad. I did search for that but did not find it on
https://docs.wokwi.com/parts/wokwi-lcd1602#i2c-configuration
Thanks, anyway.
BTW,
although not so common, LCDs with the same Hitachi driver and same connections with different geometries also exist
8x1, 16x4, 24x2, 40x2, …
Probably it is not to hard to add some of them… just a thought...
From: Uri Shaked @.> Sent: вторник, 16 август 2022 22:16 To: wokwi/wokwi-features @.> Cc: Dejan Gjorgjevikj @.>; Author @.> Subject: Re: [wokwi/wokwi-features] Support seting a different I2C address (different from the default 0x27) on character LCDs with PCF8574T (wokwi-lcd1602, wokwi-lcd2004) (Issue #404)
Apparently, it's already supported - use the "i2c-address" attribute to set the address, e.g.:
{
"type": "wokwi-lcd2004",
"id": "lcd2",
"top": 276.63,
"left": -16.62,
"attrs": { "pins": "i2c", "i2c-address": "0x20" }
}
docs: https://docs.wokwi.com/parts/wokwi-lcd1602#attributes
— Reply to this email directly, view it on GitHub https://github.com/wokwi/wokwi-features/issues/404#issuecomment-1217115458 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AD3EHKJIUA3UKPUVJ7WA55TVZPZJ3ANCNFSM56WRPMPA . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AD3EHKOOBGV66PKJVGJTMPTVZPZJ3A5CNFSM56WRPMPKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOJCF3KQQ.gif Message ID: @. @.> >
Probably my bad. I did search for that but did not find it on https://docs.wokwi.com/parts/wokwi-lcd1602#i2c-configuration
Added a note there!
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like A clear and concise description of what you want to happen.