Show Posts
Pages: [1]
1  Using Arduino / Displays / Error: 'X' was not declared in this scope on: January 02, 2012, 12:24:49 pm
So Im using the arduino mega 2560, with a LCD shield http://www.nuelectronics.com/estore/index.php?main_page=product_info&cPath=1&products_id=31

And after clearing up some errors, there is one error Im not able to resolve.

I found out that I had to add mcc.h to my sketch, because otherwise I would get errors saying that the functions of the bitmap had no resources.
Now after adding mcc.h to my sketch, Im getting these errors... Could someone help me out with this?
I have already declared that Im using an arduino mega 2560, so all of these definitions should be declared already..

C:\Users\Melkon\Documents\Arduino\libraries\mmc/mmc.h: In function 'void init_spi()':
C:\Users\Melkon\Documents\Arduino\libraries\mmc/mmc.h:21: error: 'PORTL' was not declared in this scope
C:\Users\Melkon\Documents\Arduino\libraries\mmc/mmc.h:21: error: 'PORTL0' was not declared in this scope
C:\Users\Melkon\Documents\Arduino\libraries\mmc/mmc.h:22: error: 'PORTB' was not declared in this scope
C:\Users\Melkon\Documents\Arduino\libraries\mmc/mmc.h:22: error: 'PORTB2' was not declared in this scope
2  Using Arduino / Displays / 2.8" TFT Color LCD,touch screen shield for Arduino Mega on: January 01, 2012, 11:19:43 am
I have tried different things to get the pictures from the SD card on my GLCD.

I have bought the GLCD from this website: http://www.nuelectronics.com/estore/index.php?main_page=product_info&cPath=1&products_id=31

First of all I have put all the header and .cpp files under libraries in their own folder,

So no I have these included:
#include <pff.h>
#include <integer.h>
#include <diskio.h>
#include <TFT_Arduino_Mega.h>
#include <TFT_ILI9325.h>
#include <f12x12.h>
#include <TFT_Font.h>
#include <TFT_Graphics.h>
#include <Touchpanel.h>
#include <util/delay.h>
#include <stdlib.h>
#include <f15x22.h>

Only the util/delay file is not there in the libraries folder, but the rest is there.

and then I also get this error:
C:\Users\Melkon\AppData\Local\Temp\build3019902955486871018.tmp/tft_menu.cpp:364: undefined reference to `tp_calibrate()'

So I add a new tabe called: tp_calibrate
and paste the code of the previous example in it and then I get some errors about some definitions are redefined...

So I comment most of the code that gives me error in the tp_calibrate tab.

Now I compile the first tabe: tft_menu

Now I get this error:

tft_menu.cpp.o: In function `bitmap()':
C:\Users\Melkon\AppData\Local\Temp\build3019902955486871018.tmp/tft_menu.cpp:327: undefined reference to `mount_sd()'

C:\Users\Melkon\AppData\Local\Temp\build3019902955486871018.tmp/tft_menu.cpp:334: undefined reference to `open_root_dir()'

C:\Users\Melkon\AppData\Local\Temp\build3019902955486871018.tmp/tft_menu.cpp:336: undefined reference to `show_bitmap()'

I really hope you could help me out with this.
3  Using Arduino / Interfacing w/ Software on the Computer / 2.8" TFT Color LCD,touch screen shield V1.2 - getting strange errors on: December 28, 2011, 01:28:00 pm
I bought this shield and I have the arduino mega 2560
The shield : http://www.nuelectronics.com/estore/index.php?main_page=product_info&cPath=1&products_id=31

It works fine with the first example; the calibration.

But when I want to do the menu example, it gives me all strange errors

I have tried different things.
First of all I have put all the header and .cpp files under libraries in their own folder,

So no I have these included:
#include <pff.h>
#include <integer.h>
#include <diskio.h>
#include <TFT_Arduino_Mega.h>
#include <TFT_ILI9325.h>
#include <f12x12.h>
#include <TFT_Font.h>
#include <TFT_Graphics.h>
#include <Touchpanel.h>
#include <util/delay.h>
#include <stdlib.h>
#include <f15x22.h>

Only the util/delay file is not there in the libraries folder, but the rest is there.

and then I also get this error:
C:\Users\Melkon\AppData\Local\Temp\build3019902955486871018.tmp/tft_menu.cpp:364: undefined reference to `tp_calibrate()'

So I add a new tabe called: tp_calibrate
and paste the code of the previous example in it and then I get some errors about some definitions are redefined...

So I comment most of the code that gives me error in the tp_calibrate tab.

Now I compile the first tabe: tft_menu

Now I get this error:

tft_menu.cpp.o: In function `bitmap()':
C:\Users\Melkon\AppData\Local\Temp\build3019902955486871018.tmp/tft_menu.cpp:327: undefined reference to `mount_sd()'

C:\Users\Melkon\AppData\Local\Temp\build3019902955486871018.tmp/tft_menu.cpp:334: undefined reference to `open_root_dir()'

C:\Users\Melkon\AppData\Local\Temp\build3019902955486871018.tmp/tft_menu.cpp:336: undefined reference to `show_bitmap()'

I really hope someone could help me out!
Pages: [1]