Working on the software pwm code.
[cerebrum.git] / led.h
blob61f7bcae84142f20e65da432d2bbaa2fdf4d37a9
2 #ifndef __LED_H__
3 #define __LED_H__
5 #include <avr/io.h>
6 #include "config.h"
8 #ifdef HAS_LED_SUPPORT
10 extern uint8_t* frameBuffer;
11 extern uint8_t* secondFrameBuffer;
13 extern void led_output_stuff1(uint8_t data, uint8_t dir);
15 void swapBuffers(void);
16 void setLED(int num, int val);
18 #endif//HAS_LED_SUPPORT
20 //CAUTION! This loop function takes more than 8ms due to delays.
21 void led_loop(void);
22 void led_setup(void);
24 #endif//__LED_H__