OLED SH1106_SPI and PIC18F27K42
Posted: Sat Jun 07, 2025 2:50 pm
Hello!
I am trying to modify my old chart for SH1106 SPI OLED display, I used PIC18F26K42 previously and want to use PIC18F27K42 now, I deleted everything from the chart when noticed nothing is working with 27K42 and write only basic macros needed to work, below observations,
1. If I initialize the the display and add one macro to display string and 1 sec LED to validate the working, for a long time the LED do not flash at all, but after a while it starts flashing 1 sec
2. If I do not initialize the display the 1 sec flashing immediately starts as normal
I tried changing the display connections to software as well hardware, no luck, did the library update, restart FC, nothing.
NOTE: following the new basic chart, I only changed the chip back to 26K42 and the one string macro and 1 sec flashing worked as expected or it should.
I think something wrong with PIC18F27K42 chip properties in FC (kindly note the chip is working absolutely fine with other programs, I confirmed that)
Can someone correct me, Matrix team kindly help.
Thank you,
Abhi
I am trying to modify my old chart for SH1106 SPI OLED display, I used PIC18F26K42 previously and want to use PIC18F27K42 now, I deleted everything from the chart when noticed nothing is working with 27K42 and write only basic macros needed to work, below observations,
1. If I initialize the the display and add one macro to display string and 1 sec LED to validate the working, for a long time the LED do not flash at all, but after a while it starts flashing 1 sec
2. If I do not initialize the display the 1 sec flashing immediately starts as normal
I tried changing the display connections to software as well hardware, no luck, did the library update, restart FC, nothing.
NOTE: following the new basic chart, I only changed the chip back to 26K42 and the one string macro and 1 sec flashing worked as expected or it should.
I think something wrong with PIC18F27K42 chip properties in FC (kindly note the chip is working absolutely fine with other programs, I confirmed that)
Can someone correct me, Matrix team kindly help.
Thank you,
Abhi