Re: Hardware cockpit instruments with round displays.

James Turner <[email protected]> Mon, 27 Jul 2026 11:43:11 +0100
Newsgroups gmane.games.flightgear.devel
Message-ID <[email protected]>
--===============2726403228897678243==
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_A39A50F7-6A02-47A7-A9DD-275480E6F38F"


--Apple-Mail=_A39A50F7-6A02-47A7-A9DD-275480E6F38F
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8



> On 26 Jul 2026, at 15:37, Patrick Callahan <[email protected]> =
wrote:
>=20
> Heading Instrument example=20
> 1 raspberry pi zero
> 1 2.8" display with hdmi board
> 2 magnetic rotary encoders for Heading Bug and Card Adjust
>=20
> Is there a simpler way to drive the display than to have a full =
instance of flightgear running on the Pi?

Yes, just run a webSocket client or telnet client on the Arduino / Pi =
and have that speak to either the HTTP server in FG, or using the =
=E2=80=98props=E2=80=99 protocol.

Here=E2=80=99s my code which talks to the props protocol:

	=
https://github.com/zakalawe/simpit/blob/master/simCDUDriver/simCDUDriver.c=
pp

Ignore the HID stuff, just see the bits about the =E2=80=98telnetSocket=E2=
=80=99. You can do all the same stuff via Phi / HTTP, just decide which =
stack is easier on your chosen MCU.

You don=E2=80=99t need a full Pi, this kind of thing:

	https://www.waveshare.com/RP2350-LCD-1.28.htm

=E2=80=A6 is perfect for this application. Most of them use LVGL and =
some Arduino-clone programming API.

Kind regards,
James




--Apple-Mail=_A39A50F7-6A02-47A7-A9DD-275480E6F38F
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html aria-label=3D"message body"><head><meta http-equiv=3D"content-type" =
content=3D"text/html; charset=3Dutf-8"></head><body =
style=3D"overflow-wrap: break-word; -webkit-nbsp-mode: space; =
line-break: after-white-space;"><br =
id=3D"lineBreakAtBeginningOfMessage"><div><br><blockquote =
type=3D"cite"><div>On 26 Jul 2026, at 15:37, Patrick Callahan =
&lt;[email protected]&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div><meta charset=3D"UTF-8"><div =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: 400; =
letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration-line: none; =
text-decoration-thickness: auto; text-decoration-style: solid;">Heading =
Instrument example&nbsp;</div><div style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: 400; letter-spacing: normal; =
orphans: 2; text-align: start; text-indent: 0px; text-transform: none; =
white-space: normal; widows: 2; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration-line: none; =
text-decoration-thickness: auto; text-decoration-style: solid;">1 =
raspberry pi zero</div><div style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: 400; letter-spacing: normal; =
orphans: 2; text-align: start; text-indent: 0px; text-transform: none; =
white-space: normal; widows: 2; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration-line: none; =
text-decoration-thickness: auto; text-decoration-style: solid;">1 2.8" =
display with hdmi board</div><div style=3D"caret-color: rgb(0, 0, 0); =
font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: 400; letter-spacing: normal; =
orphans: 2; text-align: start; text-indent: 0px; text-transform: none; =
white-space: normal; widows: 2; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration-line: none; =
text-decoration-thickness: auto; text-decoration-style: solid;">2 =
magnetic rotary encoders for Heading Bug and Card Adjust</div><div =
style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: =
12px; font-style: normal; font-variant-caps: normal; font-weight: 400; =
letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; =
text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; text-decoration-line: none; =
text-decoration-thickness: auto; text-decoration-style: =
solid;"><br></div><div style=3D"caret-color: rgb(0, 0, 0); font-family: =
Helvetica; font-size: 12px; font-style: normal; font-variant-caps: =
normal; font-weight: 400; letter-spacing: normal; orphans: 2; =
text-align: start; text-indent: 0px; text-transform: none; white-space: =
normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; =
text-decoration-line: none; text-decoration-thickness: auto; =
text-decoration-style: solid;">Is there a simpler way to drive the =
display than to have a full instance of flightgear running on the =
Pi?</div></div></blockquote></div><br><div>Yes, just run a webSocket =
client or telnet client on the Arduino / Pi and have that speak to =
either the HTTP server in FG, or using the =E2=80=98props=E2=80=99 =
protocol.</div><div><br></div><div>Here=E2=80=99s my code which talks to =
the props protocol:</div><div><br></div><div><span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	</span><a =
href=3D"https://github.com/zakalawe/simpit/blob/master/simCDUDriver/simCDU=
Driver.cpp">https://github.com/zakalawe/simpit/blob/master/simCDUDriver/si=
mCDUDriver.cpp</a></div><div><br></div><div>Ignore the HID stuff, just =
see the bits about the =E2=80=98telnetSocket=E2=80=99. You can do all =
the same stuff via Phi / HTTP, just decide which stack is easier on your =
chosen MCU.</div><div><br></div><div>You don=E2=80=99t need a full Pi, =
this kind of thing:</div><div><br></div><div><span =
class=3D"Apple-tab-span" style=3D"white-space:pre">	</span><a =
href=3D"https://www.waveshare.com/RP2350-LCD-1.28.htm">https://www.wavesha=
re.com/RP2350-LCD-1.28.htm</a></div><div><br></div><div>=E2=80=A6 is =
perfect for this application. Most of them use LVGL and some =
Arduino-clone programming API.</div><div><br></div><div>Kind =
regards,</div><div>James</div><div><br></div><div><br></div><div><br></div=
></body></html>=

--Apple-Mail=_A39A50F7-6A02-47A7-A9DD-275480E6F38F--


--===============2726403228897678243==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


--===============2726403228897678243==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Flightgear-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

--===============2726403228897678243==--