Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 17 lines (15 sloc) 0.667 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// ledson.c - simple program to light LEDs
// Sets pin to output , lights pattern of LEDs , then loops forever
// Launchpad v1.3 with LEDs active high on P1.0,6
// J H Davies , 2006-05-17;
// Launchpad port: S Reig , 2011-04-23; Code Composer Studio v4.2.3
// ----------------------------------------------------------------------
#include <msp430g2231.h> // Specific device

void main (void)
{
  WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer
  P1DIR = 0x41; // Set pins with LEDs to output , 0b01000001
  P1OUT = 0x01; // LED1 (P1.0) on
  for (;;) { // Loop forever ...
  } // ... doing nothing
}
Something went wrong with that request. Please try again.