villekille 0 Posted April 6, 2020 Share Posted April 6, 2020 I have found a very simple LCD display "DfRobot LCD for Arduino with rgb backlight". It seems like a good way to have a display with projects but the problem is that for some reason Energia cannot process the code. No matter how I try, i just get an error message: Error compiling for board MSP-EXP430G2ET w/ MSP430G2553. Is there any way to use such displays with Energia? the code is very simple #include <Wire.h> #include "DFRobot_RGBLCD.h" const int colorR = 255; const int colorG = 0; const int colorB = 0; DFRobot_RGBLCD lcd(16,2); //16 characters and 2 lines of show void setup() { // initialize lcd.init(); lcd.setRGB(colorR, colorG, colorB); // Print a message to the LCD. lcd.print("hello, world!"); delay(1000); } void loop() { // set the cursor to column 0, line 1 // (note: line 1 is the second row, since counting begins with 0): lcd.setCursor(0, 1); // print the number of seconds since reset: lcd.print(millis()/1000); delay(100); } Quote Link to post Share on other sites
Rei Vilo 692 Posted April 6, 2020 Share Posted April 6, 2020 Check the display works with 3.3V. The Arduino Uno operates at 5V. Check the usual suspects for I²C, especially pull-up resistors. See I²C Check-List. Which pins are you using on the MSP430G2553? There are two I²C ports. See the MSP430G2 LaunchPad (MSP-EXP430G2) pins map. What is the exact output of the compiler? See Information to Provide When Asking for Help Quote Link to post Share on other sites
villekille 0 Posted April 6, 2020 Author Share Posted April 6, 2020 Yes, the display is 3.3/5V works with both. But the issue is that I haven't even yet connected the launchpad to anything, it is the compile process that stops with the error "Error compiling for board MSP-EXP430G2ET w/ MSP430G2553" what could cause this kind of issue? I am able to compile other programs I have tried normally Quote Link to post Share on other sites
Rei Vilo 692 Posted April 7, 2020 Share Posted April 7, 2020 What is the exact output of the compiler? See Information to Provide When Asking for Help Copy the entire output of the compiler and post it here. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.