Root/
| Source at commit 30c683effd7ab362d1517950700c96cfa09e45e8 created 11 years 17 days ago. By Werner Almesberger, tornado/fw/sim/p: pass arguments to "alg"; label graphs; better separate "up" | |
|---|---|
| 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 | |
| 26 | void led_show(const uint8_t p[LED_BYTES]); |
| 27 | void led_show_pgm(const prog_uint8_t p[LED_BYTES]); |
| 28 | void led_off(void); |
| 29 | void led_init(void); |
| 30 | |
| 31 | #endif /* !LED_H */ |
| 32 | |
Branches:
master
tornado-v1
