How does the first layer output edges?

Hello, I have a question regarding the video Example: Recognizing Images. I thought each unit within a layer outputs a value between 0 and 1, but in this video, while recognizing the face, the first layer outputs edges, and the second layer outputs ears, noses, etc. So, how are the numerical values output by an unit combined to generate these edges?