사용자 도구

사이트 도구


commands:display_rtc

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판이전 판
다음 판
이전 판
commands:display_rtc [2026/08/31 22:52] – 바깥 편집 127.0.0.1commands:display_rtc [2026/09/12 23:27] (현재) – 바깥 편집 127.0.0.1
줄 1: 줄 1:
-====== 표시 장치와 RTC ======+====== 표시장치·RTC ======
  
-===== TM1637 4자리 FND =====+TM1637 FND, 문자 LCD 또는 DS3231 RTC에 사용할 명령어입니다.
  
-''IsegBegin()''으로 CLK·DIO 핀을 설정한 뒤 ''IsegBrightness()'', ''IsegDecimal()'', ''IsegHex()'', ''IsegWrite()'', ''IsegClear()''를 사용합니다. ''device'' 번호로 최대 7대를 구분합니다.+===== TM1637 FND =====
  
-===== PCF8574 문자 LCD =====+  * [[commands:reference:isegbegin|IsegBegin()]] — TM1637 FND의 CLK·DIO 핀과 장치 번호를 설정합니다. 
 +  * [[commands:reference:isegbrightness|IsegBrightness()]] — 화면 밝기와 표시 상태를 설정합니다. 
 +  * [[commands:reference:isegclear|IsegClear()]] — FND 화면을 지웁니다. 
 +  * [[commands:reference:isegwrite|IsegWrite()]] — 세그먼트 데이터를 지정 위치에 출력합니다. 
 +  * [[commands:reference:isegdecimal|IsegDecimal()]] — 정수를 10진수 형식으로 표시합니다. 
 +  * [[commands:reference:iseghex|IsegHex()]] — 정수를 16진수 형식으로 표시합니다. 
 +  * [[commands:reference:isegencodedigit|IsegEncodeDigit()]] — 숫자 한 자리를 세그먼트 데이터로 변환합니다.
  
-''IclcdBegin(address, columns, rows)''으로 시작한 뒤 ''IclcdSetCursor()'', ''IclcdPrint()'', ''IclcdClear()'', ''IclcdBacklight()'' 등을 사용합니다. ''device'' 번호로 최대 4대를 구분합니다.+===== 문자 LCD =====
  
-===== DS3231 RTC =====+  * [[commands:reference:iclcdbegin|IclcdBegin()]] — PCF8574 문자 LCD의 주소와 화면 크기를 설정합니다. 
 +  * [[commands:reference:iclcdclear|IclcdClear()]] — LCD 화면을 지웁니다. 
 +  * [[commands:reference:iclcdhome|IclcdHome()]] — 커서를 첫 번째 위치로 이동합니다. 
 +  * [[commands:reference:iclcdsetcursor|IclcdSetCursor()]] — 커서를 지정한 열과 행으로 이동합니다. 
 +  * [[commands:reference:iclcddisplay|IclcdDisplay()]] — LCD 표시를 켜거나 끕니다. 
 +  * [[commands:reference:iclcdcursor|IclcdCursor()]] — 커서 표시를 켜거나 끕니다. 
 +  * [[commands:reference:iclcdblink|IclcdBlink()]] — 커서 깜박임을 켜거나 끕니다. 
 +  * [[commands:reference:iclcdbacklight|IclcdBacklight()]] — LCD 백라이트를 켜거나 끕니다. 
 +  * [[commands:reference:iclcdscrollleft|IclcdScrollLeft()]] — 표시 내용을 왼쪽으로 한 칸 이동합니다. 
 +  * [[commands:reference:iclcdscrollright|IclcdScrollRight()]] — 표시 내용을 오른쪽으로 한 칸 이동합니다. 
 +  * [[commands:reference:iclcdtextdirection|IclcdTextDirection()]] — 문자가 입력되는 방향을 설정합니다. 
 +  * [[commands:reference:iclcdautoscroll|IclcdAutoscroll()]] — 자동 스크롤을 켜거나 끕니다. 
 +  * [[commands:reference:iclcdcreatechar|IclcdCreateChar()]] — 사용자 정의 문자를 등록합니다. 
 +  * [[commands:reference:iclcdwrite|IclcdWrite()]] — 문자 코드 또는 사용자 정의 문자를 출력합니다. 
 +  * [[commands:reference:iclcdcommand|IclcdCommand()]] — LCD 제어 명령을 직접 전송합니다. 
 +  * [[commands:reference:iclcdprint|IclcdPrint()]] — 문자열 또는 숫자를 LCD에 출력합니다.
  
