Approved content

The content below is provided by a partner.

mbitfun/pxt-katakana 1.0.16 GitHub

pxt-katakana


This library make it possible to show characters of Katakana in half-width.

Basic Usage


Method

katakana.showString(string, integer)

the first argument is the characters to show. The default is blank. And the second argument is the speed of scrolling, the unit is ms. The default is 500ms. The second argument can be omitted.

You can use the half-width characters below and space.

 アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲンァィゥェォャュョッ゙゚0123456789-,.、。!?「」[]()<>#$%&'ABCDEFGHIJKLMNOPQRSTUVWXYZ^`_・*+ー=\\/:;@

You cannot use the half-width characters below and full-width characters.

abcdefghijklmnopqrstuvwxyz{|}~¥

If you want more information, please go to our web site(http://mbit.fun/).

Example


It works.

katakana.showString("カタカナ")

katakana.showString("カタカナ",1000)

It does not work.

katakana.showString("カタカナ")

katakana.showString("カタカナ",1000)

License

MIT

Supported targets

katakana=github:mbitfun/pxt-katakana#v1.0.16