One definition of the word "shingles" is as follows: small, smooth pebbles, as found on a beach. In the poem, the speaker observes these minute rocks as they appear to scurry along after the receding tide, adding to the kinesthetic imagery that fills this whole scene.