- 준비물: FND 디스플레이, 아두이노
*https://www.devicemart.co.kr/goods/view?no=1326952
#include <TM1637Display.h> #define baud_rate 9600 #define CLK 9 #define DIO 10 TM1637Display dsp(CLK, DIO); void setup() { Serial.begin(baud_rate); Serial.println("Serial Start"); } void loop() { dsp.setBrightness(5); // brightness: 0 ~ 7 double number = 123; // dsp.showNumberDec(number); // dsp.showNumberDec(number, true); // dsp.showNumberDecEx(number, 0x40); // dsp.showNumberDecEx(number, 0x40, true); }
No comments:
Post a Comment