2014-03-06 23:42:17 +00:00
|
|
|
Borgware-2D
|
2013-09-25 14:58:21 +00:00
|
|
|
===========
|
|
|
|
|
2014-03-06 23:42:17 +00:00
|
|
|
Firmware for AVR based two-dimensional LED matrices, especially the
|
|
|
|
[Blinken Borgs](http://www.das-labor.org/wiki/Blinken_Borgs) from
|
|
|
|
[Das LABOR](http://das-labor.org/index.en.php).
|
|
|
|
Main platform is the [Borg16](http://www.das-labor.org/wiki/Borg16) construction
|
|
|
|
kit. Other supported platforms are the
|
|
|
|
[LED Brett](http://www.hackerspace-ffm.de/wiki/index.php?title=LedBrett)
|
|
|
|
projector from [Hackerspace FFM](http://www.hackerspace-ffm.de) or the
|
|
|
|
[ELO Ping-Pong Board](http://www.elo-web.de/elo/mikrocontroller-und-programmierung/ping-pong/das-franzis-pingpong).
|
|
|
|
|
2014-03-06 23:59:05 +00:00
|
|
|
![Small Borg16](/doc/img/Borg16-small.jpg)
|
|
|
|
![Glow Lamp Borg](/doc/img/Glow_Lamp_Borg.jpg)
|
2013-09-25 14:58:21 +00:00
|
|
|
|
2014-03-06 23:42:17 +00:00
|
|
|
Animations
|
|
|
|
----------
|
2013-09-25 15:29:17 +00:00
|
|
|
|
2014-03-06 23:59:05 +00:00
|
|
|
![Matrix](/doc/img/anim-matrix.png)
|
|
|
|
![Fire](/doc/img/anim-feuer.png)
|
|
|
|
![Scrolling Text](/doc/img/anim-scroll.png)
|
2013-09-25 18:22:41 +00:00
|
|
|
|
2013-09-25 15:29:17 +00:00
|
|
|
|
2014-03-06 23:42:17 +00:00
|
|
|
Games
|
|
|
|
-----
|
2013-09-25 15:29:17 +00:00
|
|
|
|
2014-03-06 23:59:05 +00:00
|
|
|
![Snake](/doc/img/game-snake.png)
|
|
|
|
![Tetris](/doc/img/game-tetris.png)
|
2013-09-25 15:29:17 +00:00
|
|
|
|
2014-03-06 23:59:05 +00:00
|
|
|
* Tetris
|
2014-03-06 23:42:17 +00:00
|
|
|
* Classic: Standard Tetris Clone
|
|
|
|
* First Person Tetris: Rotate the bucket instead of the Tetromino.
|
|
|
|
* Bastet: Dices the worst the possible Tetromino the whole time.
|
2014-03-06 23:59:05 +00:00
|
|
|
* Snake
|
|
|
|
* Pong
|
|
|
|
* Space Invaders
|
2013-09-25 15:29:17 +00:00
|
|
|
|
|
|
|
|
2014-03-06 23:42:17 +00:00
|
|
|
Build
|
|
|
|
=====
|
2013-09-25 14:58:21 +00:00
|
|
|
|
2014-03-06 23:42:17 +00:00
|
|
|
Supported build platforms are Linux, FreeBSD and Windows (via Cygwin). Due to
|
|
|
|
customized linker scripts, simulator support is currently limited to x86 and
|
|
|
|
x86_64 archs. Following dependencies have to be met:
|
2013-09-25 14:58:21 +00:00
|
|
|
|
2014-03-06 23:42:17 +00:00
|
|
|
Dependencies Linux / FreeBSD
|
|
|
|
----------------------------
|
2013-09-25 14:58:21 +00:00
|
|
|
|
2014-03-06 23:42:17 +00:00
|
|
|
Package names are based on those packages found in the Debian/Ubuntu
|
|
|
|
repositories. Please adapt the names according to your Linux distribution (or
|
|
|
|
FreeBSD for that matter).
|
2013-09-25 14:58:21 +00:00
|
|
|
|
2014-03-06 23:42:17 +00:00
|
|
|
* build-essential (pulls in an ordinary gcc build tool chain for the host)
|
|
|
|
* make (gmake on FreeBSD)
|
|
|
|
* libncurses5-dev
|
|
|
|
* gcc-avr
|
|
|
|
* avr-libc
|
|
|
|
* binutils-avr
|
|
|
|
* avrdude
|
|
|
|
* freeglut3-dev
|
2013-09-25 14:58:21 +00:00
|
|
|
|
2014-03-06 23:42:17 +00:00
|
|
|
Dependencies Windows
|
|
|
|
--------------------
|
|
|
|
|
|
|
|
* [WinAVR](http://winavr.sourceforge.net) (includes avr-gcc and avrdude)
|
|
|
|
* [Cygwin(64)](http://www.cygwin.com/)
|
2014-03-06 23:59:05 +00:00
|
|
|
* make
|
|
|
|
* gcc-core
|
|
|
|
* libncurses-devel (Cygwin)
|
2014-03-07 00:16:19 +00:00
|
|
|
* libncursesw-devel (Cygwin64)
|
2014-03-06 23:42:17 +00:00
|
|
|
* [libusb-win32](http://sourceforge.net/apps/trac/libusb-win32/wiki) if you
|
|
|
|
want to use your USBasp programmer device with avrdude on Windows
|
|
|
|
|
|
|
|
Configure
|
|
|
|
---------
|
|
|
|
|
|
|
|
Open a terminal and type:
|
2013-09-25 14:58:21 +00:00
|
|
|
> make menuconfig
|
|
|
|
|
2014-03-06 23:42:17 +00:00
|
|
|
This brings up a curses based text interface for configuring certain aspects of
|
|
|
|
your target platform. Be careful if you use a full-fledged IDE like Eclipse to
|
|
|
|
manage the build, as integrated terminal emulators tend to choke on curses
|
|
|
|
generated shell output. Just ensure that 'make menuconfig' has been run at least
|
|
|
|
once in an ordinary terminal emulator after a fresh checkout or after issuing
|
|
|
|
'make mrproper'.
|
|
|
|
|
|
|
|
Compile
|
|
|
|
-------
|
2013-09-25 14:58:21 +00:00
|
|
|
|
2014-03-06 23:42:17 +00:00
|
|
|
To build for the actual target platform, just type:
|
2013-09-25 14:58:21 +00:00
|
|
|
> make
|
|
|
|
|
2014-03-07 00:16:19 +00:00
|
|
|
If you want to test and debug your code within a GUI application, you can use
|
2014-03-06 23:42:17 +00:00
|
|
|
the simulator:
|
|
|
|
> make simulator
|
2014-03-07 00:16:19 +00:00
|
|
|
Then you can start the simulator by typing ./borgsim(.exe)
|
2013-09-25 14:58:21 +00:00
|
|
|
|
2014-03-06 23:42:17 +00:00
|
|
|
Please keep in mind that the simulator is NOT an emulator. All it does is to
|
2014-03-07 00:16:19 +00:00
|
|
|
compile the source code to an ordinary host application so you can step
|
2014-03-06 23:42:17 +00:00
|
|
|
through your C-Code. The GUI application scans the simulated frame buffer every
|
|
|
|
40ms and draws its contents.
|