Root/tornado/fw/led.h

1/*
2 * fw/led.h - LED control
3 *
4 * Written 2012 by Werner Almesberger
5 * Copyright 2012 Werner Almesberger
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 */
12
13
14#ifndef LED_H
15#define LED_H
16
17#include <stdint.h>
18
19#include <avr/pgmspace.h>
20
21
22#define N_LEDS 64
23#define LED_BYTES (N_LEDS/8)
24
25
26void led_show(const uint8_t p[LED_BYTES]);
27void led_show_pgm(const prog_uint8_t p[LED_BYTES]);
28void led_off(void);
29void led_init(void);
30
31#endif /* !LED_H */
32

Archive Download this file

Branches:
master
tornado-v1



interactive