Some comsmetic changes

This commit is contained in:
Admar Schoonen 2012-01-07 09:23:56 +01:00
parent 38da3b00c1
commit f74e4aedca
1 changed files with 12 additions and 7 deletions

View File

@ -159,7 +159,7 @@ char buf[50]; // time output string for debugging
DS1302 rtc(DS1302CEPin, DS1302IOPin, DS1302CLKPin);
// ProtoThread structures (one for each thread)
static struct pt buttons_thread_pt, wordclock_pt;
static struct pt blink_thread_pt, buttons_thread_pt, wordclock_thread_pt;
void print_DS1302time()
{
@ -209,9 +209,9 @@ void setup()
current_brightnes=MAXBRIGHTNESS;
//Serial.begin(9600); // setup the serial port to 9600 baud
Serial.begin(115200); // setup the serial port to 115200 baud
SWversion(); // Display the version number of the software
//Serial.begin(9600); // setup the serial port to 9600 baud
Serial.begin(115200); // setup the serial port to 115200 baud
SWversion(); // Display the version number of the software
// test whether the DS1302 is there
Serial.print("Verifying DS1302 ");
@ -530,7 +530,12 @@ static int buttons_thread(struct pt *pt)
PT_END(pt);
}
static int wordclock(struct pt *pt)
static int blink_thread(struct pt *pt)
{
}
static int wordclock_thread(struct pt *pt)
{
static unsigned long int lightlevel_avg;
unsigned long int lightlevel_sample;
@ -647,8 +652,8 @@ static int wordclock(struct pt *pt)
void loop()
{
// call each function continuously
wordclock(&wordclock_pt);
// call each thread continuously
wordclock_thread(&wordclock_thread_pt);
buttons_thread(&buttons_thread_pt);
}