Bidirectional spinning code