Giter VIP home page Giter VIP logo

gu128x32-800's People

Contributors

ve3wwg avatar

Stargazers

 avatar

Watchers

 avatar

gu128x32-800's Issues

How to make it works on RPI 1(26-pin header) with GU128x64-800B?

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.