![]() ![]() As an example of how it could work for the LCD, you might find this (somewhat old) page interesting/inspirational: To be honest, the best approach is probably try to port/rewrite each of the components separately first (LCD and RFID) using the code as a logic reference rather than implementation this way you'll understand much more what is going on, and have some much neater implementations as a result. Serial rfid(rxPin, txPin) Wire seems to be some sort of global, but for mbed you'd just make an I2C object in the same way as Serial. So for example, instead of: SoftwareSerial rfid = SoftwareSerial( rxPin, txPin ) you'd do: The equivalents for the mbed libraries would be "I2C" and "Serial". This code appears to use an I2C port using an interface called "Wire" and a Serial interface called "SoftwareSerial". ![]() Note from Tim - I wiped out all of the code that was posted as it is pure Arduino code and just represents alot of useless text to skip over (note that not all of the functions have been implemented for the LCD in question. ![]() I would like to be involved and help out as much as I can. Please let me know how I can help out with this. h and my code from a working example where I I have the Aduino interfaced to an I2C display from MatrixOrbital and an RFID reader module. There is also a Serial.h and SoftSerial.h where SoftSerial allows you to designate which pins you want to use for com. The Arduino has a file called Wire.h which handles the I2C part which is what I am trying to use to get to an LCD display. The biggest issue is that the library files are obviously different and I don't know the names of the library files for the mbed. ![]() I think the first roadblock I have is that I am trying to migrate a. This would be great to work through and I would really like to do that. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |