Production Test Program (PTP) for the LPC4088 Experiment Base Board

Dependencies:   EALib I2S LM75B SDFileSystem mbed

Embed: (wiki syntax)

« Back to documentation index

TestRGBLed Class Reference

TestRGBLed Class Reference

Test the RGB LED on the LPC4088 Experiment Base Board. More...

#include <TestRGBLed.h>

Public Member Functions

 TestRGBLed (PinName red=p25, PinName green=p28, PinName blue=p26, PinName button=p23)
 Create an interface to the RGB LED.
void showStartupPattern ()
 Blink in pattern to show test start.
void showStatus (bool success)
 Use the RED or GREEN LEDs to signal failure/success.
void waitForButtonClick ()
 Wait for the user to press and release the User Button on the LPC4088 QuickStart Board.
bool runTest ()
 Test the RGB LEDs.

Detailed Description

Test the RGB LED on the LPC4088 Experiment Base Board.

Definition at line 24 of file TestRGBLed.h.


Constructor & Destructor Documentation

TestRGBLed ( PinName  red = p25,
PinName  green = p28,
PinName  blue = p26,
PinName  button = p23 
)

Create an interface to the RGB LED.

Parameters:
redPin for the RED LED
greenPin for the GREEN LED
bluePin for the BLUE LED
buttonPin for the User Button on the LPC4088 QuickStart Board

Definition at line 38 of file TestRGBLed.cpp.


Member Function Documentation

bool runTest (  )

Test the RGB LEDs.

Returns:
true if the test was successful; otherwise false

Definition at line 125 of file TestRGBLed.cpp.

void showStartupPattern (  )

Blink in pattern to show test start.

Definition at line 44 of file TestRGBLed.cpp.

void showStatus ( bool  success )

Use the RED or GREEN LEDs to signal failure/success.

Definition at line 96 of file TestRGBLed.cpp.

void waitForButtonClick (  )

Wait for the user to press and release the User Button on the LPC4088 QuickStart Board.

Definition at line 114 of file TestRGBLed.cpp.