i am currently using 4D system LCD-28PTU PICASO and arduino mega 2560. i am still learning how to use the 4D system program.For my testing program i want to include timer at the program i followed the manual on how include the timer but i can't seem to do that. Also i do not know why i cannot use
'Display.gfx_Hline(270,170,170,LIGHTPINK);'
Apparently the error message shown for timer is
Arduino: 1.6.8 (Windows 7), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
In file included from K:\141029Q fyp\sketch_may06a_LCD_\sketch_may06a_LCD_.ino:1:0:
C:\Users\Student\Documents\Arduino\libraries\Picaso_Serial_4DLib/Picaso_Const4D.h:588:0: warning: "PINK" redefined [enabled by default]
#define PINK 0xFE19
^
In file included from c:\program files\arduino\hardware\tools\avr\avr\include\avr\iom2560.h:38:0,
from c:\program files\arduino\hardware\tools\avr\avr\include\avr\io.h:174,
from c:\program files\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
from C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,
from sketch\sketch_may06a_LCD_.ino.cpp:1:
c:\program files\arduino\hardware\tools\avr\avr\include\avr\iomxx0_1.h:1132:0: note: this is the location of the previous definition
# define PINK _SFR_MEM8(0x106)
^
K:\141029Q fyp\sketch_may06a_LCD_\sketch_may06a_LCD_.ino: In function 'void setup()':
K:\141029Q fyp\sketch_may06a_LCD_\sketch_may06a_LCD_.ino:14:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
Display.putstr("hello world");
^
sketch_may06a_LCD_:15: error: 'TIMER0' was not declared in this scope
sys_SetTimer(TIMER0, 5000); // < this problem
^
sketch_may06a_LCD_:15: error: 'sys_SetTimer' was not declared in this scope
sys_SetTimer(TIMER0, 5000); // < this problem
^
exit status 1
'TIMER0' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
this is error msg for Hline
Arduino: 1.6.8 (Windows 7), Board: "Arduino/Genuino Mega or Mega 2560, ATmega2560 (Mega 2560)"
In file included from K:\141029Q fyp\sketch_may06a_LCD_\sketch_may06a_LCD_.ino:1:0:
C:\Users\Student\Documents\Arduino\libraries\Picaso_Serial_4DLib/Picaso_Const4D.h:588:0: warning: "PINK" redefined [enabled by default]
#define PINK 0xFE19
^
In file included from c:\program files\arduino\hardware\tools\avr\avr\include\avr\iom2560.h:38:0,
from c:\program files\arduino\hardware\tools\avr\avr\include\avr\io.h:174,
from c:\program files\arduino\hardware\tools\avr\avr\include\avr\pgmspace.h:88,
from C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino/Arduino.h:28,
from sketch\sketch_may06a_LCD_.ino.cpp:1:
c:\program files\arduino\hardware\tools\avr\avr\include\avr\iomxx0_1.h:1132:0: note: this is the location of the previous definition
# define PINK _SFR_MEM8(0x106)
^
K:\141029Q fyp\sketch_may06a_LCD_\sketch_may06a_LCD_.ino: In function 'void setup()':
K:\141029Q fyp\sketch_may06a_LCD_\sketch_may06a_LCD_.ino:14:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
Display.putstr("hello world");
^
sketch_may06a_LCD_:18: error: 'class Picaso_Serial_4DLib' has no member named 'gfx_Hline'
Display.gfx_Hline(270,170,170,LIGHTPINK);
^
exit status 1
'class Picaso_Serial_4DLib' has no member named 'gfx_Hline'
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
This is my testing program
#include <Picaso_Const4D.h>
#include <Picaso_Serial_4DLib.h>
#define DisplaySerial Serial
Picaso_Serial_4DLib Display(&DisplaySerial);
void setup()
{
DisplaySerial.begin(9600);
Display.gfx_ScreenMode(LANDSCAPE_R);
Display.gfx_BGcolour(LIGHTGOLD);
Display.txt_FGcolour(BLACK);
Display.txt_BGcolour(LIGHTGOLD);
Display.gfx_Cls();
Display.putstr("hello world");
sys_SetTimer(TIMER0, 5000); // < this problem
t:=sys_GetTimer(TIMER0); // < this problem
Display.gfx_Line(270,170,320,170,LIGHTPINK);
//Display.gfx_Hline(270,170,170,LIGHTPINK);
Display.gfx_CircleFilled(10,10,20,RED);
Display.gfx_CircleFilled(20,20,20,LIGHTGREEN);
}
void loop()
{
// put your main code here, to run repeatedly:
}
thank you in advance