// ***********************************************************************
// Program - Olimex LPC1114 Dev Board GPIO Testing
// Function - LED, Key Testing
// Author - TL Fong
// Build - 2013.10.12.01
// Date - 2013oct12hkt1104
// Hardware - Olimex/CooCox/MagicBlue/WHUT/Somy LPC1114/C14/301
// Software - GCC ARM 4.7, CoIDE 1.7.4, CoLinkEx 1.1, Flash Magic v7.51
// ***********************************************************************
#include "test031.h" // Olimex/WHUT LPC11C14 Eval Board Tests
// ***********************************************************************
// Main Function
// ***********************************************************************
int main()
{
// WHUT LPC11C14 Eval Board Tests 2013sep23
// blinkLedP18FourTimes(); // LED #1
// blinkLedP09TwoTimes(); // LED #5, JTAG Pin 13
// blinkAllLeds(); // LED D1 to D4, JTAG Pin 13
// displayAllDigits(); // 7 Segment LED
// blinkAllDigits(); // 7 SEGMENT LED
// echoWakeUpKeyByLed(); // Wake up key echo
// echoAllKeysByLed(); // All keys echo
// startProgram(); // Display 3, 2, 1, 0
// echoWakeUpKeyByDigit(); // Wake up key echo by 7 segment LED
// echoAllKeysByDigit(); // All keys echo by 7 segment LED
// startProgram(); // Display 3, 2, 1, 0
// CooCox LPC11C14 Eval Board Tests 2013sep24
// blinkLedP29FourTimes(); // CooCox P29 system LED
// blinkLedP09SixTimes(); // CooCox P09 MOSI
// blinkLedP09EightTimes(); // CooCox P09 MOSI
// echoBootKeyThreeTimes();
// Magic Blue LPC11C14 Barebone Tests 2013sep25
// blinkLedP09SixTimes(); // P09 MOSI
// echoBootKeyThreeTimes(); // Echo P0.1 boot (ISP) key by P0.9 (MOSI) LED
// echoMisoKeyByMosiLedTwoTimes();
// ***** Olimex LPC1114 Evaluation Board Tests 2013oct12 *****
blinkLedP09FourTimes();
blinkLedsInSequence41(OlimexBoardLedPortPinArrayPointerArray, ON_ONE_FIFTH_SECOND, \
OFF_ONE_FIFTH_SECOND, BLINK_1_TIME, SEQUENCE_2_TIMES);
echoKeyByLed42(OlimexBoardKeyPortPinArrayPointerArray, KEY_1, LED_1);
echoKeyByLed42(OlimexBoardKeyPortPinArrayPointerArray, KEY_1, LED_2);
echoKeyByLed42(OlimexBoardKeyPortPinArrayPointerArray, KEY_2, LED_1);
echoKeyByLed42(OlimexBoardKeyPortPinArrayPointerArray, KEY_2, LED_2);
return 0;
}
// ***********************************************************************
// End
// ***********************************************************************
// ***********************************************************************
// led031.h
// 2013oct12hkt1105
// ***********************************************************************
#include "config031.h"
#include "delay031.h"
#include "gpio033.h"
// ***********************************************************************
// Blinking P18, P09 (WHUT LED D1, JTAG Pin 13) using CooCox functions
// 2013sep23hkt0929
// ***********************************************************************
void blinkLedP18(int onTime, int offTime, int repeatCount)
{
setPio18Direction(OUTPUT_DIRECTION);
setPio18Output(LOW_LEVEL);
int i;
for (i = 0; i < repeatCount; i++)
{
setPio18Output(HIGH_LEVEL);
delayTime(onTime);
setPio18Output(LOW_LEVEL);
delayTime(offTime);
}
}
void blinkLedP09(int onTime, int offTime, int repeatCount)
{
setPio09Direction(OUTPUT_DIRECTION);
setPio09Output(LOW_LEVEL);
int i;
for (i = 0; i < repeatCount; i++)
{
setPio09Output(HIGH_LEVEL);
delayTime(onTime);
setPio09Output(LOW_LEVEL);
delayTime(offTime);
}
}
void blinkLedP29(int onTime, int offTime, int repeatCount)
{
setPio29Direction(OUTPUT_DIRECTION);
setPio29Output(LOW_LEVEL);
int i;
for (i = 0; i < repeatCount; i++)
{
setPio29Output(HIGH_LEVEL);
delayTime(onTime);
setPio29Output(LOW_LEVEL);
delayTime(offTime);
}
setPio29Output(HIGH_LEVEL);
}
void blinkLedP18FourTimes() // LED #1 - WHUT LED D1
{
delayTime(TWO_SECONDS);
blinkLedP18(ON_ONE_FIFTH_SECOND, OFF_ONE_FIFTH_SECOND, REPEAT_4_TIMES);
}
void blinkLedP09EightTimes() // LED #5 - WHUT JTAG Pin 13
{
delayTime(TWO_SECONDS);
blinkLedP09(ON_ONE_FIFTH_SECOND, OFF_ONE_HALF_SECOND, REPEAT_8_TIMES);
}
void blinkLedP09TwoTimes()
{
delayTime(TWO_SECONDS);
blinkLedP09(ON_ONE_FIFTH_SECOND, OFF_ONE_SECOND, REPEAT_2_TIMES);
}
void blinkLedP09FourTimes() // 2013oct11
{
delayTime(ONE_SECOND);
blinkLedP09(ON_ONE_FIFTH_SECOND, OFF_ONE_HALF_SECOND, REPEAT_4_TIMES);
}
void blinkLedP09SixTimes() // LED #5 - WHUT JTAG Pin 13
{
delayTime(TWO_SECONDS);
blinkLedP09(ON_ONE_FIFTH_SECOND, OFF_ONE_SECOND, REPEAT_6_TIMES);
}
void blinkLedP29FourTimes() // CooCox Eval Board P29
{
delayTime(TWO_SECONDS);
blinkLedP29(ON_ONE_SECOND, OFF_ONE_FIFTH_SECOND, REPEAT_4_TIMES);
}
// ***********************************************************************
// Blink 1 LED and all LEDs of WHUT Evaluation Board
// 2013sep23hkt0935
// ***********************************************************************
void blink1Led02(portPinArray ledPortPinArray, int onTime, int offTime, int blinkCount)
{
int count = 0;
for (count = 0; count < blinkCount; count++)
{
setGpioDataPinHigh01(ledPortPinArray);
delayTenthSecond(onTime);
setGpioDataPinLow01(ledPortPinArray);
delayTenthSecond(offTime);
}
}
void blink1Led01(portPinArrayPointerArray portPinArrayPointerArray, \
deviceNumber ledNumber, int onTime, int offTime, int blinkCount)
{
int count = 0;
portPinArray *portPinArrayPointer;
portPinArrayPointer = portPinArrayPointerArray[ledNumber - 1];
for (count = 0; count < blinkCount; count++)
{
setGpioDataPinHigh01(portPinArrayPointer);
delayTenthSecond(onTime);
setGpioDataPinLow01(portPinArrayPointer);
delayTenthSecond(offTime);
}
}
void blink1OlimexLed01(portPinArrayPointerArray portPinArrayPointerArray, \
deviceNumber ledNumber, int onTime, int offTime, int blinkCount)
{
int count = 0;
portPinArray *portPinArrayPointer;
portPinArrayPointer = portPinArrayPointerArray[ledNumber - 1];
for (count = 0; count < blinkCount; count++)
{
setGpioDataPinLow01(portPinArrayPointer);
delayTenthSecond(onTime);
setGpioDataPinHigh01(portPinArrayPointer);
delayTenthSecond(offTime);
}
}
void blink1Led(int ledNumber)
{
blink1Led01(WhutBoardLedPortPinArrayPointerArray, ledNumber, \
ON_ONE_FIFTH_SECOND, OFF_ONE_FIFTH_SECOND, REPEAT_2_TIMES );
}
void blinkOlimex1Led(int ledNumber)
{
blink1Led01(OlimexBoardLedPortPinArrayPointerArray, ledNumber, \
ON_ONE_FIFTH_SECOND, OFF_ONE_FIFTH_SECOND, REPEAT_2_TIMES );
}
void blinkAllLeds01(int onTime, int offTime, int repeatCount)
{
int ledNumber;
for (ledNumber = 1; ledNumber < (MAX_LED_NUMBER + 1); ledNumber++ )
{
blink1Led01(WhutBoardLedPortPinArrayPointerArray, ledNumber, \
onTime, offTime, repeatCount);
}
}
void blinkAllLeds() // WHUT LED D1 to D4, JTAG Pin 13
{
initializeAllOutputPins(WhutBoardLedPortPinArrayPointerArray, MAX_LED_NUMBER);
delayTime(TWO_SECONDS);
blinkAllLeds01(ON_ONE_FIFTH_SECOND, OFF_ONE_SECOND, REPEAT_2_TIMES);
}
void blinkAllOlimexLeds01(int onTime, int offTime, int repeatCount) // 2013oct11
{
int ledNumber;
for (ledNumber = 1; ledNumber < (MAX_OLIMEX_LED_PIN_NUMBER + 1); ledNumber++ )
{
blink1OlimexLed01(OlimexBoardLedPortPinArrayPointerArray, ledNumber, \
onTime, offTime, repeatCount);
}
}
void blinkEightOlimexLedsSequently() // Olimex LPC1114 8 LEDs 2013oct11
{
initializeAllOutputPinsHigh(OlimexBoardLedPortPinArrayPointerArray, MAX_OLIMEX_LED_PIN_NUMBER);
delayTime(ONE_SECOND);
int count;
for (count = 0; count < 2; count++)
{
blinkAllOlimexLeds01(ON_ONE_FIFTH_SECOND, OFF_ONE_FIFTH_SECOND, REPEAT_1_TIME);
}
}
void blinkOlimexLedsInSequence40(int onTime, int offTime, int blinkCount, int sequenceCount) // Olimex LPC1114 8 LEDs 2013oct12
{
initializeAllOutputPinsHigh(OlimexBoardLedPortPinArrayPointerArray, MAX_OLIMEX_LED_PIN_NUMBER);
delayTime(ONE_SECOND);
int count;
for (count = 0; count < sequenceCount; count++)
{
blinkAllOlimexLeds01(onTime, offTime, blinkCount);
}
}
void blinkLedsInSequence41(portPinArrayPointerArray ledPortPinArrayPointerArray, int onTime, int offTime, int blinkCount, int sequenceCount) // Olimex LPC1114 8 LEDs 2013oct12
{
initializeAllOutputPinsHigh(ledPortPinArrayPointerArray, MAX_OLIMEX_LED_PIN_NUMBER);
delayTime(ONE_SECOND);
int count;
for (count = 0; count < sequenceCount; count++)
{
blinkAllOlimexLeds01(onTime, offTime, blinkCount);
}
}
// ***********************************************************************
// Display 7 segment LED of WHUT Evaluation Board
// 2013sep23hkt0950
// ***********************************************************************
// positive going pulse to latch segment data
void sendGoingPositivePulse(portPinArray *portPinArrayPointer)
{
setGpioDataPinHigh01(portPinArrayPointer);
setGpioDataPinLow01(portPinArrayPointer);
}
// load 7 segment bits and decimal point
void loadSevenSegmentDataBits(portPinArray *portPinArrayPointerData, \
portPinArray *portPinArrayPointerClock, int alphaNumbericCharacter)
{
int segmentNumber;
int segmentBit;
int segmentByte, segmentByte1;
int Segment0 = 0b11111100; // 7 sements bits & decimal point pattern of digit 0
int Segment1 = 0b01100000;
int Segment2 = 0b11011010;
int Segment3 = 0b11110010;
int Segment4 = 0b01100110;
int Segment5 = 0b10110110;
int Segment6 = 0b10111110;
int Segment7 = 0b11100000;
int Segment8 = 0b11111110;
int Segment9 = 0b11110110; // digit 9
int AllBlank = 0b00000000; // all 7 segments and decimal pont blank
int SegmentArray[] = {Segment0, Segment1, Segment2, Segment3, Segment4, \
Segment5, Segment6, Segment7, Segment8, Segment9, AllBlank};
segmentByte = SegmentArray[alphaNumbericCharacter];
for (segmentNumber = 0; segmentNumber < 8; segmentNumber++) // load 8 segment bits
{
segmentByte1 = segmentByte | (1 << segmentNumber);
if (segmentByte1 == segmentByte)
setGpioDataPinHigh01(portPinArrayPointerData);
else
setGpioDataPinLow01(portPinArrayPointerData);
sendGoingPositivePulse(portPinArrayPointerClock); // then write positive going pulse to latch data
}
}
void displayDigitBlank() // display blank digit
{
int DigitBlank = 10;
displayDigit(DigitBlank);
}
void displayDigit01(portPinArrayPointerArray sevenSegmentPortPinArrayPointerArray, \
int digitNumber) // display 1 digit
{
portPinArray *portPinArrayPointerClock; // GPIO pin for clock
portPinArray *portPinArrayPointerData; // GPIO pin for data
portPinArray *portPinArrayPointerLatch; // GPIO pin for latch
portPinArrayPointerClock = sevenSegmentPortPinArrayPointerArray[SCLK_INDEX];
portPinArrayPointerData = sevenSegmentPortPinArrayPointerArray[DIN_INDEX];
portPinArrayPointerLatch = sevenSegmentPortPinArrayPointerArray[LATCH_INDEX];
setGpioDataPinLow01(portPinArrayPointerLatch); // set latch low
setGpioDataPinLow01(portPinArrayPointerClock); // set clock pin low
loadSevenSegmentDataBits(portPinArrayPointerData, portPinArrayPointerClock, digitNumber); // load segment bits
setGpioDataPinHigh01(portPinArrayPointerLatch); // set latch pin high
}
void displayDigit(int digitNumber) // display 1 digit
{
displayDigit01(WhutBoardSevenSegmentLedPortPinArrayPointerArray, digitNumber);
}
void displayAllDigits01() // display all digits
{
int digitNumber;
for (digitNumber = 0; digitNumber < 10; digitNumber++)
{
displayDigit(digitNumber);
delayTime(ONE_HALF_SECOND);
}
}
void displayAllDigits() // WHUT 7 Segment LED
{
initializeAllOutputPins(WhutBoardSevenSegmentLedPortPinArrayPointerArray, \
MAX_7_SEG_LED_PIN_NUMBER);
delayTime(TWO_SECONDS);
displayAllDigits01();
}
void blinkDigit(int digitNumber, int onTime, int offTime, int repeatCount) // blink 1 digit
{
int count;
for (count = 0; count < repeatCount; count++)
{
displayDigitBlank();
delayTenthSecond(offTime);
displayDigit(digitNumber);
delayTenthSecond(onTime);
}
}
void blinkAllDigits()
{
initializeAllOutputPins(WhutBoardSevenSegmentLedPortPinArrayPointerArray, \
MAX_7_SEG_LED_PIN_NUMBER);
delayTime(ONE_SECOND);
int digitNumber;
for (digitNumber = 0; digitNumber < 10; digitNumber++)
{
blinkDigit(digitNumber, ON_ONE_FIFTH_SECOND, OFF_ONE_SECOND, REPEAT_2_TIMES);
}
displayDigitBlank();
}
// ***********************************************************************
// End
// ***********************************************************************
// ***********************************************************************
// key033.h 2013oct12hkt1104
// ***********************************************************************
#include "config031.h"
#include "delay031.h"
#include "gpio033.h"
// ***********************************************************************
// Key functions
// ***********************************************************************
logicLevelValue getKeyStatus();
void echo1Key01();
void echo1Key();
void testEchoThreeKeys();
// ***********************************************************************
// Function - getKeyStatus
// Input - keyPortPinArrayPointerArray, keyNumber
// Output - port pin data bit
// ***********************************************************************
logicLevelValue getKeyStatus01(portPinArray keyPortPinArray)
{
logicLevelValue keyStatus;
int portNumber;
int pinNumber;
GPIO_TypeDef *gpioStructPointer;
portNumber = getPortNumber(keyPortPinArray);
gpioStructPointer = getGpioStructPointer(portNumber);
pinNumber = getPinNumber(keyPortPinArray);
keyStatus = getGpioDataPinValue01(gpioStructPointer, pinNumber);
return keyStatus;
}
logicLevelValue getKeyStatus(portPinArrayPointerArray keyPortPinArrayPointerArray, \
deviceNumber keyNumber)
{
logicLevelValue keyStatus;
int portNumber;
int pinNumber;
GPIO_TypeDef *gpio_struct_ptr;
keyStatus = getGpioDataPinValue(keyPortPinArrayPointerArray, keyNumber);
return keyStatus;
}
// ***********************************************************************
// Function - echo key by LED
// Input - keyPinPortArrayPointerArray, keyNumber, ledPinPortArrayPointerArray, ledNumber
// Output - none
// ***********************************************************************
// *** Echo key by single LED ***
void echoKeyByLed02(portPinArray keyPortPinArray, portPinArray ledPortPinArray)
{
int count;
logicLevelValue keyStatus;
keyStatus = HIGH;
while (keyStatus == HIGH)
{
keyStatus = getKeyStatus01(keyPortPinArray);
if (keyStatus == LOW)
{
// blinkLedP09TwoTimes();
blink1Led02(ledPortPinArray, ONE_FIFTH_SECOND, ONE_HALF_SECOND, REPEAT_2_TIMES);
delayTime(TWO_SECONDS);
keyStatus = HIGH;
break;
}
}
}
void echo1KeyBySingleLed01(portPinArrayPointerArray keyPortPinArrayPointerArray, \
deviceNumber keyNumber, \
portPinArrayPointerArray ledPortPinArrayPointerArray, \
deviceNumber ledNumber, int echoCount)
{
int count;
logicLevelValue keyStatus;
for (count = 0; count < echoCount; count++)
{
delayTime(ONE_SECOND);
keyStatus = HIGH;
while (keyStatus == HIGH)
{
keyStatus = getKeyStatus(keyPortPinArrayPointerArray, keyNumber);
if (keyStatus == LOW)
{
blink1Led(ledNumber);
delayTime(TWO_SECONDS);
keyStatus = HIGH;
break;
}
}
}
}
void echoOlimex1KeyBySingleLed01(portPinArrayPointerArray keyPortPinArrayPointerArray, \
deviceNumber keyNumber, \
portPinArrayPointerArray ledPortPinArrayPointerArray, \
deviceNumber ledNumber, int echoCount)
{
int count;
logicLevelValue keyStatus;
for (count = 0; count < echoCount; count++)
{
delayTime(ONE_SECOND);
keyStatus = HIGH;
while (keyStatus == HIGH)
{
keyStatus = getKeyStatus(keyPortPinArrayPointerArray, keyNumber);
if (keyStatus == LOW)
{
blinkOlimex1Led(ledNumber);
delayTime(TWO_SECONDS);
keyStatus = HIGH;
break;
}
}
}
}
void echoOlimex1KeyBySingleLed4201(portPinArrayPointerArray keyPortPinArrayPointerArray, \
deviceNumber keyNumber, \
portPinArrayPointerArray ledPortPinArrayPointerArray, deviceNumber ledNumber)
{
int count;
logicLevelValue keyStatus;
delayTime(ONE_SECOND);
keyStatus = HIGH;
while (keyStatus == HIGH)
{
keyStatus = getKeyStatus(keyPortPinArrayPointerArray, keyNumber);
if (keyStatus == LOW)
{
blinkOlimex1Led(ledNumber);
delayTime(TWO_SECONDS);
keyStatus = HIGH;
break;
}
}
}
void echo1KeyBySingleLed(deviceNumber keyNumber, int ledNumber, int repeatCount)
{
echo1KeyBySingleLed01(*WhutBoardKeyPortPinArrayPointerArray, keyNumber, \
*WhutBoardLedPortPinArrayPointerArray, ledNumber, \
repeatCount);
}
void echoOlimex1KeyBySingleLed(deviceNumber keyNumber, int ledNumber, int repeatCount)
{
echoOlimex1KeyBySingleLed01(*OlimexBoardKeyPortPinArrayPointerArray, keyNumber, \
*OlimexBoardLedPortPinArrayPointerArray, ledNumber, \
repeatCount);
}
void echoOlimex1KeyBySingleLed42(deviceNumber keyNumber, int ledNumber)
{
echoOlimex1KeyBySingleLed4201(*OlimexBoardKeyPortPinArrayPointerArray, keyNumber, \
*OlimexBoardLedPortPinArrayPointerArray, ledNumber);
}
// *** Echo key by 7 segment LED ***
void echoKeyBy7SegmentLed01(portPinArrayPointerArray keyPortPinArrayPointerArray, \
deviceNumber keyNumber, \
portPinArrayPointerArray sevenSegmentledPortPinArrayPointerArray, \
int digitNumber, int echoCount)
{
int count;
logicLevelValue keyStatus;
for (count = 0; count < echoCount; count++)
{
delayTime(ONE_SECOND);
keyStatus = HIGH;
while (keyStatus == HIGH)
{
keyStatus = getKeyStatus(keyPortPinArrayPointerArray, keyNumber);
if (keyStatus == LOW)
{
blinkDigit(digitNumber, ONE_HALF_SECOND, ONE_HALF_SECOND, REPEAT_2_TIMES);
displayDigitBlank();
delayTime(TWO_SECONDS);
keyStatus = HIGH;
break;
}
}
}
}
void echoKeyBy7SegmentLed(deviceNumber keyNumber, int digitNumber, int repeatCount)
{
echoKeyBy7SegmentLed01(*WhutBoardKeyPortPinArrayPointerArray, keyNumber, \
*WhutBoardSevenSegmentLedPortPinArrayPointerArray, digitNumber, \
repeatCount);
}
// ***********************************************************************
// Echo Key Tests
// ***********************************************************************
void echoWakeUpKeyByLed() // Echo Wake Up Key 4 times
{
initializeAllInputPins(WhutBoardKeyPortPinArrayPointerArray, MAX_KEY_NUMBER);
echo1KeyBySingleLed(KEY_5, LED_5, REPEAT_4_TIMES);
}
void echoOlimexWakeUpKeyByLed() // 2013oct11
{
initializeAllInputPins(OlimexBoardKeyPortPinArrayPointerArray, MAX_OLIMEX_KEY_PIN_NUMBER);
echoOlimex1KeyBySingleLed(KEY_2, LED_2, REPEAT_4_TIMES);
}
void echoWakeUpKey40() // ***** 2013oct12 *****
{
initializeAllInputPins40(OlimexBoardKeyPortPinArrayPointerArray);
echoOlimex1KeyBySingleLed(KEY_2, LED_2, REPEAT_4_TIMES);
}
void echoWakeUpKey41(portPinArrayPointerArray keyPortPinArrayPointerArray) // ***** 2013oct12 *****
{
initializeAllInputPins40(keyPortPinArrayPointerArray);
echoOlimex1KeyBySingleLed(KEY_2, LED_2, REPEAT_4_TIMES);
}
void echoKeyByLed42(portPinArrayPointerArray keyPortPinArrayPointerArray, int keyNumber, int ledNumber) // ***** 2013oct12 *****
{
initializeAllInputPins40(keyPortPinArrayPointerArray);
echoOlimex1KeyBySingleLed42(keyNumber, ledNumber);
}
void echoBootKeyThreeTimes() // Echo key by LED P0.9 MOSI
{
portPinArray ledPortPinArray = {0, 9};
portPinArray bootPortPinArray = {0, 1};
initializeOutputPin01(ledPortPinArray);
initializeInputPin01(bootPortPinArray);
int count;
for (count = 0; count < 3; count++)
{
echoKeyByLed02(bootPortPinArray, ledPortPinArray);
}
}
void echoMisoKeyByMosiLedTwoTimes()
{
portPinArray mosiPortPinArray = {0, 9};
portPinArray misoPortPinArray = {0, 8};
initializeOutputPin01(mosiPortPinArray);
initializeInputPin01(misoPortPinArray);
int count;
for (count = 0; count < 2; count++)
{
echoKeyByLed02(misoPortPinArray, mosiPortPinArray);
}
}
void echoAllKeysByLed() // Echo All keys twice
{
initializeAllInputPins(WhutBoardKeyPortPinArrayPointerArray, MAX_KEY_NUMBER);
echo1KeyBySingleLed(KEY_1, LED_1, REPEAT_2_TIMES);
echo1KeyBySingleLed(KEY_2, LED_2, REPEAT_2_TIMES);
echo1KeyBySingleLed(KEY_3, LED_3, REPEAT_2_TIMES);
echo1KeyBySingleLed(KEY_4, LED_4, REPEAT_2_TIMES);
echo1KeyBySingleLed(KEY_5, LED_5, REPEAT_2_TIMES);
}
void echoWakeUpKeyByDigit() // Echo Wake Up Key by digit
{
initializeAllOutputPins(WhutBoardSevenSegmentLedPortPinArrayPointerArray, \
MAX_7_SEG_LED_PIN_NUMBER);
echoKeyBy7SegmentLed(KEY_5, LED_5, REPEAT_2_TIMES);
}
void echoAllKeysByDigit() // Echo Wake Up Key by digit
{
initializeAllOutputPins(WhutBoardSevenSegmentLedPortPinArrayPointerArray, \
MAX_7_SEG_LED_PIN_NUMBER);
echoKeyBy7SegmentLed(KEY_1, LED_1, REPEAT_2_TIMES);
echoKeyBy7SegmentLed(KEY_2, LED_2, REPEAT_2_TIMES);
echoKeyBy7SegmentLed(KEY_3, LED_3, REPEAT_2_TIMES);
echoKeyBy7SegmentLed(KEY_4, LED_4, REPEAT_2_TIMES);
echoKeyBy7SegmentLed(KEY_5, LED_5, REPEAT_2_TIMES);
}
// ***********************************************************************
// End
// ***********************************************************************
No comments:
Post a Comment