7 years, 4 months ago.

KL43Z LCD

Just a followup to my previous question. Sorry, this is the second try...

I've imported the SLCD library into the program, and copying the KL46Z demo program I found I try to get any kind of indication on the on-board LCD but nothing.

Bearing in mind this is my first time witht he on-board unit, am I all wet?

Ott

<<code title=include the mbed library with this snippet>>

  1. include "mbed.h"
  2. include "SLCD.h"

/* Program: KL43-mbed-ox-example-blinky

  • Author: Otter2016
  • Written: 10 Dec, 2016
  • Purpose: More experimentation with getting KL43 to work and to experiment
  • with the things it can do.
  • /

Define the things that we will be working with DigitalOut led1(LED1); DigitalOut flag1(PTA13); DigitalOut flag2(PTD2); DigitalOut flag3(PTD4); DigitalOut flag4(PTD6);

SLCD slcd;

Main just does all the blinky stuff as well as the RS-232 int main() {

slcd.All_Segments(1); wait(2); slcd.All_Segments(0); wait(2); int Round; Round = 1; Round is the iteration counter Serial pc(USBTX, USBRX); pc.baud(9600); pc.printf("Blinkey KL43Z Version 3\n\r Starting up now..\n\r"); pc.printf("Here comes the blinky!\n\r"); flag2 = !flag2; flag4 = !flag4;

while (true) { pc.printf("Blinkey Blinkey! - - "); led1 = !led1;

slcd.putc('0'); slcd.Colon(1); slcd.DP2(0);

pc.printf("Going again... Round %d\n\r", Round++); Thread::wait(500); } }

<</code>>include "mbed.h"

Be the first to answer this question.