blob: 6f7d64bc07077891c9e9356eb696a3f1b09b4beb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#define F_CPU 16000000
#ifdef PROTOTYPING
#define NOPROTO static
#define inline
//delay.h is broken we need to look after it
#define __OPTIMIZE__
#else
#define NOPROTO
#endif
#include <stdio.h>
#include <stdint.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/pgmspace.h>
#include "delay.h"
#include "uart.h"
#define UART_BAUD_RATE 115200
#define WS2812_PORTREG PORTB
#define WS2812_DDRREG DDRB
#define WS2812_PIN 1
#include "lib_ws2812.h"
#define NOUNUSED __attribute__((unused))
#include "prototypes.h"
|