-^ 명령어 ^ 설명 ^ +===== RTC =====
-| ''IrtcBegin()''RTC 연결을 확인하고 사용을 시작합니다. | +
-| ''IrtcSet(...)'', ''IrtcRead(dateTime)'' | 날짜·시간을 설정하거나 읽습니다. | +
-| ''IrtcUnixTime(unixTime)'' | Unix 시간을 읽습니다. | +
-| ''IrtcGetTemperature(temperature)'' | RTC 내부 온도를 읽습니다. | +
-| ''IrtcSetAlarm1(...)'', ''IrtcSetAlarm2(...)'' | 알람을 설정합니다. | +
-| ''IrtcAlarmEnable(...)'', ''IrtcAlarmTriggered(...)'' | 알람 사용 여부와 발생 상태를 관리합니다. | +
-| ''IrtcSquareWave(...)'', ''Irtc32kHz(...)'' | 주파수 출력을 설정합니다. |+
  
-<code cpp> +  * [[commands:reference:irtcbegin|IrtcBegin()]] — DS3231 RTC 연결을 확인하고 사용을 시작합니다. 
-void setup() { +  * [[commands:reference:irtcread|IrtcRead()]] — RTC의 날짜와 시간을 읽습니다. 
-  IsegBegin(22, 23); +  * [[commands:reference:irtcset|IrtcSet()]] — RTC의 날짜와 시간을 설정합니다. 
-  IsegDecimal(1234); +  * [[commands:reference:irtcunixtime|IrtcUnixTime()]] — 현재 시간을 Unix 시간으로 반환합니다. 
-  IclcdBegin(0x27, 16, 2); +  [[commands:reference:irtcgettemperature|IrtcGetTemperature()]] — RTC 내부 온도를 반환합니다. 
-  IclcdPrint("ILOGICS"); +  * [[commands:reference:irtctimevalid|IrtcTimeValid()]] — RTC 시간이 신뢰 가능한 상태인지 확인합니다. 
-  IrtcBegin(); +  * [[commands:reference:irtcclearoscillatorstopflag|IrtcClearOscillatorStopFlag()]] — 발진 정지 상태 표시를 초기화합니다. 
-+  * [[commands:reference:irtcsetalarm1|IrtcSetAlarm1()]] — 초 단위를 포함하는 알람 1을 설정합니다. 
-</code> +  * [[commands:reference:irtcsetalarm2|IrtcSetAlarm2()]] — 분 단위의 알람 2를 설정합니다. 
- +  * [[commands:reference:irtcalarmenable|IrtcAlarmEnable()]] — 지정한 알람을 켜거나 끕니다. 
-===== TM1637 명령어 원형 ===== +  * [[commands:reference:irtcalarmenabled|IrtcAlarmEnabled()]] — 지정한 알람의 활성 상태를 확인합니다. 
- +  * [[commands:reference:irtcalarmtriggered|IrtcAlarmTriggered()]] — 알람 발생 여부를 확인하고 필요하면 상태를 지웁니다. 
-^ 반환형 ^ 명령어 원형 ^ +  * [[commands:reference:irtcsquarewave|IrtcSquareWave()]] — RTC의 사각파 출력을 설정합니다. 
-''bool'' | ''IsegBegin(uint8_t clkPin, uint8_t dioPin, uint16_t bitDelayUs = 100, uint8_t device = 0)''+  * [[commands:reference:irtc32khz|Irtc32kHz()]] — RTC의 32kHz 출력을 켜거나 끕니다.
-| ''bool'' | ''IsegBrightness(uint8_t brightness, bool on = true, uint8_t device = 0)''+
-| ''bool'' | ''IsegClear(uint8_t device = 0)''+
-| ''bool'' | ''IsegWrite(const uint8_t segments[], uint8_t length = 4, uint8_t position = 0, uint8_t device = 0)''+
-| ''bool'' | ''IsegDecimal(int32_t number, bool leadingZero = false, uint8_t dotPosition = 0, uint8_t length = 4, uint8_t position = 0, uint8_t device = 0)''+
-| ''bool'' | ''IsegHex(uint32_t number, bool leadingZero = false, uint8_t dotPosition = 0, uint8_t length = 4, uint8_t position = 0, uint8_t device = 0)''+
-| ''uint8_t'' | ''IsegEncodeDigit(uint8_t digit)''+
- +
-===== 문자 LCD 명령어 원형 ===== +
- +
-반환형 ^ 명령어 원형 ^ +
-| ''bool'' | ''IclcdBegin(uint8_t address, uint8_t columns, uint8_t rows, bool backlight = true, uint8_t device = 0)''+
-| ''bool'' | ''IclcdClear(uint8_t device = 0)''+
-| ''bool'' | ''IclcdHome(uint8_t device = 0)''+
-| ''bool'' | ''IclcdSetCursor(uint8_t column, uint8_t row, uint8_t device = 0)''+
-| ''bool'' | ''IclcdDisplay(bool on = true, uint8_t device = 0)''+
-| ''bool'' | ''IclcdCursor(bool on = true, uint8_t device = 0)''+
-| ''bool'' | ''IclcdBlink(bool on = true, uint8_t device = 0)''+
-| ''bool'' | ''IclcdBacklight(bool on = true, uint8_t device = 0)''+
-| ''bool'' | ''IclcdScrollLeft(uint8_t device = 0)''+
-| ''bool'' | ''IclcdScrollRight(uint8_t device = 0)''+
-| ''bool'' | ''IclcdTextDirection(bool leftToRight = true, uint8_t device = 0)''+
-| ''bool'' | ''IclcdAutoscroll(bool on = true, uint8_t device = 0)''+
-| ''bool'' | ''IclcdCreateChar(uint8_t location, const uint8_t charmap[8], uint8_t device = 0)'' | +
-| ''bool'' | ''IclcdWrite(uint8_t value, uint8_t device = 0)''+
-| ''bool'' | ''IclcdCommand(uint8_t command, uint8_t device = 0)''+
-| ''bool'' | ''IclcdPrint(const char value[], uint8_t device = 0)''+
-| ''bool'' | ''IclcdPrint(const String& value, uint8_t device = 0)''+
-| ''bool'' | ''IclcdPrint(const __FlashStringHelper* value, uint8_t device = 0)''+
-| ''bool'' | ''IclcdPrint(char value, uint8_t device = 0)''+
-| ''bool'' | ''IclcdPrint(unsigned char value, int base = DEC, uint8_t device = 0)''+
-| ''bool'' | ''IclcdPrint(int value, int base = DEC, uint8_t device = 0)''+
-| ''bool'' | ''IclcdPrint(unsigned int value, int base = DEC, uint8_t device = 0)''+
-| ''bool'' | ''IclcdPrint(long value, int base = DEC, uint8_t device = 0)''+
-| ''bool'' | ''IclcdPrint(unsigned long value, int base = DEC, uint8_t device = 0)''+
-| ''bool'' | ''IclcdPrint(double value, int digits = 2, uint8_t device = 0)''+
- +
-===== RTC 명령어 원형 ===== +
- +
-반환형 ^ 명령어 원형 ^ +
-''bool'' | ''IrtcBegin()''+
-| ''bool'' | ''IrtcRead(IrtcDateTime& dateTime)''+
-| ''bool'' | ''IrtcSet(uint16_t year, uint8_t month, uint8_t day, uint8_t hour, uint8_t minute, uint8_t second)''+
-| ''bool'' | ''IrtcSet(uint16_t year, uint8_t month, uint8_t day, uint8_t dayOfWeek, uint8_t hour, uint8_t minute, uint8_t second)''+
-| ''bool'' | ''IrtcUnixTime(uint32_t& unixTime)''+
-| ''bool'' | ''IrtcGetTemperature(float& temperature)''+
-| ''bool'' | ''IrtcTimeValid(bool& valid)'' | +
-''bool'' | ''IrtcClearOscillatorStopFlag()'' | +
-''bool'' | ''IrtcSetAlarm1(uint8_t mode, uint8_t dayOrDate = 1, uint8_t hour = 0, uint8_t minute = 0, uint8_t second = 0)'' | +
-''bool'' | ''IrtcSetAlarm2(uint8_t mode, uint8_t dayOrDate = 1, uint8_t hour = 0, uint8_t minute = 0)'' | +
-''bool'' | ''IrtcAlarmEnable(uint8_t alarm, bool enable = true)'' | +
-''bool'' | ''IrtcAlarmEnabled(uint8_t alarm, bool& enabled)'' | +
-''bool'' | ''IrtcAlarmTriggered(uint8_t alarm, bool& triggered, bool clear = true)'' | +
-''bool'' | ''IrtcSquareWave(bool enable, uint8_t frequency = IRTC_SQUARE_WAVE_1HZ, bool batteryPowered = false)'' | +
-''bool'' | ''Irtc32kHz(bool enable = true)''+
- +
-각 장치는 해당 ''Begin'' 명령어를 먼저 실행하십시오. I²C 주소와 핀 공유 여부를 확인하고, ''bool'' 반환값이 ''false''이면 배선과 전원을 점검하십시오.+
  
 [[commands:builtin|← 내장 명령어 리스트]] [[commands:builtin|← 내장 명령어 리스트]]
  
commands/display_rtc.1788184327.txt.gz · 마지막으로 수정됨: 저자 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki