Enumeration formula for (2, n)-cubes in discrete planes

We compute the number of local configurations of size 2xn on naive discrete planes using combinatorics on words, two-dimensional Rote sequences, and Berstel-Pocchiola diagrams.