کد:
Arduino: 1.6.8 (Linux), Board: "Arduino Nano, ATmega328"
Build options changed, rebuilding all
In file included from /home/hamed/Desktop/Rocket/Rocket.ino:13:0:
/home/hamed/arduino-1.6.8/libraries/ks0108/ks0108.h:32:17: error: conflicting declaration 'typedef uint8_t boolean'
typedef uint8_t boolean;
^
In file included from sketch/Rocket.ino.cpp:1:0:
/home/hamed/arduino-1.6.8/hardware/arduino/avr/cores/arduino/Arduino.h:117:14: error: 'boolean' has a previous declaration as 'typedef bool boolean'
typedef bool boolean;
^
In file included from /home/hamed/arduino-1.6.8/hardware/arduino/avr/cores/arduino/Arduino.h:28:0,
from sketch/Rocket.ino.cpp:1:
/home/hamed/arduino-1.6.8/libraries/ks0108/SystemFont5x7.h:41:28: error: variable 'System5x7' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
static uint8_t System5x7[] PROGMEM = {
^
bitmaps.h:4: error: variable 'player' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
static uint8_t player[] PROGMEM = {
^
bitmaps.h:10: error: variable 'gameover' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
static uint8_t gameover[] PROGMEM = {
^
bitmaps.h:60: error: variable 'startup' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
static uint8_t startup[] PROGMEM = {
^
bitmaps.h:130: error: variable 'ast1' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
static uint8_t ast1[] PROGMEM = {
^
bitmaps.h:136: error: variable 'ast2' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
static uint8_t ast2[] PROGMEM = {
^
bitmaps.h:142: error: variable 'ast3' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
static uint8_t ast3[] PROGMEM = {
^
bitmaps.h:149: error: variable 'heart' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
static uint8_t heart [] PROGMEM = {
^
bitmaps.h:156: error: variable 'bonus' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
static uint8_t bonus[] PROGMEM = {
^
bitmaps.h:171: error: variable 'rocks' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
static uint8_t rocks[9][11] PROGMEM = {
^
bitmaps.h:232: error: variable 'ex1' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
static uint8_t ex1 [] PROGMEM = {
^
bitmaps.h:239: error: variable 'ex2' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
static uint8_t ex2 [] PROGMEM = {
^
bitmaps.h:246: error: variable 'ex3' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
static uint8_t ex3 [] PROGMEM = {
^
/home/hamed/Desktop/Rocket/Rocket.ino:83:33: warning: narrowing conversion of 'random(0l, 56l)' from 'long int' to 'char' inside { } [-Wnarrowing]
{ROCK2, 119, random(0, 56), random(25, 75)} ,
^
/home/hamed/Desktop/Rocket/Rocket.ino:83:49: warning: narrowing conversion of 'random(25l, 75l)' from 'long int' to 'char' inside { } [-Wnarrowing]
{ROCK2, 119, random(0, 56), random(25, 75)} ,
^
/home/hamed/Desktop/Rocket/Rocket.ino:84:33: warning: narrowing conversion of 'random(0l, 56l)' from 'long int' to 'char' inside { } [-Wnarrowing]
{ROCK5, 119, random(0, 56), random(25, 75)} ,
^
/home/hamed/Desktop/Rocket/Rocket.ino:84:49: warning: narrowing conversion of 'random(25l, 75l)' from 'long int' to 'char' inside { } [-Wnarrowing]
{ROCK5, 119, random(0, 56), random(25, 75)} ,
^
/home/hamed/Desktop/Rocket/Rocket.ino:85:33: warning: narrowing conversion of 'random(0l, 56l)' from 'long int' to 'char' inside { } [-Wnarrowing]
{ROCK8, 119, random(0, 56), random(25, 75)} ,
^
/home/hamed/Desktop/Rocket/Rocket.ino:85:49: warning: narrowing conversion of 'random(25l, 75l)' from 'long int' to 'char' inside { } [-Wnarrowing]
{ROCK8, 119, random(0, 56), random(25, 75)} ,
^
/home/hamed/Desktop/Rocket/Rocket.ino:86:33: warning: narrowing conversion of 'random(0l, 56l)' from 'long int' to 'char' inside { } [-Wnarrowing]
{ROCK1, 119, random(0, 56), random(25, 75)} ,
^
/home/hamed/Desktop/Rocket/Rocket.ino:86:49: warning: narrowing conversion of 'random(25l, 75l)' from 'long int' to 'char' inside { } [-Wnarrowing]
{ROCK1, 119, random(0, 56), random(25, 75)} ,
^ ^
/home/hamed/Desktop/Rocket/Rocket.ino:280:46: warning: narrowing conversion of 'random(25l, 75l)' from 'long int' to 'char' inside { } [-Wnarrowing]
{ROCK3, 119, random(0, 56), random(25, 75)} ,
^
/home/hamed/Desktop/Rocket/Rocket.ino:281:30: warning: narrowing conversion of 'random(0l, 56l)' from 'long int' to 'char' inside { } [-Wnarrowing]
{BONUS, 119, random(0, 56), random(25, 75)}
^
/home/hamed/Desktop/Rocket/Rocket.ino:281:46: warning: narrowing conversion of 'random(25l, 75l)' from 'long int' to 'char' inside { } [-Wnarrowing]
{BONUS, 119, random(0, 56), random(25, 75)}
^
exit status 1
variable 'player' must be const in order to be put into read-only section by means of '__attribute__((progmem))'
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
ممنون میشم راهنمایی بفرمایین.