2013-10-11

Olimex LPC1114 Blink LED P0.9 four times tested OK

// ***********************************************************************
// Program  - Olimex LPC1114 Dev Board GPIO Testing
// Function - LED, Key Testing
// Author   - TL Fong
// Build    - 2013.10.11.01
// Date     - 2013oct11hkt1518
// 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 2013oct11
blinkLedP09FourTimes();  // P09 MOSI 2013oct11

return 0;
}

// ***********************************************************************
// End
// ***********************************************************************





// ***********************************************************************
// led031.h
// 2013oct11hkt1521

// ***********************************************************************


...

void blinkLedP09FourTimes() // 2013oct11
{
delayTime(ONE_SECOND);

blinkLedP09(ON_ONE_FIFTH_SECOND, OFF_ONE_HALF_SECOND, REPEAT_4_TIMES);
}

.END

No comments:

Post a Comment