Connection to Adafruit i2c 16x2 RGB LCD Pi Plate
I am trying to use this to connect to the plate mentioned in subject. I am using C# in Visual Studio 2017, then running on the RaspberryPi using Mono. I have had success with multiple applications this way, including one that connects to a LED light. I am just not having any luck with the 16x2 character LCD. I'll try to organize my efforts again and get an error message to you, but really just looking for some general direction as I am completely frazzled right now with all the various attempts. Thanks, Ken
Hey Ken, I’d first try to see if your LCD Pi plate is OK. Do you have another I2C host like an Arduino or other microcontroller handy to send data to the plate? Have you been able to verify that your Pi is sending the proper I2C frames? You can use a logic analyzer like the Saleae Logic or equivalent, very handy. Also, besides peppering your code with logging and console out statements to debug along the way, try setting up remote debugging from Visual Studio to mono on the Pi, very very useful: check Here and this Really good write up Basically just google “remote debugging mono raspberry pi Visual Studio” and start researching so you’re not flying blind.
Thanks for the quick response. I have determined the board/display works fine using python on the same raspberry pi. And, the biggest help, is that in all the confusion, it looks like I was running a mish-mash of this RaspberrySharp and the previous version. I think I am on the right track now as I have gotten an I2Cdriver to create. One other quick question, while browsing the code, I noticed a lot of empty directories. Is that just because that code has been ported?
Thanks, Ken
On Fri, Jan 3, 2020 at 6:00 PM Brian Smith [email protected] wrote:
Hey Ken, I’d first try to see if your LCD Pi plate is OK. Do you have another I2C host like an Arduino or other microcontroller handy to send data to the plate? Have you been able to verify that your Pi is sending the proper I2C frames? You can use a logic analyzer like the Saleae Logic https://www.saleae.com/ or equivalent, very handy. Also, besides peppering your code with logging and console out statements to debug along the way, try setting up remote debugging from Visual Studio to mono on the api, very very useful: check Here https://marketplace.visualstudio.com/items?itemName=Bongho.MonoRemoteDebugger and this Really good write up https://www.hanselman.com/blog/RemoteDebuggingWithVSCodeOnWindowsToARaspberryPiUsingNETCoreOnARM.aspx
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/JTrotta/RaspberrySharp/issues/26?email_source=notifications&email_token=AIGO65NYAMDNY6S7QYOECTTQ367PPA5CNFSM4KCR7JE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEICIZPY#issuecomment-570723519, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIGO65KPI4QN5L5ZBEWCWG3Q367PPANCNFSM4KCR7JEQ .
@kentew Which empty directories are you talking about?
Under components for example. I am working with some Displays and I don't see any code in there when I open the project. There was in the original Raspberry project.
On Sat, Jan 4, 2020 at 6:05 AM Gerardo [email protected] wrote:
@kentew https://github.com/kentew Which empty directories are you talking about?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JTrotta/RaspberrySharp/issues/26?email_source=notifications&email_token=AIGO65LGQFZJULPA52IUF5LQ4BUPFA5CNFSM4KCR7JE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEICVVEI#issuecomment-570776209, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIGO65OICLCB3H6ECMNQBGLQ4BUPFANCNFSM4KCR7JEQ .
Ok. No it's not because it has been ported, it's just because I published only what I have already tested. I did not ever used any display. When I'll use them I will publish the code. Any way you are free to pull request, if you have any working code.