Giter VIP home page Giter VIP logo

ssd1306-oled-display-driver-for-beaglebone's Issues

Raspberry PI4 : Nodejs - javascript - ssd1306 oled

Dear @deeplyembeddedWP , @giuliomoro

I hope you are well.

I have seen you are using on beaglebone the adafruit-ssd1306 in c and I2C.

From my side I am using Raspberry PI4 and I'd like to know if I clone the repository except to activate the I2C and maybe pins for I2C it should work?

Otherwise, is it possible to adapt the c library in javascript to use it with nodejs ?

If yes thanks if you could share how to make it.

Best Regards
Youssef

Only half of the display is being used

I ran into this issue with your current distro, and went a-Googlin'.

I found others had had the same problem, and solved it. See:
google/periph#166

The same fix can be made here by changing (line 124, or thereabouts)

#define SSD1306_CONFIG_COM_PINS 0x12

to

#define SSD1306_CONFIG_COM_PINS 0x02

This may only affect users connecting their display in a certain way. I just tried the fix and it worked for me, then stopped caring about why.

I submit it here in case anyone else runs into the same issue. You can probably just close this right away and leave it around as a record of the fix.

Thanks for making your port of this library available!
Lumieria

Frame buffer transfer

Hi,

I am currently creating a port of this graphics library to be used with the esp32. I believe I have found a bug in your transfer() function.

The buffer to hold chunks is 16 bytes;

/* Chunk Buffer */
static unsigned char chunk[16] = {0};

Your loop then allows access to the 17th element;

for(loop_2 = 1; loop_2 < 17; loop_2++)
chunk[loop_2] = screen[index++];

And later you memset 17 bytes again.

memset(chunk,0x00,17);

Other than that the library works great.

Thank you!!

sh1106-OLED

would be great if you could support the sh1106 displays as well! they only are capable of a subset of commands i think.

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.