A board support package for the LPC4088 Display Module.
Dependencies: DM_HttpServer DM_USBHost
Dependents: lpc4088_displaymodule_emwin lpc4088_displaymodule_demo_sphere sampleGUI sampleEmptyGUI ... more
Fork of DMSupport by
DMBoard Class Reference
Example of using the Board class: More...
#include <DMBoard.h>
Public Member Functions | |
BoardError | init () |
Initializes the wanted features. | |
void | setLED (Leds led, bool on) |
Controls the four LEDs on the Display Module. | |
void | buzzer (int frequency=0, int duration_ms=0) |
Controls the buzzer. | |
bool | buttonPressed () |
Test if the USER button is pressed or not. | |
TouchPanel * | touchPanel () |
Returns the TouchPanel interface. | |
Display * | display () |
Returns the Display interface. | |
RtosLog * | logger () |
Returns the logger interface. | |
Registry * | registry () |
Returns the Registry interface. | |
MCIFileSystem * | getMciFS () |
Returns the MCI File System instance. | |
QSPIFileSystem * | getQspiFS () |
Returns the QSPI File System instance. | |
Static Public Member Functions | |
static DMBoard & | instance () |
Get the only instance of the DMBoard. |
Detailed Description
Example of using the Board class:
#include "mbed.h" #include "DMBoard.h" int main(void) { DMBoard* board = &DMBoard::instance(); board->init(); ... board->setLed(1, true); }
Definition at line 67 of file DMBoard.h.
Member Function Documentation
bool buttonPressed | ( | ) |
Test if the USER button is pressed or not.
- Returns:
- True if the button is pressed, false if not
Definition at line 221 of file DMBoard.cpp.
void buzzer | ( | int | frequency = 0 , |
int | duration_ms = 0 |
||
) |
Controls the buzzer.
Examples: buzzer() turns it off buzzer(440) plays an A4 (440Hz) note forever buzzer(200, 25) plays a 200Hz tone for 25ms and then turns it off
Note that if duration_ms is >0 this is a blocking call
- Parameters:
-
frequency the frequency of the tone (in Hz) or 0 to turn it off duration_ms the number of milliseconds to play or 0 for forever
Definition at line 207 of file DMBoard.cpp.
Display * display | ( | ) |
MCIFileSystem* getMciFS | ( | ) |
QSPIFileSystem* getQspiFS | ( | ) |
DMBoard::BoardError init | ( | ) |
Initializes the wanted features.
- Returns:
- Ok on success An error code on failure
Definition at line 102 of file DMBoard.cpp.
static DMBoard& instance | ( | ) | [static] |
RtosLog* logger | ( | ) |
Registry* registry | ( | ) |
void setLED | ( | Leds | led, |
bool | on | ||
) |
Controls the four LEDs on the Display Module.
- Parameters:
-
led One of Led1, Led2, Led3 or Led4 on true to turn the LED on regardless of its polarity
Definition at line 189 of file DMBoard.cpp.
TouchPanel * touchPanel | ( | ) |
Returns the TouchPanel interface.
- Returns:
- The touch panel
Definition at line 226 of file DMBoard.cpp.
Generated on Tue Jul 12 2022 14:18:31 by 1.7.2