9 years, 3 months ago.

Putc with uLCD-24PTU

I have to write a LED digit, I wrote a program but it doesn't work. Can you help me ?

putc for uLCD-24PTU by workshop 4D

#include "mbed.h"
#include "USBSerial.h"
//Serial port pin assignment and setup
Serial device(p27,p28);  // tx, rx

int main() {
while (1) 
{
device.putc(0x01);
wait(1);
device.putc(0x15);
wait(1);
device.putc(0x2);
wait(1);
device.putc(0x1);
wait(1);
device.putc(0x10);

}
}
Be the first to answer this question.