mirror of
git://projects.qi-hardware.com/ben-blinkenlights.git
synced 2025-01-14 00:31:05 +02:00
Werner Almesberger
4b59dbf062
ubb-vga: express mode data in more common units and remove hard-coded constants
- ubb-vga.h (struct mode), ubb-vga.c (mode_db): replaced hsync_end with its constituends hsync_cycles and hback_cycles - ubb-vga.h (struct mode), ubb-vga.c (mode_db): added vsync_lines, vfront_lines, and vback_lines - ubb-vga.h (struct mode): changed "line_cycles" from "int" to "uint16_t" - ubb-vga.c (line): don't hard-code horizontal back porch - ubb-vga.c (line): don't hard-code sum of horizontal back porch and hsync - ubb-vga.c (hdelay): don't hard-code hsync - ubb-vga.c (frame): don't hard-code vsync and the vertical porches - ubb-vga.c (frame): don't hard-code hsync and horizontal back porch
Ben Blinkenlights ================= This project is a proof of concept implementation of Rikard Lindstrom's idea of using the Ben's 8:10 card slot as a general extension interface also for devices that don't speak MMC or SD/SDIO. The application is a simple LED circuit, as suggested by David Samblas. The 8:10 card slot gives access to six GPIOs, a 3.3 V supply that can be switched on and off by software, and ground. We use a simple form of multiplexing to drive ten LEDs with this interface. Note that one should only light one LED at a time. If multiple LEDs are lit, they will share the current though the common resistor, and will thus be less bright than a single LED.
Description
Blinkenlights, Demonstrate the use of the uSD slot for DIY hardware
http://projects.qi-hardware.com/index.php/p/ben-blinkenlights/
Languages
C
84.9%
Makefile
7.3%
Perl
3.2%
Shell
2.2%
HTML
1.7%
Other
0.7%