Community Translation - Display a Long on LCD

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Kenshow
Level 8
Level 8
Distributor - Marubun (Japan)
50 solutions authored 25 solutions authored 10 solutions authored

Hi,               

I would like to translate KBA of your autumn list into Japanese.

https://community.cypress.com/docs/DOC-12305

Please confirm to my work.

Thanks,

Kenshow

0 Likes
2 Replies
JennaJo
Moderator
Moderator
Moderator
1000 replies posted 750 replies posted 500 replies posted

Hi, Kenshow-san

Confirm to work this KBA.

Thanks,

Jenna

Jenna Jo
0 Likes
Kenshow
Level 8
Level 8
Distributor - Marubun (Japan)
50 solutions authored 25 solutions authored 10 solutions authored

Hi Jenna-san,

                                

Japanese translation was over.
Please check below.

Original KBA:

Display a Long on LCD

Thanks.

Kenshow

==============================

タイトル: LCDにLongを表示する

質問:

PSoC Cコンパイラを使用してLCDに長い変数を表示するにはどうすればよいですか?

回答:

longltoa関数を使用してasciiに変換し、LCD_PrString関数を使用してLCDに表示できます。コードスニペットの例を以下に示します。

#include <stdlib.h>

void mainvoid
{
   long myLong = 134546;
   char OutputString [12];

   ltoaOutputStringmyLong10;
   LCD_Position0,0;
   LCD_PrStringOutputString;

}

ltoa関数の詳細は、PSoC Designer Help >> Documentation menuの「C言語ユーザーガイド」にあります。

==============================

4-Sept-2020

Kenshow

0 Likes