Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/socialsisteryi/vfd_13-st-84gink
VFD Module Futaba 13-ST-84GINK Arduino Driver Library
https://github.com/socialsisteryi/vfd_13-st-84gink
arduino arduino-library embedded mcu vfd-display
Last synced: 2 months ago
JSON representation
VFD Module Futaba 13-ST-84GINK Arduino Driver Library
- Host: GitHub
- URL: https://github.com/socialsisteryi/vfd_13-st-84gink
- Owner: SocialSisterYi
- License: mit
- Created: 2021-06-15T14:44:40.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-06-15T16:37:53.000Z (over 3 years ago)
- Last Synced: 2024-10-04T17:35:35.638Z (3 months ago)
- Topics: arduino, arduino-library, embedded, mcu, vfd-display
- Language: C++
- Homepage:
- Size: 10.1 MB
- Stars: 10
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# VFD_13-ST-84GINK
VFD模组13-ST-84GINK Arduino 驱动库
MCU与VFD模组通过软件SPI进行通讯
## Usage
构造对象:
```c++
VFD::VFD(uint8_t RSTpin/*复位引脚*/,uint8_t CSpin/*片选引脚*/,uint8_t SCLpin/*SPI时钟*/,uint8_t SDApin/*SPI数据*/);
```初始化:
```c++
void VFD::begin();
```写一个字符:
```c++
size_t VFD::write(uint8_t chr);
```写字符串或数字(继承了内建class Print):
```c++
void VFD::print(...);
```设置DRAM偏移量:
```c++
void VFD::set_offset(int offset);
```软件清屏:
```c++
void VFD::clear();
```写用户字符到CGRAM:
```c++
void VFD::write_CGRAM(uint8_t addr,uint8_t *val);
```设置亮度:
```c++
void VFD::set_brightness(uint8_t val);
```开启显示:
```c++
void VFD::on();
```关闭显示:
```c++
void VFD::off();
```设置ICON开关:
```c++
void VFD::set_ICON(uint8_t id,bool on);
```## DEMO
[Datasheet](docs/datasheet)
[DEMO Schenatic](docs/VFD_13ST84GINK.SchDoc)
Testing:
![IMG_20210615_232715](images/IMG_20210615_232715.jpg)