eBoard ①⑧⑨
Written for SIA 2017/2018
dancing_dragon.cpp File Reference

a dancing dragon :D More...

#include <eBoard.h>
+ Include dependency graph for dancing_dragon.cpp:

Go to the source code of this file.

Macros

#define EBOARD_DEBUG_MODE   0x0
 who you gonna call? More...
 
#define EBOARD_I2C   0x1
 we need the I2C functionality More...
 
#define EBOARD_LCD   0x1
 we want to use the LCD More...
 
#define HIGHSPEED
 for smooth animations (: It would be possible to disable so many things like EBOARD_DEBUG_MODE but this is an example! More...
 

Functions

int main (void)
 

Variables

PROGMEM const unsigned char bit_one []
 first frame of the animation More...
 
PROGMEM const unsigned char bit_two []
 second frame of the animation More...
 
PROGMEM const unsigned char bit_tre []
 third frame of the animation More...
 
PROGMEM const unsigned char bit_for []
 fourth frame of the animation More...
 
PROGMEM const unsigned char bit_fiv []
 fifth frame of the animation More...
 
PROGMEM const unsigned char bit_six []
 sixth frame of the animation More...
 
PROGMEM const unsigned char bit_sev []
 seventh frame of the animation More...
 
PROGMEM const unsigned char bit_ait []
 eigth frame of the animation More...
 
PROGMEM const unsigned char bit_nin []
 ninth frame of the animation More...
 
PROGMEM const unsigned char bit_ten []
 tenth frame of the animation More...
 
PROGMEM const unsigned char bit_elv []
 eleventh frame of the animation More...
 
const unsigned char * buf [11]
 to enable 'smooth' access (: More...
 
SoccerBoard board
 the board object More...
 
LCD lcd (board)
 the lcd object More...
 

Detailed Description

a dancing dragon :D

Definition in file dancing_dragon.cpp.

Macro Definition Documentation

◆ EBOARD_DEBUG_MODE

#define EBOARD_DEBUG_MODE   0x0

who you gonna call?

Definition at line 5 of file dancing_dragon.cpp.

◆ EBOARD_I2C

#define EBOARD_I2C   0x1

we need the I2C functionality

Definition at line 7 of file dancing_dragon.cpp.

◆ EBOARD_LCD

#define EBOARD_LCD   0x1

we want to use the LCD

Definition at line 9 of file dancing_dragon.cpp.

◆ HIGHSPEED

#define HIGHSPEED

for smooth animations (: It would be possible to disable so many things like EBOARD_DEBUG_MODE but this is an example!

Definition at line 12 of file dancing_dragon.cpp.

Function Documentation

◆ main()

int main ( void  )
aniD.gif

Compiled Size for ARUDINO UNO: 17,664 bytes => 3.0: 15,468 bytes => 3.2: 14,694 bytes
Compiled Size for ARUDINO MEGA: 19,240 bytes => 3.0: 17,062 bytes => 3.2: 15,300 bytes

Definition at line 768 of file dancing_dragon.cpp.

References board, buf, LCD::changeBackground(), LCD::drawBitmap(), lcd, and SoccerBoard::msleep().

769 {
770  byte i;
771  lcd.changeBackground(true);
772  for(;;){
773  for(i = 0; i < 11; i++){
774  lcd.drawBitmap(buf[i], 3, 0, 16, 8);
775  board.msleep(70);
776  }
777  for(i = 9; i > 0; i--) {
778  lcd.drawBitmap(buf[i], 3, 0, 16, 8);
779  board.msleep(70);
780  }
781  }
782 
783  return 0;
784 }
const unsigned char * buf[11]
to enable &#39;smooth&#39; access (:
void msleep(uint16_t t)
Say goodnight!
void changeBackground(bool newBackground=false)
changes the background of the display
SoccerBoard board
the board object
void drawBitmap(const unsigned char *bitmap, byte posX, byte posY, byte hiX, byte hiY)
draws a bitmap representet as an array of bytes
LCD lcd(board)
the lcd object
+ Here is the call graph for this function:

Variable Documentation

◆ bit_ait

PROGMEM const unsigned char bit_ait[]

eigth frame of the animation

Definition at line 485 of file dancing_dragon.cpp.

◆ bit_elv

PROGMEM const unsigned char bit_elv[]

eleventh frame of the animation

Definition at line 686 of file dancing_dragon.cpp.

◆ bit_fiv

PROGMEM const unsigned char bit_fiv[]

fifth frame of the animation

Definition at line 284 of file dancing_dragon.cpp.

◆ bit_for

PROGMEM const unsigned char bit_for[]

fourth frame of the animation

Definition at line 217 of file dancing_dragon.cpp.

◆ bit_nin

PROGMEM const unsigned char bit_nin[]

ninth frame of the animation

Definition at line 552 of file dancing_dragon.cpp.

◆ bit_one

PROGMEM const unsigned char bit_one[]

first frame of the animation

Definition at line 16 of file dancing_dragon.cpp.

◆ bit_sev

PROGMEM const unsigned char bit_sev[]

seventh frame of the animation

Definition at line 418 of file dancing_dragon.cpp.

◆ bit_six

PROGMEM const unsigned char bit_six[]

sixth frame of the animation

Definition at line 351 of file dancing_dragon.cpp.

◆ bit_ten

PROGMEM const unsigned char bit_ten[]

tenth frame of the animation

Definition at line 619 of file dancing_dragon.cpp.

◆ bit_tre

PROGMEM const unsigned char bit_tre[]

third frame of the animation

Definition at line 150 of file dancing_dragon.cpp.

◆ bit_two

PROGMEM const unsigned char bit_two[]

second frame of the animation

Definition at line 83 of file dancing_dragon.cpp.

◆ board

SoccerBoard board

the board object

Definition at line 758 of file dancing_dragon.cpp.

Referenced by main().

◆ buf

const unsigned char* buf[11]
Initial value:
PROGMEM const unsigned char bit_tre[]
third frame of the animation
PROGMEM const unsigned char bit_ait[]
eigth frame of the animation
PROGMEM const unsigned char bit_fiv[]
fifth frame of the animation
PROGMEM const unsigned char bit_sev[]
seventh frame of the animation
PROGMEM const unsigned char bit_two[]
second frame of the animation
PROGMEM const unsigned char bit_ten[]
tenth frame of the animation
PROGMEM const unsigned char bit_elv[]
eleventh frame of the animation
PROGMEM const unsigned char bit_nin[]
ninth frame of the animation
PROGMEM const unsigned char bit_one[]
first frame of the animation
PROGMEM const unsigned char bit_for[]
fourth frame of the animation
PROGMEM const unsigned char bit_six[]
sixth frame of the animation

to enable 'smooth' access (:

Definition at line 754 of file dancing_dragon.cpp.

Referenced by main().

◆ lcd

LCD lcd(board)

the lcd object

Referenced by main().