📄 bank0.c
字号:
/*------------------------------------------------------------------------------
bank0.c
Version:
November 23, 2004 Version 2.1 - Added Chinese messages.
August 2004 Version 2.0 - Updated include file names, modified comments.
Description:
This code is part of the banking demo for the Turbo uPSD family.
This file is part of the banked pages of code that is managed by
the compiler and linker tools.
Copyright (c) 2004 STMicroelectronics Inc.
This example demo code is provided as is and has no warranty,
implied or otherwise. You are free to use/modify any of the provided
code at your own risk in your applications with the expressed limitation
of liability (see below) so long as your product using the code contains
at least one uPSD product (device).
LIMITATION OF LIABILITY: NEITHER STMicroelectronics NOR ITS VENDORS OR
AGENTS SHALL BE LIABLE FOR ANY LOSS OF PROFITS, LOSS OF USE, LOSS OF DATA,
INTERRUPTION OF BUSINESS, NOR FOR INDIRECT, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES OF ANY KIND WHETHER UNDER THIS AGREEMENT OR
OTHERWISE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
------------------------------------------------------------------------------*/
#include "uPSD3300.h"
#include "uPSD3300_hardware.h"
#include "upsd3300_lcd.h"
#include "uPSD3300_timer.h"
extern unsigned char idata flag ;
void fct_PAGE0()
{
delay_1sec();
lcd_clear();
if(flag)
{
printfLCD("Bank switching:");
printfLCD("\nBANK #0 ");
}
else
{
printfLCD("存储区组合切换:");
printfLCD("\n第0组 ");
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -