Page 1 of 2

Will Annex support this?

Posted: Fri Feb 09, 2024 8:49 pm
by Zim
Hi cicciocb
Before I purchase this, will annex support it?

Thanks
Zim


2024-02-09 13_46_11-Window.jpg

Re: Will Annex support this?

Posted: Fri Feb 09, 2024 9:04 pm
by Electroguard
Yes...
LCD.jpg

Re: Will Annex support this?

Posted: Fri Feb 09, 2024 10:04 pm
by Zim
I did see that too, Electroguard. I just wasn't sure if the address was an issue.

Thanks
Zim

Re: Will Annex support this?

Posted: Fri Feb 09, 2024 11:02 pm
by Zim
I plugged in a display and got nothing using the demo code. Do I have to do anything with these solder points?

Thanks
Zim

2024-02-09 15_59_22-Window.jpg

Re: Will Annex support this?

Posted: Sat Feb 10, 2024 12:14 am
by Electroguard
The I2C adapter was already installed on mine, Zim, and I didn't do anything to it - I have a couple of them, and neither have any links soldered.
It is I2C, so you can run the I2Cscanner to check it is actually being seen ok, and at what address.
Be aware that I was using the 4 line version, whereas you showed the 2 line version, but I would have thought the I2C interface was the same for both.
Here is a program I developed on a Wokwi Stepper Motor simulation... https://wokwi.com/projects/378289623939972097
which was subsequently copied to actual hardware and worked fine... https://odysee.com/@Electroguard:d/StepperTest:9

Re: Will Annex support this?

Posted: Sat Feb 10, 2024 1:10 am
by Zim
I found this in my junk box. when I do a I2C scan, it comes up with "found 39 27"
I have no experience with i2C. Should this work with the sample code as is ?

thanks
Zim

Re: Will Annex support this?

Posted: Sat Feb 10, 2024 11:02 am
by Electroguard
[Local Link Removed for Guests] wrote: [Local Link Removed for Guests]Sat Feb 10, 2024 1:10 am I found this in my junk box. when I do a I2C scan, it comes up with "found 39 27"
I have no experience with i2C. Should this work with the sample code as is ?
The sample ' LCD.INIT 63, 20, 4' assumes an address of 63 (3F) and a display of 20 characters per line with 4 lines of characters.
So if you have a 2 line display, they are only 16 characters long, and if your 'found' address is 39 (27), then your INIT should be:
LCD INIT 39, 16, 2

You should then be able to LCD.PRINT lines up to 16 chars long to lines 1 and 2.

Re: Will Annex support this?

Posted: Sat Feb 10, 2024 5:22 pm
by Zim
Thanks for the reply Electroguard

Code: [Local Link Removed for Guests]

I2C.SETUP 21, 22  ' set I2C port on pins 21 and 22



LCD.INIT 39, 16, 2

LCD.CLS  ' clear the screen of the LCD

'print a message on the LCD at the first char of the first line

LCD.PRINT 1, 1, "HELLO WORLD"
wait



This is what I get...

20240210_100610.jpg

Re: Will Annex support this?

Posted: Sat Feb 10, 2024 5:44 pm
by bugs
Have you tried adjusting the contrast preset?

Re: Will Annex support this?

Posted: Sat Feb 10, 2024 5:45 pm
by Zim
Yes, but still no joy....