code adapted from https://github.com/muccc/ethersex-flipdot/blob/flipdot/hardware/flipdot/flipdot.c for Raspberry Pi / bcm2835
flip_pipe: pipe 320 ASCII '1' or '0' into stdin, end with double newline