Hello pizman82,
Ok, I made some additional tests today on the two lcd setup (20x4) connected to an arduino mega.
To confirm your comments:
1. the button is correctly configured as input and the output "lcd select" correctly displays the values 0, 1, 2, 0, 1, 2 when the button is pressed.
2. The screens are correctly connected and they both show "Mobiflight Rocks" when the mega board is plugged in. Before trying to switch pages, they both correctly displayed the 8 and 12 values, as reported by me in another post (workaround for 7 value limit).
First I tried to create a new lcd select 2 input that reads the same offset 0x66FF and changed the preconditions on the lcd2 pages to use this new variable. The result was slightly different this time. I had deleted some of the screens for lcd1, so I had to redo them. This time, on each button press 0,1, 2, 0, 1, 2, the two lcd screens alternated in showing the page appropriate to the value of the button press. Still weird, just different. It did not make a difference whether I used lcd select 1 and 2 or just lcd select 1.
Next, as you pointed out this problem may be caused by the two page change instructions being issued too fast into the one serial i2c interface, I tried separating the page switches into single event per screen. For this I extended the lcd select input to go from 0 to 5 and changed the preconditions for lcd1 pages to change on 0, 1, 2, and lcd2 pages to change on 3, 4, 5. It worked. Lcd1 now showed the three pages, followed by lcd2 showing the three pages. So my conclusion was that the screen changes can be done but in separate events.
Next, following your request, I added one pro micro board to Mobiflight (I only have one mega board). I changed Lcd1 from the mega board to the pro micro. This is actually the first time I connected two boards to the software. Mobiflight identified both boards. I then created the lcd display in the pro micro configuration and renamed it lcd3. After resetting all boards and software, they both displayed "Mobiflight Rocks". So far so good.
I then changed the lcd1 outputs to display to the new pro micro board and lcd3 was shown as the only option. However, it doesnt matter what I do on Mobiflight. Nothing gets displayed in the lcd3. When I press the Test buton, nothing happens. If I run the simulation nothing happens in the lcd3. It continues to display "Mobiflight Rocks". I do observe the led on the pro micro board show data being received when I press the button.
Althouth the lcd3 (connected to the pro micro) did not display anything, lcd2 (connected to the mega) did do the page rotation correctly. I am speculating that had lcd3 worked it would have displayed the pages correctly too. I even wiped the eeprom in the pro micro with the arduino IDE and loaded a program to test the lcd and that worked, so it is not the arduino or the lcd screen. I reloaded the Mobiflight firmware and again could not write to this lcd screen. Mobiflight Rocks is the only thing that is displayed.
Any ideas on why the pro micro does not seem to be working correctly with the lcd screen???? Could it be that the pro micro board sda and scl pins for the i2c interface (pins 2 and 3 on the pro micro) are not the same as in the mega board (pins 20 and 21)?
For reference, this is the pro micro board I bought at Amazon.com
https://www.amazon.com/gp/product/B01MTU9GOB/ref=ppx_yo_dt_b_asin_title_o04_s01?ie=UTF8&psc=1
Regards,
Jaime