I'm about to link a Raspberry Pi and a BBC micro:bit using serial comms. I'd like to use APL and ⎕arbin on the Pi end but can't find any sample code. Any suggestions?
I'll eventually need two-way serial comms but one-way would do to start with.
I have used ⎕ARBIN and ⎕ARBOUT to "talk" to the GPIO pins on the Raspberry Pi.
I no longer use ⎕ARBIN as I found that ⎕NREAD can be used instead.
Using ⎕ARBOUT has changed since Dyalog 14.0(?).
and '/sys/class/gpio/gpio2/value' when talking to GPIO pin 2.
With Dyalog 14.1, ⎕ARBOUT now takes a file tie number.
I use ⎕UCS to convert the "text" into bytes suitable for ⎕ARBOUT.