Skip to content

Instantly share code, notes, and snippets.

View travischambers's full-sized avatar

Travis Chambers travischambers

  • Mililani, HI
  • 15:10 (UTC -10:00)
View GitHub Profile
@travischambers
travischambers / gist:4061250
Created November 12, 2012 19:13
simon-working LED and tones
/**************************************************************************
; Project: simon.c
; Author: Student, Fall2012
;
; Description: A MSP430 assembly language program that plays the game of Simon.
;
; 1. Each round of the game starts by the LEDs flashing several times.
; 2. The colored LEDs (along with the associated tones) then flash one at
; a time in a random sequence.
; 3. The push button switches are sampled and compared with the original
@travischambers
travischambers / gist:4049167
Created November 10, 2012 00:08 — forked from Colelyman/gist:4049013
Simon 124 Cole Lyman
// Beginning of our code
int beat_counter = 0;
int rand_array[] = 100;
bool fail = true;
setrandSeed();
do { // loop for each round
rand_array[beat_counter] = rand16();