Comments (3)
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.
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.
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)
- don't work With esp8266 HOT 4
- Display Showing RBG Colors and Text Values HOT 3
- no noBacklight() function ? HOT 2
- Please add API to turn the backlight off/on- save energy HOT 4
- lcd.print("Hello world") not printing anything? HOT 1
- Extra pixel in the smiley in CustomCharacter.ino HOT 4
- Extra character at the end of the display in SerialDisplay.ino HOT 4
- keep getting fatal error HOT 1
- Display stabillization HOT 4
- Library only supports one row HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grove_lcd_rgb_backlight.