Digole Serial Display FRDM-KL25Z Test Program Requires pull-ups on the SDA & SCL data lines. Digole Serial modified with extra Stop commands so that it works with the FRDM-KL25Z I2C library functions. Works fine on LPC1768 without extra Stop commands.
main.cpp
- Committer:
- PhilG1300
- Date:
- 2013-06-22
- Revision:
- 0:535e018f97b9
File content as of revision 0:535e018f97b9:
#include "mbed.h" #include "DigoleSerialDisp.h" //Digole Serial Display FRDM-KL-25Z DigoleSerialDisp myOLED(PTE0, PTE1, 0x27); DigitalOut myled(LED1); int main() { myOLED.clearScreen(); myOLED.drawFrame(0,0,127,63); myOLED.setPrintPos(1,1,_TEXT_); myOLED.println("Hello"); myOLED.setPrintPos(1,2,_TEXT_); myOLED.println("World"); while(1) { wait(1); myled = 1; wait(1); myled = 0; } }