initial upload

This commit is contained in:
Harald Pichler 2017-07-20 10:33:19 +02:00
parent 5e15ec6488
commit c39e10b2e7
61 changed files with 2296 additions and 0 deletions

View file

@ -0,0 +1,57 @@
/*
Grove LED Bar - Wave Example
...
Ported for MSP-EXP430F5529, TM4C123 (Tiva C) by Cameron P. LaFollette
*/
#include <Grove_LED_Bar.h>
// Arduino Clock pin, Data pin, Orientation
// Grove_LED_Bar bar(9, 8, 0); // Clock pin, Data pin, Orientation
// LaunchPad Clock pin, Data pin, Orientation
Grove_LED_Bar bar(35, 36, 0); // Clock pin, Data pin, Orientation
void setup()
{
// nothing to initialize
bar.begin();
}
// Frames of continuous waves
unsigned char state[] =
{
0b11111111,
0b01111111,
0b00111111,
0b00011111,
0b00001111,
0b00000111,
0b00000011,
0b00000001,
0b00000000,
0b00000001,
0b00000011,
0b00000111,
0b00001111,
0b00011111,
0b00111111,
0b01111111,
0b11111111,
0b01111111,
0b00111111,
0b00011111,
0b00001111,
0b00000111,
0b00000011,
0b00000001,
0b00000000
};
void loop()
{
for (byte i = 0; i < (sizeof(state)-9); i++) {
bar.setBits((unsigned int)state[i]);
delay(50);
};
}