Production Test Program (PTP) for the LPC4088 Experiment Base Board
Dependencies: EALib I2S LM75B SDFileSystem mbed
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:
-
red Pin for the RED LED green Pin for the GREEN LED blue Pin for the BLUE LED button Pin 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.
Generated on Sun Jul 17 2022 08:29:10 by 1.7.2