ve3wwg / gu128x32-800 Goto Github PK
View Code? Open in Web Editor NEWA Noritake GU128X32-800 VFD C++ class, using UGUIF for the Raspberry Pi
A Noritake GU128X32-800 VFD C++ class, using UGUIF for the Raspberry Pi
Hello, I recently owned an GU128x64-800B and managed to make it working on a RPi 1(26 pin layout) I found it's a very helpful project. But until now I couldn't make it display any pixel on my GU128x64-800B. I changed GPIO pin order to fit my own setting(without FRP pin connected). And changed display UG_init
parameter:
diff --git a/vfd.cpp b/vfd.cpp
index e8073cc..628ca97 100644
--- a/vfd.cpp
+++ b/vfd.cpp
@@ -23,12 +23,12 @@ class Vfd {
std::string device;
uint8_t spimode = SPI_MODE_2; // Clocked on rising edge
uint32_t speed = 200000u; // 200 kHz
- int gpio_rxd = 10;
- int gpio_cd = 5;
+ int gpio_rxd = 9;
+ int gpio_cd = 8;
int gpio_sck = 11; // SPI_SCK
- int gpio_css = 20; // /CSS
+ int gpio_css = 7; // /CSS
int gpio_frp = 6; // FRP (input)
- int gpio_reset = 16; // /RESET
+ int gpio_reset = 21; // /RESET
int fd = -1; // Open device
UG_GUI gui;
@@ -88,7 +88,7 @@ Vfd::init() {
int rc;
memset(pixmap,0,128*64/8);
- UG_Init(&gui,Vfd::local_draw_point,this,128,32);
+ UG_Init(&gui,Vfd::local_draw_point,this,128,64);
UG_SetBackcolor(&gui,pen_to_ug(0));
UG_SetForecolor(&gui,pen_to_ug(1));
UG_FontSelect(&gui,&FONT_8X14);
After compiled the screen didn't show any thing, so I wonder is there any other things I should change to fit 128x64 screen, thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.