Ghz2000's 14Segment LED Display Library
Dependents: Nucleo_Seg14Display
C14Segment Class Reference
Ghz2000 LED 14Segment Display. More...
#include <lib14Seg.hpp>
Public Member Functions | |
void | init (PinName SPI_MOSI, PinName SPI_MISO, PinName SPI_SCK, PinName RCK, int kido, int ViewLength) |
イニシャライザ 最初に実行してください。 | |
void | setChar (char *) |
文字列をセットします。 30文字まで | |
void | showStop () |
格納した文字列を表示する | |
void | scroll () |
格納した文字列をスクロール表示する | |
void | setScrollSpeed (int scrollSpeed) |
スクロールスピードを設定する |
Detailed Description
Ghz2000 LED 14Segment Display.
http://ghz2000.dip.jp/wordpress/?p=665
LED 14セグ表示器用ライブラリです。
Used for showing Alphanumelic LED 14 Segment Display. This library comment was written in Japanese. The reason why for Japanese beginner.
- Attention:
- このバージョンでは8桁のみ動作します。カスケードできません。 また輝度も使用できません。
Example:
#include "mbed.h" #include "lib14Seg.hpp" int main(){ LED14Seg.init(SPI_MOSI, SPI_MISO, SPI_SCK, RCK, 0x04, 8); LED14Seg.setChar("ABCDEFGHIJKLMNOPQRSTUVWXYZ"); LED14Seg.showStop(); LED14Seg.setScrollSpeed(300); while(1){}; }
Definition at line 167 of file lib14Seg.hpp.
Member Function Documentation
void init | ( | PinName | SPI_MOSI, |
PinName | SPI_MISO, | ||
PinName | SPI_SCK, | ||
PinName | RCK, | ||
int | kido, | ||
int | ViewLength | ||
) |
イニシャライザ 最初に実行してください。
- Note:
- 輝度は現在使えません。 Lengthは現在8のみです。
- Parameters:
-
SPI_MOSI MOSI SPI_MISO MISO 接続不要 SPI_SCK SCK RCK Latch kido 現在使えません ViewLength 8桁のみ
Definition at line 18 of file lib14Seg.cpp.
void scroll | ( | ) |
格納した文字列をスクロール表示する
Definition at line 65 of file lib14Seg.cpp.
void setChar | ( | char * | input ) |
文字列をセットします。 30文字まで
Definition at line 49 of file lib14Seg.cpp.
void setScrollSpeed | ( | int | scrollSpeed ) |
スクロールスピードを設定する
Definition at line 41 of file lib14Seg.cpp.
void showStop | ( | ) |
格納した文字列を表示する
Definition at line 58 of file lib14Seg.cpp.
Generated on Wed Jul 13 2022 12:05:20 by 1.7.2