[ESP-8266 가지고 놀기 Ep.3] 7세그먼트 컨트롤
브레드보드에 ESP8266과 7세그먼트를 위 그림처럼 연결해주고 아래와 같이 코드를 작성 const long interval = 10000; bool isSleep=false; const int SegmentPin[]={14,16,4,0,2,12,13,5}; const int PinData[11][8]={ {1,1,1,1,1,1,0,0}, {0,1,1,0,0,0,0,0}, {1,1,0,1,1,0,1,0}, {1,1,1,1,0,0,1,0}, {0,1,1,0,0,1,1,0}, {1,0,1,1,0,1,1,0}, {1,0,1,1,1,1,1,0}, {1,1,1,0,0,1,0,0}, {1,1,1,1,1,1,1,0}, {1,1,1,1,0,1,1,0}, {0,0,0,0,0,0,1,0}}; void setSegment(..
2022. 3. 25.