Home
last modified time | relevance | path

Searched refs:digits (Results 1 – 6 of 6) sorted by relevance

/lvgl-3.6.0/src/extra/widgets/spinbox/
Dlv_spinbox.c460 char digits[LV_SPINBOX_MAX_DIGIT_COUNT + 4]; in lv_spinbox_updatevalue() local
462 lv_snprintf(digits, sizeof(digits), "%" LV_PRId32, LV_ABS(spinbox->value)); in lv_spinbox_updatevalue()
465 int lz_cnt = spinbox->digit_count - (int)strlen(digits); in lv_spinbox_updatevalue()
467 for(i = (uint16_t)strlen(digits); i >= 0; i--) { in lv_spinbox_updatevalue()
468 digits[i + lz_cnt] = digits[i]; in lv_spinbox_updatevalue()
471 digits[i] = '0'; in lv_spinbox_updatevalue()
479 for(i = 0; i < intDigits && digits[i] != '\0'; i++) { in lv_spinbox_updatevalue()
480 (*buf_p) = digits[i]; in lv_spinbox_updatevalue()
489 for(/*Leave i*/; i < spinbox->digit_count && digits[i] != '\0'; i++) { in lv_spinbox_updatevalue()
490 (*buf_p) = digits[i]; in lv_spinbox_updatevalue()
/lvgl-3.6.0/docs/widgets/extra/
Dspinbox.md17 `lv_spinbox_set_step(spinbox, 100)` sets which digits to change on increment/decrement. Only multip…
25 …arator_position)` sets the number format. `digit_count` is the number of digits excluding the deci…
26 `separator_position` is the number of digits before the decimal point. If 0, no decimal point is di…
/lvgl-3.6.0/tests/unity/
Dunity.c375 int decimals, digits; in UnityPrintFloat() local
448 digits = 0; in UnityPrintFloat()
449 while ((n != 0) || (digits < (decimals + 1))) in UnityPrintFloat()
451 buf[digits++] = (char)('0' + n % 10); in UnityPrintFloat()
454 while (digits > 0) in UnityPrintFloat()
456 if (digits == decimals) { UNITY_OUTPUT_CHAR('.'); } in UnityPrintFloat()
457 UNITY_OUTPUT_CHAR(buf[--digits]); in UnityPrintFloat()
475 digits = 0; in UnityPrintFloat()
476 while ((exponent != 0) || (digits < 2)) in UnityPrintFloat()
478 buf[digits++] = (char)('0' + exponent % 10); in UnityPrintFloat()
[all …]
/lvgl-3.6.0/src/extra/libs/qrcode/
Dqrcodegen.h272 struct qrcodegen_Segment qrcodegen_makeNumeric(const char *digits, uint8_t buf[]);
Dqrcodegen.c878 struct qrcodegen_Segment qrcodegen_makeNumeric(const char *digits, uint8_t buf[]) { in qrcodegen_makeNumeric() argument
879 LV_ASSERT(digits != NULL); in qrcodegen_makeNumeric()
881 size_t len = strlen(digits); in qrcodegen_makeNumeric()
892 for (; *digits != '\0'; digits++) { in qrcodegen_makeNumeric()
893 char c = *digits; in qrcodegen_makeNumeric()
/lvgl-3.6.0/docs/overview/
Dcolor.md20 //From 3 digits. Same as lv_color_hex(0x112233)