A late comment or two...
It would be helpful to know if you mean from the RPi, under Linux, or if
you are talking about doing this from any PDP-11 environment.
I can tell you that basically, from the PDP-11 point of view, the
display register is at address 17777570. That's the 22-bit address. If
MMU is off, you'll have that at 177570 in your 16-bit address space. If
the MMU is enabled, you'll need to make sure the I/O page is mapped, and
access that address through there.
And basically, if you read that address, you'll see the 16 low bits of
the switches. And if you write to that address, it will show up on the
data LEDs, if your selector is set to show the display register.
If you are running any OS with memory protection, you are normally not
allowed to access the I/O page yourself. However, there are ways around
this, which are different depending on which OS we're talking about.
For RSX, you can read the switch register with a system call; GSSW$ -
which gives you the 16 low switches. However, there is no way to set the
display register without having a privileged program. But a privileged
program by default already have the I/O page mapped, so then it again
becomes just a question of writing to 177570.
In 2.11BSD, you'd probably want to open /dev/kmem, and write/read
through there.
Other PDP-11 OSes I'll leave to others to comment on.
Johnny