GolinskiyKonstantin / TFT-ST7789-for-STM32

PCB pin to pin TFT ST7789 for STM32
6 stars 1 forks source link

what function i need use for print in st7735 adc or any int16_t value? #1

Closed marenko21 closed 2 years ago

marenko21 commented 2 years ago

hi,it is necessary to display the ADC value or any int16_t digit value by what function it can be done,i dont find it in librarys if i use

int16_t adc ; //for example adc=120; ST7789_WriteString(0,160,adc,Font_16x26,WHITE,BLACK); or ST7789_WriteChar(0,160,adc,Font_16x26,WHITE,BLACK); its dont work,show only not correct characters

help me please,thanks.

GolinskiyKonstantin commented 2 years ago

char buff[5]; scanf(buff, "%4d", adc); ST7789_WriteString(0,160,buff,Font_16x26,WHITE,BLACK);

вс, 12 дек. 2021 г. в 00:20, marenko21 @.***>:

hi,it is necessary to display the ADC value or any int16_t digit value by what function it can be done,i dont find it in librarys if i use

int16_t adc ; //for example adc=120; ST7789_WriteString(0,160,adc,Font_16x26,WHITE,BLACK); or ST7789_WriteChar(0,160,adc,Font_16x26,WHITE,BLACK); its dont work,show only not correct characters

help me please,thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/GolinskiyKonstantin/TFT-ST7789-for-STM32/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ6HDXRV47YEIY25SC5XKNDUQPFDBANCNFSM5J3PRA6A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

--

----------------------------------------------------- Golinskiy Konstantin

Телефон : + 38-097-262-15-10 *E-Mail: @. @.> **@.**> ----------------------------------------------------- Украина, Одесса. -----------------------------------------------------

marenko21 commented 2 years ago

Thanks for fast reply, but im try and its show still only not correct character "1-"

   int16_t adc;
   adc=102;
char buff[5];
scanf(buff, "%4d", adc);
ST7789_WriteString(10,10,buff,Font_10x15,WHITE,BLACK);