#include <avr/io.h>
#include <avr/delay.h>
#include <avr/interrupt.h>
#include "Controller.h"
Go to the source code of this file.
Defines | |
#define | F_CPU 11059200UL |
#define | TEST_MODE 1 |
Functions | |
void | debugTestProgramm () |
void | msDelay (int n) |
void | powerOnLED (unsigned char _ledID, bool _status) |
void debugTestProgramm | ( | ) |
Definition at line 30 of file test.h.
References Controller::init(), Controller::msDelay(), and Controller::powerOnLED().
00030 { 00031 00032 Controller c; 00033 c.init(); 00034 00035 //c.blinkLED((1<<LED_WALK)|(1<<LED_LEARN)|(1<<LED_EXPLORATION), 100, 500); 00036 00037 // Datenflussregister auf PortA 00038 DDRA = 0x0F; 00039 PORTA |= (1<<PA4) | (1<<PA5) | (1<<PA6) | (1<<PA7); 00040 00041 00042 while (1) { 00043 /* 00044 powerOnLED(0x00, 0); 00045 powerOnLED(0x01, 1); 00046 powerOnLED(0x02, 1); 00047 powerOnLED(0x03, 0); 00048 msDelay(500); 00049 powerOnLED(0x00, 1); 00050 powerOnLED(0x01, 0); 00051 powerOnLED(0x02, 0); 00052 powerOnLED(0x03, 1); 00053 msDelay(500); 00054 */ 00055 00056 c.powerOnLED(0x00, 0); 00057 c.powerOnLED(0x01, 1); 00058 c.powerOnLED(0x02, 1); 00059 c.powerOnLED(0x03, 0); 00060 c.msDelay(500); 00061 c.powerOnLED(0x00, 1); 00062 c.powerOnLED(0x01, 0); 00063 c.powerOnLED(0x02, 0); 00064 c.powerOnLED(0x03, 1); 00065 c.msDelay(500); 00066 00067 00068 } 00069 }
void msDelay | ( | int | n | ) |
void powerOnLED | ( | unsigned char | _ledID, | |
bool | _status | |||
) |