Coder Social home page Coder Social logo

Comments (3)

ReanimationXP avatar ReanimationXP commented on September 23, 2024

Edit: I thought I had solved this but I was wrong at first. I was getting a lot of references to a missing "Wire.h" file. Turns out since I was using a RedBear Duo for this project (an enhanced clone of the Particle Photon) that means a couple things must be changed in that case. First, all references to Arduino, inttypes, Wire.h, etc need to be commented out both in code and in libraries, and replaced with #include "application.h", which is part of Particle's libraries. To do this:

I navigated to my local copy of https://github.com/Seeed-Studio/Grove_LCD_RGB_Backlight/blob/master/rgb_lcd.cpp and commented out

#include <Arduino.h>
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include <Wire.h>

Secondly I navigated to my local copy of https://github.com/Seeed-Studio/Grove_LCD_RGB_Backlight/blob/master/rgb_lcd.h and commented out

#include <inttypes.h>
#include "Print.h"

I also did the same on the example code,
https://github.com/Seeed-Studio/Grove_LCD_RGB_Backlight/blob/master/examples/HelloWorld/HelloWorld.ino
commenting out //#include <Wire.h>

Lastly I added #include "application.h" to all of these instances in lieu of the original code. This corrected the Hello World example for me and allowed it to compile. Now I have the problem of only getting the backlight to change color, no text is displayed. Never seen this before, but after some researching noticed that this is likely expecting 5v on the positive rail, and the RBLink I'm using with my RedBear Duo is only providing 3v3. Will try 5v and see how it goes.

Update: 5v worked great! Hours of headache over (two) stupid problems.

from grove_lcd_rgb_backlight.

jsilence avatar jsilence commented on September 23, 2024

The text is displayed when setting the display to one row:
lcd.begin(16, 1);
But then really only one row is usable. And the contrast of the text is very low.
Opening a separate issue for this.

from grove_lcd_rgb_backlight.

awong1900 avatar awong1900 commented on September 23, 2024

I can't found that compiling issue, so close. And feel free to fix it and I'll merge the change.

from grove_lcd_rgb_backlight.

Related Issues (11)

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.