Posts

Showing posts from December, 2013

Rfduino with 2004 I2C Display

Image
Test out 20 x 4 LCD with my RFduino Since RFduino pin definitions are different than that of other Arduinos, it took me really long time to figure out these pins after search, search, and search the webs... The driver/library and coding samples came with RFduino/Arduino do not work. Must ask the vendor to provide the driver/library to make it working properly. RFduino default pins for SPI interface: SCL on GPIO 5 SDA on GPIO 6 There are four pins on this LCD module: 1. VCC (Power 5V) 2. GND (Ground) 3. SCL (Clock pin) 4. SDA (Data pin) One pin on the back of the LCD module. Remove it to turn off LCD all time. Close the pin you will be able to turn on/off the LCD with command: lcd.backlight() : turn on lcd.noBacklight()  : turn off Some other LCD commands: lcd.init() : initialise the LCD lcd.setCoursor(x, y) : place cursor lcd.print("Hello World"); print string //Compatible with the Arduino IDE 1.0 //Library version:1.1 #include <wire.h> #incl