en-us_commands:reference:isegwrite
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| en-us_commands:reference:isegwrite [2026/09/07 21:52] – 만듦 - 바깥 편집 127.0.0.1 | en-us_commands:reference:isegwrite [2026/09/08 00:53] (current) – 바깥 편집 127.0.0.1 | ||
|---|---|---|---|
| Line 16: | Line 16: | ||
| <code cpp> | <code cpp> | ||
| - | uint8_t | + | const uint8_t |
| - | | + | const uint8_t DIO_PIN = 15; |
| - | IsegEncodeDigit(2), | + | |
| - | IsegEncodeDigit(3), | + | |
| - | 0x3E // V: F,E,D,C,B | + | |
| - | }; | + | |
| - | IsegWrite(data); | + | void setup() { |
| + | IsegBegin(CLK_PIN, | ||
| + | IsegBrightness(5, | ||
| + | } | ||
| + | |||
| + | void loop() { | ||
| + | const uint16_t value = analogRead(A0); | ||
| + | uint8_t digits[4] = { | ||
| + | IsegEncodeDigit((value / 1000) % 10), // Convert one digit to segment data. | ||
| + | IsegEncodeDigit((value / 100) % 10), // Convert one digit to segment data. | ||
| + | IsegEncodeDigit((value / 10) % 10), // Convert one digit to segment data. | ||
| + | IsegEncodeDigit(value % 10) // Convert one digit to segment data. | ||
| + | }; | ||
| + | | ||
| + | delay(100); | ||
| + | } | ||
| </ | </ | ||
| Line 35: | Line 46: | ||
| * Do not use the specified pins simultaneously for UART, PWM, encoders, external interrupts or other functions. | * Do not use the specified pins simultaneously for UART, PWM, encoders, external interrupts or other functions. | ||
| * Check the actual module and product manuals for FND power and signal voltages. | * Check the actual module and product manuals for FND power and signal voltages. | ||
| + | |||
| + | ===== Built-in Commands in the Same Category ===== | ||
| + | |||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| + | * [[: | ||
| [[: | [[: | ||
en-us_commands/reference/isegwrite.1788785568.txt.gz · Last modified: by 127.0.0.1
