Author Options:

I am not so good in programing arduino and i have some problems, but can't find answer anywhere Answered

i am have this errors 

Arduino: 1.6.0 (Windows 7), Board: "Arduino Pro or Pro Mini, ATmega328 (5V, 16 MHz)"

Build options changed, rebuilding all

Using library Sprite in folder: C:\Users\Hrvoje\Documents\Arduino\libraries\Sprite (legacy)

Using library Matrix in folder: C:\Users\Hrvoje\Documents\Arduino\libraries\Matrix (legacy)

D:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10600 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -ID:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -ID:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs -IC:\Users\Hrvoje\Documents\Arduino\libraries\Sprite -IC:\Users\Hrvoje\Documents\Arduino\libraries\Matrix C:\Users\Hrvoje\AppData\Local\Temp\build3373133583693679666.tmp\LED_1cube_4x4x4_Show_1_74HC595.cpp -o C:\Users\Hrvoje\AppData\Local\Temp\build3373133583693679666.tmp\LED_1cube_4x4x4_Show_1_74HC595.cpp.o

LED_1cube_4x4x4_Show_1_74HC595.ino:34:1: error: 'prog_uchar' does not name a type
LED_1cube_4x4x4_Show_1_74HC595.ino: In function 'void loop()':
LED_1cube_4x4x4_Show_1_74HC595.ino:258:27: error: 'PatternTable' was not declared in this scope
Error compiling.
all files i can not compile :S

https://mega.co.nz/#F!uY82TLKK!yz8c1fMIYyo-ow7pUiOwgw Include file key


Looks like you're not on the same build environment. The code doesn't look like Arduino program

My teacher give me that program, and put it on my arduino pro mini, and that same code won't work on my PC :S

Your teacher may have burned it from a different eco-system. Are you sure its arduino code ? Or code that runs on an ATmega 368 ?

He put it on my arduino, it works right now, but that same code i can't compile :/


3 years ago

Sorry i forgot to put program :/
On teachers computer is everything good, but on my home PC i have same problem all the time :S
Sorry for bad English...

Can you save the program to a text file and attach it to your question?

You did not declare PatternTable

You did not name a type for prog_uchar(). Presumably, in the first case, you simply forgot to include a variable definition.

In the second, at a guess, you left the data type off whatever you're passing into the function.

Speculation on my part. No "real" clue though, since you failed to provide the program to examine.


3 years ago

To become a programmer you need to be able to start with the big picture and then fight your way out of a paper bag :)

Start out by explaining what program you have written.