Compare commits
19 Commits
main
...
feature/20
Author | SHA1 | Date |
---|---|---|
Hendrik Langer | b5b02b439d | 7 years ago |
Hendrik Langer | 79f9727399 | 7 years ago |
Hendrik Langer | d44301b363 | 7 years ago |
Hendrik Langer | 7500a7b56d | 7 years ago |
Christian Kroll | a880b0246c | 8 years ago |
Christian Kroll | 986a86af13 | 8 years ago |
Christian Kroll | 7055d8ac78 | 9 years ago |
Christian Kroll | dc97831e1b | 9 years ago |
Christian Kroll | b3bd047235 | 9 years ago |
Christian Kroll | ef897bd4ef | 9 years ago |
Christian Kroll | dda8f61363 | 9 years ago |
Christian Kroll | d41ada0c45 | 9 years ago |
Christian Kroll | ddf2dff7bd | 11 years ago |
Christian Kroll | 122719d987 | 9 years ago |
Christian Kroll | 6356b9f770 | 9 years ago |
Christian Kroll | 70c7c567a6 | 9 years ago |
Christian Kroll | cbc716683f | 9 years ago |
Christian Kroll | 21dd61011b | 9 years ago |
Stefan Kinzel | 3efdbbe28b | 10 years ago |
33 changed files with 931 additions and 142 deletions
@ -0,0 +1,161 @@ |
|||||
|
# |
||||
|
# Automatically generated by make menuconfig: don't edit |
||||
|
# |
||||
|
|
||||
|
# |
||||
|
# General Setup |
||||
|
# |
||||
|
MCU=atmega32 |
||||
|
FREQ=16000000 |
||||
|
|
||||
|
# |
||||
|
# Borg Hardware |
||||
|
# |
||||
|
NUM_ROWS=10 |
||||
|
NUM_COLS=11 |
||||
|
NUMPLANE=3 |
||||
|
BORG_HW=HW_BORG_16 |
||||
|
|
||||
|
# |
||||
|
# Borg16 port setup |
||||
|
# |
||||
|
# HIGH_CONTRAST is not set |
||||
|
# UART_SUPPORT is not set |
||||
|
UART_BAUDRATE_SETTING=19200 |
||||
|
COLPORT1=PORTC |
||||
|
COLPORT2=PORTA |
||||
|
ROWPORT=PORTD |
||||
|
PIN_MCLR=4 |
||||
|
PIN_CLK=6 |
||||
|
PIN_DATA=7 |
||||
|
# REVERSE_COLS is not set |
||||
|
# INVERT_ROWS is not set |
||||
|
SWAP_ROWS_COLS=y |
||||
|
# INTERLACED_ROWS is not set |
||||
|
# INTERLACED_COLS is not set |
||||
|
|
||||
|
# |
||||
|
# Features |
||||
|
# |
||||
|
RANDOM_SUPPORT=y |
||||
|
# LAP_TIME_EXTENSION is not set |
||||
|
# SCROLLTEXT_SUPPORT is not set |
||||
|
# RFM12_SUPPORT is not set |
||||
|
DCF77_SUPPORT=y |
||||
|
DCF_INTERRUPT=0 |
||||
|
|
||||
|
# |
||||
|
# Joystick Support |
||||
|
# |
||||
|
JOYSTICK_SUPPORT=y |
||||
|
JOYSTICK_CHOICE=JOY_PARALLEL |
||||
|
|
||||
|
# |
||||
|
# Joystick Settings |
||||
|
# |
||||
|
PARALLEL_JOYSTICK_SUPPORT=y |
||||
|
JOYSTICK_PIN_UP=PINB |
||||
|
JOYSTICK_BIT_UP=0 |
||||
|
JOYSTICK_PIN_DOWN=PINB |
||||
|
JOYSTICK_BIT_DOWN=1 |
||||
|
JOYSTICK_PIN_LEFT=PINB |
||||
|
JOYSTICK_BIT_LEFT=2 |
||||
|
JOYSTICK_PIN_RIGHT=PINB |
||||
|
JOYSTICK_BIT_RIGHT=3 |
||||
|
JOYSTICK_PIN_FIRE=PIND |
||||
|
JOYSTICK_BIT_FIRE=3 |
||||
|
# CAN_SUPPORT is not set |
||||
|
# MENU_SUPPORT is not set |
||||
|
|
||||
|
# |
||||
|
# Games |
||||
|
# |
||||
|
GAME_TETRIS_CORE=y |
||||
|
GAME_TETRIS=y |
||||
|
# GAME_BASTET is not set |
||||
|
# GAME_TETRIS_FP is not set |
||||
|
GAME_SPACE_INVADERS=y |
||||
|
GAME_SNAKE=y |
||||
|
# SNAKE_POV_CONTROL is not set |
||||
|
SNAKE_GAME_DELAY=200 |
||||
|
GAME_BREAKOUT=y |
||||
|
# GAME_KART is not set |
||||
|
|
||||
|
# |
||||
|
# Animations |
||||
|
# |
||||
|
# ANIMATION_SCROLLTEXT is not set |
||||
|
ANIMATION_SPIRAL=y |
||||
|
SPIRAL_DELAY=5 |
||||
|
ANIMATION_JOERN1=y |
||||
|
# ANIMATION_SNAKE is not set |
||||
|
SNAKE_ANIM_DELAY=100 |
||||
|
SNAKE_TERMINATION_DELAY=60 |
||||
|
SNAKE_MAX_LENGTH=64 |
||||
|
SNAKE_MAX_APPLES=10 |
||||
|
# ANIMATION_CHECKERBOARD is not set |
||||
|
# ANIMATION_FIRE is not set |
||||
|
FIRE_S=30 |
||||
|
FIRE_N=5 |
||||
|
FIRE_DIV=44 |
||||
|
FIRE_DELAY=50 |
||||
|
FIRE_CYCLES=800 |
||||
|
# ANIMATION_MATRIX is not set |
||||
|
MATRIX_STREAMER_NUM=30 |
||||
|
MATRIX_CYCLES=500 |
||||
|
MATRIX_DELAY=60 |
||||
|
# ANIMATION_RANDOM_BRIGHT is not set |
||||
|
# ANIMATION_STONEFLY is not set |
||||
|
# ANIMATION_FLYINGDOTS is not set |
||||
|
# ANIMATION_GAMEOFLIFE is not set |
||||
|
GOL_DELAY=100 |
||||
|
GOL_CYCLES=360 |
||||
|
# ANIMATION_BREAKOUT is not set |
||||
|
# ANIMATION_MHERWEG is not set |
||||
|
# ANIMATION_MOIRE is not set |
||||
|
# ANIMATION_LTN_ANT is not set |
||||
|
# ANIMATION_TIME is not set |
||||
|
TIME_MASTER_ADDR=0x00 |
||||
|
TIME_UPDATE_TIMEOUT=23 |
||||
|
ANIMATION_CLOCK=y |
||||
|
# ANIMATION_BMSCROLLER is not set |
||||
|
# ANIMATION_LABORLOGO is not set |
||||
|
# ANIMATION_AMPHIBIAN is not set |
||||
|
# ANIMATION_LOGO_OOS is not set |
||||
|
# ANIMATION_FAIRYDUST is not set |
||||
|
# ANIMATION_THISISNOTDETROIT is not set |
||||
|
|
||||
|
# |
||||
|
# Fixed-point math patterns |
||||
|
# |
||||
|
# ANIMATION_PLASMA is not set |
||||
|
FP_PLASMA_DELAY=1 |
||||
|
# ANIMATION_PSYCHEDELIC is not set |
||||
|
FP_PSYCHO_DELAY=15 |
||||
|
# ANIMATION_SURFACE_WAVE is not set |
||||
|
FP_SURFACE_DELAY=15 |
||||
|
# ANIMATION_BLACKHOLE is not set |
||||
|
# ANIMATION_DNA is not set |
||||
|
# ANIMATION_SQUARES is not set |
||||
|
# ANIMATION_TESTS is not set |
||||
|
# ANIMATION_OFF is not set |
||||
|
|
||||
|
# |
||||
|
# small Animations |
||||
|
# |
||||
|
# SMALLANIMATION_ROWWALK is not set |
||||
|
SMALLANIMATION_ROWWALK_SPEED=50 |
||||
|
SMALLANIMATION_ROWWALK_COUNT=10 |
||||
|
# SMALLANIMATION_COLWALK is not set |
||||
|
SMALLANIMATION_COLWALK_SPEED=50 |
||||
|
SMALLANIMATION_COLWALK_COUNT=10 |
||||
|
# SMALLANIMATION_ROWBOUNCE is not set |
||||
|
SMALLANIMATION_ROWBOUNCE_SPEED=50 |
||||
|
SMALLANIMATION_ROWBOUNCE_COUNT=10 |
||||
|
# SMALLANIMATION_COLBOUNCE is not set |
||||
|
SMALLANIMATION_COLBOUNCE_SPEED=50 |
||||
|
SMALLANIMATION_COLBOUNCE_COUNT=10 |
||||
|
|
||||
|
# |
||||
|
# User Animations |
||||
|
# |
@ -0,0 +1,162 @@ |
|||||
|
# |
||||
|
# Automatically generated by make menuconfig: don't edit |
||||
|
# |
||||
|
|
||||
|
# |
||||
|
# General Setup |
||||
|
# |
||||
|
MCU=atmega644p |
||||
|
FREQ=16000000 |
||||
|
|
||||
|
# |
||||
|
# Borg Hardware |
||||
|
# |
||||
|
NUM_ROWS=16 |
||||
|
NUM_COLS=16 |
||||
|
NUMPLANE=3 |
||||
|
BORG_HW=HW_BORG_16 |
||||
|
|
||||
|
# |
||||
|
# Borg16 port setup |
||||
|
# |
||||
|
HIGH_CONTRAST=y |
||||
|
UART_SUPPORT=y |
||||
|
UART_BAUDRATE_SETTING=19200 |
||||
|
COLPORT1=PORTC |
||||
|
COLPORT2=PORTA |
||||
|
ROWPORT=PORTD |
||||
|
PIN_MCLR=4 |
||||
|
PIN_CLK=6 |
||||
|
PIN_DATA=7 |
||||
|
REVERSE_COLS=y |
||||
|
# INVERT_ROWS is not set |
||||
|
# INTERLACED_ROWS is not set |
||||
|
# INTERLACED_COLS is not set |
||||
|
|
||||
|
# |
||||
|
# Features |
||||
|
# |
||||
|
RANDOM_SUPPORT=y |
||||
|
# LAP_TIME_EXTENSION is not set |
||||
|
SCROLLTEXT_SUPPORT=y |
||||
|
SCROLLTEXT_FONT=FONT_ARIAL8 |
||||
|
SCROLLTEXT_BUFFER_SIZE=128 |
||||
|
SCROLL_X_SPEED=20 |
||||
|
SCROLL_Y_SPEED=20 |
||||
|
SCROLLTEXT_TEXT="</#www.das-labor.org" |
||||
|
# RFM12_SUPPORT is not set |
||||
|
|
||||
|
# |
||||
|
# Joystick Support |
||||
|
# |
||||
|
JOYSTICK_SUPPORT=y |
||||
|
JOYSTICK_CHOICE=JOY_PARALLEL |
||||
|
|
||||
|
# |
||||
|
# Joystick Settings |
||||
|
# |
||||
|
PARALLEL_JOYSTICK_SUPPORT=y |
||||
|
JOYSTICK_PIN_UP=PINB |
||||
|
JOYSTICK_BIT_UP=0 |
||||
|
JOYSTICK_PIN_DOWN=PINB |
||||
|
JOYSTICK_BIT_DOWN=1 |
||||
|
JOYSTICK_PIN_LEFT=PINB |
||||
|
JOYSTICK_BIT_LEFT=2 |
||||
|
JOYSTICK_PIN_RIGHT=PINB |
||||
|
JOYSTICK_BIT_RIGHT=3 |
||||
|
JOYSTICK_PIN_FIRE=PIND |
||||
|
JOYSTICK_BIT_FIRE=3 |
||||
|
# CAN_SUPPORT is not set |
||||
|
MENU_SUPPORT=y |
||||
|
|
||||
|
# |
||||
|
# Games |
||||
|
# |
||||
|
GAME_TETRIS_CORE=y |
||||
|
GAME_TETRIS=y |
||||
|
GAME_BASTET=y |
||||
|
GAME_TETRIS_FP=y |
||||
|
GAME_SPACE_INVADERS=y |
||||
|
GAME_SNAKE=y |
||||
|
# SNAKE_POV_CONTROL is not set |
||||
|
SNAKE_GAME_DELAY=200 |
||||
|
GAME_BREAKOUT=y |
||||
|
GAME_KART=y |
||||
|
|
||||
|
# |
||||
|
# Animations |
||||
|
# |
||||
|
ANIMATION_SCROLLTEXT=y |
||||
|
ANIMATION_SPIRAL=y |
||||
|
SPIRAL_DELAY=5 |
||||
|
ANIMATION_JOERN1=y |
||||
|
ANIMATION_SNAKE=y |
||||
|
SNAKE_ANIM_DELAY=100 |
||||
|
SNAKE_TERMINATION_DELAY=60 |
||||
|
SNAKE_MAX_LENGTH=64 |
||||
|
SNAKE_MAX_APPLES=10 |
||||
|
ANIMATION_CHECKERBOARD=y |
||||
|
ANIMATION_FIRE=y |
||||
|
FIRE_S=30 |
||||
|
FIRE_N=5 |
||||
|
FIRE_DIV=44 |
||||
|
FIRE_DELAY=50 |
||||
|
FIRE_CYCLES=800 |
||||
|
ANIMATION_MATRIX=y |
||||
|
MATRIX_STREAMER_NUM=30 |
||||
|
MATRIX_CYCLES=500 |
||||
|
MATRIX_DELAY=60 |
||||
|
ANIMATION_RANDOM_BRIGHT=y |
||||
|
ANIMATION_STONEFLY=y |
||||
|
ANIMATION_FLYINGDOTS=y |
||||
|
ANIMATION_GAMEOFLIFE=y |
||||
|
GOL_DELAY=100 |
||||
|
GOL_CYCLES=360 |
||||
|
ANIMATION_BREAKOUT=y |
||||
|
# ANIMATION_MHERWEG is not set |
||||
|
ANIMATION_MOIRE=y |
||||
|
ANIMATION_LTN_ANT=y |
||||
|
# ANIMATION_TIME is not set |
||||
|
TIME_MASTER_ADDR=0x00 |
||||
|
TIME_UPDATE_TIMEOUT=23 |
||||
|
ANIMATION_BMSCROLLER=y |
||||
|
ANIMATION_LABORLOGO=y |
||||
|
ANIMATION_AMPHIBIAN=y |
||||
|
ANIMATION_LOGO_OOS=y |
||||
|
ANIMATION_FAIRYDUST=y |
||||
|
ANIMATION_THISISNOTDETROIT=y |
||||
|
|
||||
|
# |
||||
|
# Fixed-point math patterns |
||||
|
# |
||||
|
ANIMATION_PLASMA=y |
||||
|
FP_PLASMA_DELAY=1 |
||||
|
ANIMATION_PSYCHEDELIC=y |
||||
|
FP_PSYCHO_DELAY=15 |
||||
|
ANIMATION_SURFACE_WAVE=y |
||||
|
FP_SURFACE_DELAY=15 |
||||
|
ANIMATION_BLACKHOLE=y |
||||
|
ANIMATION_DNA=y |
||||
|
ANIMATION_SQUARES=y |
||||
|
ANIMATION_TESTS=y |
||||
|
ANIMATION_OFF=y |
||||
|
|
||||
|
# |
||||
|
# small Animations |
||||
|
# |
||||
|
# SMALLANIMATION_ROWWALK is not set |
||||
|
SMALLANIMATION_ROWWALK_SPEED=50 |
||||
|
SMALLANIMATION_ROWWALK_COUNT=10 |
||||
|
# SMALLANIMATION_COLWALK is not set |
||||
|
SMALLANIMATION_COLWALK_SPEED=50 |
||||
|
SMALLANIMATION_COLWALK_COUNT=10 |
||||
|
# SMALLANIMATION_ROWBOUNCE is not set |
||||
|
SMALLANIMATION_ROWBOUNCE_SPEED=50 |
||||
|
SMALLANIMATION_ROWBOUNCE_COUNT=10 |
||||
|
# SMALLANIMATION_COLBOUNCE is not set |
||||
|
SMALLANIMATION_COLBOUNCE_SPEED=50 |
||||
|
SMALLANIMATION_COLBOUNCE_COUNT=10 |
||||
|
|
||||
|
# |
||||
|
# User Animations |
||||
|
# |
@ -0,0 +1,141 @@ |
|||||
|
#include <stdint.h> |
||||
|
#include <assert.h> |
||||
|
|
||||
|
#include "../../compat/pgmspace.h" |
||||
|
#include "bitmapscroller.h" |
||||
|
#include "thisisnotdetroit.h" |
||||
|
|
||||
|
|
||||
|
static uint8_t const athisIsNotDetroitBitmap[2][55][8] PROGMEM = |
||||
|
{{{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, |
||||
|
{0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x80}, |
||||
|
{0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x60}, |
||||
|
{0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x20, 0x64}, |
||||
|
{0x00, 0x00, 0x00, 0x01, 0x01, 0x18, 0x03, 0x24}, |
||||
|
{0x00, 0x00, 0x00, 0x00, 0x00, 0x8e, 0xe1, 0xd4}, |
||||
|
{0x00, 0x00, 0x00, 0x00, 0x01, 0x5f, 0xeb, 0x22}, |
||||
|
{0x00, 0x00, 0x00, 0x01, 0x11, 0xfe, 0x10, 0x00}, |
||||
|
{0x00, 0x00, 0x06, 0x8f, 0xa5, 0x18, 0x00, 0x00}, |
||||
|
{0x00, 0x00, 0x3f, 0xf0, 0xc0, 0x00, 0x00, 0x01}, |
||||
|
{0x01, 0x82, 0x7f, 0xfa, 0x00, 0x00, 0x00, 0x00}, |
||||
|
{0x03, 0xff, 0xff, 0x40, 0x00, 0x00, 0x00, 0x00}, |
||||
|
{0x0f, 0xff, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00}, |
||||
|
{0x1f, 0xf6, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00}, |
||||
|
{0x09, 0xc0, 0x00, 0x37, 0xc0, 0x00, 0x00, 0x00}, |
||||
|
{0x38, 0x00, 0x0a, 0xe7, 0x40, 0x00, 0x00, 0x00}, |
||||
|
{0x38, 0x01, 0xce, 0xff, 0x00, 0x00, 0x00, 0x00}, |
||||
|
{0x3c, 0xbe, 0xce, 0xf7, 0xc0, 0x00, 0x00, 0x00}, |
||||
|
{0x3c, 0xfd, 0xce, 0xf3, 0xe0, 0x00, 0x00, 0x00}, |
||||
|
{0x1c, 0xf8, 0xfe, 0xf0, 0x60, 0x00, 0x00, 0x00}, |
||||
|
{0x04, 0x70, 0xfe, 0xf2, 0xe0, 0x00, 0x00, 0x00}, |
||||
|
{0x00, 0x70, 0xee, 0xff, 0xe0, 0x00, 0x00, 0x00}, |
||||
|
{0x00, 0x70, 0xce, 0xf0, 0x80, 0x06, 0xc0, 0x00}, |
||||
|
{0x00, 0x71, 0xce, 0x60, 0x02, 0x1f, 0x80, 0x00}, |
||||
|
{0x00, 0x71, 0xc0, 0x00, 0x1f, 0xdf, 0x40, 0x00}, |
||||
|
{0x00, 0x70, 0x00, 0x03, 0xbf, 0xd6, 0x00, 0x00}, |
||||
|
{0x00, 0x00, 0x00, 0xf3, 0x3d, 0xc6, 0x00, 0x00}, |
||||
|
{0x00, 0x01, 0x40, 0xfb, 0xf1, 0xe6, 0x00, 0x00}, |
||||
|
{0x00, 0x21, 0xf0, 0xfb, 0xb8, 0xc6, 0x00, 0x00}, |
||||
|
{0x00, 0x77, 0x80, 0xfb, 0xf0, 0xe6, 0x00, 0x00}, |
||||
|
{0x00, 0x73, 0x80, 0xef, 0xbf, 0xc6, 0x00, 0x00}, |
||||
|
{0x00, 0x77, 0xe0, 0xef, 0xbf, 0x84, 0x00, 0x0c}, |
||||
|
{0x00, 0x71, 0xf0, 0xef, 0x8e, 0x00, 0x00, 0xf8}, |
||||
|
{0x00, 0x70, 0x70, 0xe7, 0x80, 0x00, 0x1b, 0xfc}, |
||||
|
{0x00, 0x73, 0xf0, 0xc0, 0x00, 0x0f, 0x1b, 0xf0}, |
||||
|
{0x00, 0x73, 0xe0, 0x00, 0x0c, 0x3f, 0x98, 0xf0}, |
||||
|
{0x00, 0x70, 0x40, 0x03, 0x7f, 0x7b, 0x98, 0xf0}, |
||||
|
{0x00, 0x60, 0x00, 0x5f, 0x7e, 0x73, 0xd8, 0xf0}, |
||||
|
{0x00, 0x00, 0x1f, 0x7f, 0x67, 0xf1, 0xd8, 0xf0}, |
||||
|
{0x00, 0x0e, 0x1f, 0x7c, 0x77, 0xe3, 0x98, 0xf0}, |
||||
|
{0x00, 0x3f, 0x1e, 0x1c, 0x7c, 0xf7, 0x9c, 0xe0}, |
||||
|
{0x00, 0x7f, 0xdb, 0x1c, 0x6e, 0x7f, 0x1c, 0x00}, |
||||
|
{0x00, 0x71, 0xdf, 0x1c, 0x7f, 0x3f, 0x00, 0x00}, |
||||
|
{0x00, 0x71, 0xdb, 0x1c, 0x67, 0x80, 0x00, 0x00}, |
||||
|
{0x00, 0x71, 0xdd, 0x1c, 0x50, 0x00, 0x00, 0x00}, |
||||
|
{0x00, 0x73, 0xdf, 0x18, 0x00, 0x00, 0x00, 0x00}, |
||||
|
{0x00, 0x7f, 0x1f, 0x80, 0x00, 0x00, 0xfc, 0x00}, |
||||
|
{0x00, 0x7e, 0x10, 0x00, 0x00, 0x7f, 0xf0, 0x00}, |
||||
|
{0x00, 0x68, 0x00, 0x00, 0x2f, 0xff, 0x90, 0x00}, |
||||
|
{0x00, 0x00, 0x00, 0x03, 0xfe, 0xa3, 0x00, 0x00}, |
||||
|
{0x00, 0x00, 0x00, 0x1f, 0xfd, 0x00, 0x00, 0x00}, |
||||
|
{0x00, 0x3c, 0x00, 0x0f, 0xa0, 0x00, 0x00, 0x00}, |
||||
|
{0x00, 0x7c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, |
||||
|
{0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, |
||||
|
{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}}, |
||||
|
|
||||
|
{{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, |
||||
|
{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, |
||||
|
{0x00, 0x00, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00}, |
||||
|
{0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x60}, |
||||
|
{0x00, 0x00, 0x00, 0x00, 0x00, 0x07, 0x00, 0x08}, |
||||
|
{0x00, 0x00, 0x00, 0x00, 0x00, 0x3f, 0x80, 0x2a}, |
||||
|
{0x00, 0x00, 0x00, 0x02, 0x40, 0x3f, 0xf0, 0x00}, |
||||
|
{0x00, 0x00, 0x00, 0x00, 0x80, 0x7f, 0xc0, 0x00}, |
||||
|
{0x00, 0x00, 0x01, 0x41, 0xd7, 0xe0, 0x00, 0x02}, |
||||
|
{0x00, 0x00, 0x1f, 0xff, 0x80, 0x00, 0x00, 0x00}, |
||||
|
{0x00, 0x7d, 0xff, 0xfc, 0x00, 0x00, 0x00, 0x00}, |
||||
|
{0x03, 0xff, 0xff, 0x80, 0x00, 0x00, 0x00, 0x00}, |
||||
|
{0x1f, 0xff, 0xc0, 0x00, 0x00, 0x00, 0x00, 0x00}, |
||||
|
{0x0f, 0xf8, 0x00, 0x01, 0xc0, 0x00, 0x00, 0x00}, |
||||
|
{0x3e, 0x00, 0x00, 0x03, 0xe0, 0x00, 0x00, 0x00}, |
||||
|
{0x38, 0x00, 0x06, 0x77, 0xc0, 0x00, 0x00, 0x00}, |
||||
|
{0x18, 0x00, 0xce, 0x66, 0x00, 0x00, 0x00, 0x00}, |
||||
|
{0x18, 0x7d, 0xce, 0x67, 0xc0, 0x00, 0x00, 0x00}, |
||||
|
{0x1d, 0xfd, 0xce, 0x67, 0xe0, 0x00, 0x00, 0x00}, |
||||
|
{0x0d, 0xf1, 0xfe, 0x60, 0xe0, 0x00, 0x00, 0x00}, |
||||
|
{0x0c, 0x31, 0xfe, 0x67, 0xe0, 0x00, 0x00, 0x00}, |
||||
|
{0x00, 0x31, 0xce, 0x67, 0xc0, 0x00, 0x00, 0x00}, |
||||
|
{0x00, 0x31, 0xce, 0x67, 0x00, 0x01, 0xc0, 0x00}, |
||||
|
{0x00, 0x31, 0xce, 0x00, 0x00, 0x1f, 0xc0, 0x00}, |
||||
|
{0x00, 0x31, 0xc0, 0x00, 0x0f, 0x9f, 0x80, 0x00}, |
||||
|
{0x00, 0x30, 0x00, 0x03, 0x1f, 0xc7, 0x00, 0x00}, |
||||
|
{0x00, 0x00, 0x00, 0x73, 0xb9, 0xe7, 0x00, 0x00}, |
||||
|
{0x00, 0x00, 0xe0, 0x73, 0x38, 0xe7, 0x00, 0x00}, |
||||
|
{0x00, 0x13, 0xe0, 0x7b, 0x70, 0xe7, 0x00, 0x00}, |
||||
|
{0x00, 0x33, 0xe0, 0x7f, 0x39, 0xc7, 0x00, 0x00}, |
||||
|
{0x00, 0x37, 0x00, 0x7f, 0x3f, 0xc7, 0x00, 0x00}, |
||||
|
{0x00, 0x33, 0xe0, 0x6f, 0x3f, 0x80, 0x00, 0x00}, |
||||
|
{0x00, 0x33, 0xf0, 0x67, 0x1f, 0x00, 0x01, 0xfc}, |
||||
|
{0x00, 0x30, 0x70, 0x67, 0x00, 0x00, 0x1d, 0xf8}, |
||||
|
{0x00, 0x33, 0xf0, 0x60, 0x00, 0x1f, 0x1d, 0xe0}, |
||||
|
{0x00, 0x37, 0xe0, 0x00, 0x00, 0x3f, 0x9c, 0x60}, |
||||
|
{0x00, 0x33, 0x80, 0x00, 0x7e, 0x7f, 0xdc, 0x60}, |
||||
|
{0x00, 0x00, 0x00, 0x3f, 0x7f, 0x71, 0xdc, 0x60}, |
||||
|
{0x00, 0x00, 0x0f, 0x7f, 0x77, 0x61, 0xdc, 0x60}, |
||||
|
{0x00, 0x00, 0x1f, 0x7c, 0x7e, 0x71, 0xdc, 0x60}, |
||||
|
{0x00, 0x3f, 0x9c, 0x1c, 0x7e, 0x7b, 0x98, 0x60}, |
||||
|
{0x00, 0x3f, 0x9f, 0x1c, 0x7e, 0x7f, 0x98, 0x00}, |
||||
|
{0x00, 0x33, 0xdf, 0x1c, 0x67, 0x3e, 0x00, 0x00}, |
||||
|
{0x00, 0x31, 0xdc, 0x1c, 0x77, 0x00, 0x00, 0x00}, |
||||
|
{0x00, 0x31, 0xdb, 0x9c, 0x60, 0x00, 0x00, 0x00}, |
||||
|
{0x00, 0x33, 0x9f, 0x9c, 0x00, 0x00, 0x00, 0x00}, |
||||
|
{0x00, 0x3f, 0x9f, 0x00, 0x00, 0x01, 0xf8, 0x00}, |
||||
|
{0x00, 0x3f, 0x00, 0x00, 0x00, 0x1f, 0xf8, 0x00}, |
||||
|
{0x00, 0x30, 0x00, 0x00, 0x1f, 0xff, 0xe0, 0x00}, |
||||
|
{0x00, 0x00, 0x00, 0x0f, 0xff, 0x5c, 0x00, 0x00}, |
||||
|
{0x00, 0x00, 0x00, 0x1f, 0xf8, 0x00, 0x00, 0x00}, |
||||
|
{0x00, 0x1e, 0x00, 0x07, 0xc0, 0x00, 0x00, 0x00}, |
||||
|
{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, |
||||
|
{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, |
||||
|
{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}}}; |
||||
|
|
||||
|
|
||||
|
static uint8_t logo_thisIsNotDetroit_getChunk(unsigned char const nBitPlane, |
||||
|
unsigned char const nChunkX, |
||||
|
unsigned char const nChunkY, |
||||
|
unsigned int const nFrame) |
||||
|
{ |
||||
|
assert(nBitPlane < 2); |
||||
|
assert(nChunkX < 8); |
||||
|
assert(nChunkY < 55); |
||||
|
|
||||
|
return pgm_read_byte(&athisIsNotDetroitBitmap[nBitPlane][nChunkY][nChunkX]); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
void logo_thisIsNotDetroit() |
||||
|
{ |
||||
|
// width 64, height 55, 2 bitplanes (4 colors), 600 frames à 75ms
|
||||
|
// frame change and viewport movement after every cyle (both dividers are 1)
|
||||
|
bitmap_scroll(64, 55, 2, 600, 75, 1, 1, logo_thisIsNotDetroit_getChunk); |
||||
|
} |
@ -0,0 +1,6 @@ |
|||||
|
#ifndef THISISNOTDETROIT_H_ |
||||
|
#define THISISNOTDETROIT_H_ |
||||
|
|
||||
|
void logo_thisIsNotDetroit(); |
||||
|
|
||||
|
#endif /* THISISNOTDETROIT_H_ */ |
@ -0,0 +1,25 @@ |
|||||
|
# This file eases the integration of your personal animations which are not
|
||||
|
# meant to be included in the official Borgware-2D repository.
|
||||
|
#
|
||||
|
# Just add your own source files to the SRC variable (checking for options
|
||||
|
# introduced in your config.in file) as shown in the commented samples.
|
||||
|
|
||||
|
MAKETOPDIR = ../.. |
||||
|
|
||||
|
TARGET = libuser.a |
||||
|
|
||||
|
include $(MAKETOPDIR)/defaults.mk |
||||
|
|
||||
|
|
||||
|
# ifeq ($(ANIMATION_MY_SIMPLE_ANIM),y)
|
||||
|
# SRC += my_simple_anim.c
|
||||
|
# endif
|
||||
|
|
||||
|
# ifeq ($(ANIMATION_MY_COMPLEX_ANIM),y)
|
||||
|
# SRC += my_complex_anim.c
|
||||
|
# endif
|
||||
|
|
||||
|
|
||||
|
include $(MAKETOPDIR)/rules.mk |
||||
|
|
||||
|
include $(MAKETOPDIR)/depend.mk |
@ -0,0 +1,18 @@ |
|||||
|
# This file eases the integration of your personal animations which are not |
||||
|
# meant to be included in the official Borgware-2D repository. |
||||
|
# |
||||
|
# Just add configurations options for your animations here as shown in the |
||||
|
# commented samples. |
||||
|
|
||||
|
mainmenu_option next_comment |
||||
|
comment "User Animations" |
||||
|
comment "Insert config options for your own animations here!" |
||||
|
|
||||
|
# bool "A simple anim" ANIMATION_MY_SIMPLE_ANIM $RANDOM_SUPPORT |
||||
|
|
||||
|
# dep_bool_menu "A complex anim" ANIMATION_MY_COMPLEX_ANIM $RANDOM_SUPPORT |
||||
|
# int "Sample integer config value" MY_SAMPLE_INT 100 |
||||
|
# bool "Sample boolean config value" MY_SAMPLE_BOOL y |
||||
|
# endmenu |
||||
|
|
||||
|
endmenu |
@ -0,0 +1,22 @@ |
|||||
|
/* This file eases the integration of your personal animations which are not
|
||||
|
meant to be included in the official Borgware-2D repository. |
||||
|
|
||||
|
It is inserted at the middle of the big switch/case block of the |
||||
|
src/display_loop.c file. Please make sure that you use a mode number |
||||
|
200<=n<=252 to avoid conflicts with newer upstream animations. |
||||
|
|
||||
|
Just add your case blocks (guarded by the config options you introduced in |
||||
|
config.in) as shown in the commented samples. */ |
||||
|
|
||||
|
// #ifdef ANIMATION_MY_SIMPLE_ANIM
|
||||
|
// case 200:
|
||||
|
// my_simple_animation();
|
||||
|
// break;
|
||||
|
// #endif
|
||||
|
|
||||
|
// #ifdef ANIMATION_MY_COMPLEX_ANIM
|
||||
|
// case 201:
|
||||
|
// my_complex_animation(MY_SAMPLE_INT, MY_SAMPLE_BOOL);
|
||||
|
// break;
|
||||
|
// #endif
|
||||
|
|
@ -0,0 +1,16 @@ |
|||||
|
#ifndef USER_LOOP_H_ |
||||
|
#define USER_LOOP_H_ |
||||
|
|
||||
|
/* This file eases the integration of your personal animations which are not
|
||||
|
meant to be included in the official Borgware-2D repository. |
||||
|
|
||||
|
It is inserted at the beginning of the src/display_loop.c file. |
||||
|
|
||||
|
Just add your header #include directives as shown in the commented |
||||
|
samples. */ |
||||
|
|
||||
|
// #include "my_simple_animation.h"
|
||||
|
|
||||
|
// #include "my_complex_animation.h"
|
||||
|
|
||||
|
#endif // USER_LOOP_H_
|
Loading…
Reference in new issue