2016-08-30 37 views
0

我的Bascom项目出现问题。我bascom avr项目中的奇怪错误

首先,这是我的代码:

$regfile = "m128def.dat" 
$CRYSTAL=8000000 
$hwstack = 512 
$swstack = 512 
$framesize = 512 

Config Porte = Output : Data_disp_low Alias Porte   'DB0 - DB7 
Config Portf = Output : Data_disp_high Alias Portf   'DB8 - DB15 
Rs_disp Alias Portd.0 : Config Rs_disp = Output    'Command/Data pin 
Wr_disp Alias Portd.1 : Config Wr_disp = Output    'Write pin 
Rd_ssd1963 Alias Portd.2 : Config Rd_ssd1963 = Output 
Res_disp Alias Portd.4 : Config Res_disp = Output   'Reset pin 
Res_disp = 1 
Cs_disp Alias Portd.3 : Config Cs_disp = Output    'Chip Select 
Cs_disp = 0 


Const Color_bgr = 0 
Const Portrait = 0           '1=Portrait, 0=Landscape 
Const Rotate_180 = 0          '1=Rotated, 0=Not Rotated 
Config Submode = New : $include "SSD1963 16bit library.inc" 'Include library 
Config Portd.0 = Output 

Display_init 
Lcd_backlight 160 
Lcd_clear Black 

Restore A_en_boldfont14x23 
    Alcd_txt "Hello" , 320 , 37 , White , Black , 0 
wait 5 

我要恢复一个文件,并显示在我的GLCD但IDE显示了这个错误对我说:

Error : 61 Line : 28 Label not found [A_EN_BOLDFONT14X23] , in File : D:\AVR\bascomprj\lcd4inch\noname2.bas 

,这是奇怪的因为我把[A_EN_BOLDFONT14X23]放在我的项目文件中。

有谁知道答案?

回答

0

该消息表明在项目文件中找不到数据标签“A_EN_BOLDFONT14X23”。如果你想访问存储在程序存储器中的数据,你必须定义一个标签。比你可以通过例如读取访问数据你不能访问存储在你的项目目录中的文件。
Bascom help restore

实施例:

Restore Data_to_restore 
Read S : Print S 'read an print "display text 1" 
Read S : Print S 

Data_to_restore: 
Data "display text 1" , "display text 2"