Register 3 Posted January 29, 2014 Share Posted January 29, 2014 Hi, I'm trying to make a clock with a Tiny RTC module and a iTead 5110 Nokia LCD. I'm using Adafruit RTClib and the energia LCD_5110_SPI. Each library an device are working fine separately but when put together it stops working, is it possible to have SPI and I2C device working simultaneously? Thanks. Quote Link to post Share on other sites
spirilis 1,265 Posted January 29, 2014 Share Posted January 29, 2014 on the MSP430G2 launchpad? no, sadly not, the SPI/I2C peripherals share the same line. On the newer launchpads there is an I2C peripheral in the lower left corner (pins 9 and 10 of the J1 header), and I think there's a SoftwareI2C library floating around to implement I2C in software on those pins too (for the MSP430G2 launchpad). Might look for that one. I think @@Rei Vilo wrote it? Register 1 Quote Link to post Share on other sites
Register 3 Posted January 29, 2014 Author Share Posted January 29, 2014 Thanks for your reply. I tried to switch from LCD_5110_SPI to the LCD_5110 library and it freeze as soon as i try to acces to the RTC object. I'm going to ask to Rei Vilo. And yes it's a MSP430G2 with 2553. Regards, Quote Link to post Share on other sites
Rei Vilo 695 Posted January 29, 2014 Share Posted January 29, 2014 I suggest to go step-by-step and validate each of them. Step 1: Try the Nokia 5110 only with hardware SPI Step 2: Try the Nokia 5110 only with software SPI Step 3: Try the RTC only with hardware I Register 1 Quote Link to post Share on other sites
Register 3 Posted January 29, 2014 Author Share Posted January 29, 2014 Thanks for your reply. Seems I made a mistake and forgot Wire.begin(); when making some cut and past between scripts.... So now it's working with LCD_5110 library, will try to test the SPI version soon. Regards Quote Link to post Share on other sites
Rei Vilo 695 Posted January 29, 2014 Share Posted January 29, 2014 Glad to know! Congratulations Quote Link to post Share on other sites
SixSixSevenSeven 23 Posted January 29, 2014 Share Posted January 29, 2014 Thanks for your reply. Seems I made a mistake and forgot Wire.begin(); when making some cut and past between scripts.... So now it's working with LCD_5110 library, will try to test the SPI version soon. Regards We've all made that sort of mistake at some point... Quote Link to post Share on other sites
jdariolopez 0 Posted October 19, 2017 Share Posted October 19, 2017 hello! could you make this work? 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.