e-paper-display/bcm2835-1.71/e-Paper/STM32/STM32-F103ZET6/User/Readme_CN.txt

95 lines
3.6 KiB
Plaintext
Raw Normal View History

2024-01-31 22:04:09 +00:00
/*****************************************************************************
* | File : Readme_CN.txt
* | Author : Waveshare team
* | Function : Help with use
* | Info :
*----------------
* | This version: V1.0
* | Date : 2019-06-14
* | Info : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<E1B9A9><D2BB><EFBFBD><EFBFBD><EFBFBD>İ汾<C4B0><E6B1BE>ʹ<EFBFBD><CAB9><EFBFBD>ĵ<EFBFBD><C4B5><EFBFBD><EFBFBD>Ա<EFBFBD><D4B1><EFBFBD><EFBFBD>Ŀ<EFBFBD><C4BF><EFBFBD>ʹ<EFBFBD><CAB9>
******************************************************************************/
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><EFBFBD>ǰ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD>ñ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>̡<EFBFBD>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǵ<EFBFBD>īˮ<EFBFBD><EFBFBD>Խ<EFBFBD><EFBFBD>Խ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ǵ<EFBFBD>ά<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˰<EFBFBD><EFBFBD><EFBFBD><EFBFBD>е<EFBFBD>īˮ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̡<EFBFBD>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>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FBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<EFBFBD><EFBFBD>ע<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>īˮ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>1<EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E3B9BA><EFBFBD><EFBFBD>5.83inch e-paper<65><72><EFBFBD><EFBFBD>ô<EFBFBD><C3B4>Ӧ<EFBFBD>ðѶ<C3B0>Ӧ<EFBFBD><D3A6>93<39>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD>ע<EFBFBD><D7A2>ȥ<EFBFBD><C8A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
// EPD_5in83_test();
<20>޸ijɣ<C4B3>
EPD_5in83_test();
<EFBFBD><EFBFBD><EFBFBD><EFBFBD>2<EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E3B9BA><EFBFBD><EFBFBD>2.9inch e-paper (B)<29><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>2.9<EFBFBD><EFBFBD><EFBFBD><EFBFBD>B<EFBFBD>ͺ<EFBFBD>C<EFBFBD><EFBFBD><EFBFBD>ǹ<EFBFBD><EFBFBD>õ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><>ô<EFBFBD><C3B4>Ӧ<EFBFBD>ðѶ<C3B0>Ӧ<EFBFBD><D3A6>82<38>д<EFBFBD><D0B4><EFBFBD><EFBFBD><EFBFBD>ע<EFBFBD><D7A2>ȥ<EFBFBD><C8A5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
// EPD_2in9bc_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>ȡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>򵥽<EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD>Σ<EFBFBD>
Config\:<3A><>Ŀ¼ΪӲ<CEAA><D3B2><EFBFBD>ӿڲ<D3BF><DAB2>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD>DEV_Config.c(.h)<29><><EFBFBD>Կ<EFBFBD><D4BF><EFBFBD><EFBFBD>ܶඨ<DCB6><EFBFBD><E5A3AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
<20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͣ<EFBFBD>
#define UBYTE uint8_t
#define UWORD uint16_t
#define UDOUBLE uint32_t
GPIO<49><4F>
#define EPD_RST_PIN RST_GPIO_Port, RST_Pin
#define EPD_DC_PIN DC_GPIO_Port, DC_Pin
#define EPD_CS_PIN SPI_CS_GPIO_Port, SPI_CS_Pin
#define EPD_BUSY_PIN BUSY_GPIO_Port, BUSY_Pin
ע<><EFBFBD><E2A3BA><EFBFBD><EFBFBD>û<EFBFBD>ж<EFBFBD><D0B6><EFBFBD>DIN<49><4E>CLK<4C><4B><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD>Ӳ<EFBFBD><D3B2>SPI<50><49><EFBFBD>Ĵ<EFBFBD><C4B4><EFBFBD><EFBFBD><EFBFBD>
<20><>дGPIO<49><4F>
#define DEV_Digital_Write(_pin, _value) HAL_GPIO_WritePin(_pin, _value == 0? GPIO_PIN_RESET:GPIO_PIN_SET)
#define DEV_Digital_Read(_pin) HAL_GPIO_ReadPin(_pin)
SPI<50><49><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݣ<EFBFBD>
void DEV_SPI_WriteByte(UBYTE value);
<20><>ʱ<EFBFBD><CAB1>
#define DEV_Delay_ms(__xms) HAL_Delay(__xms);
ע<><EFBFBD><E2A3BA><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>δʹ<CEB4><CAB9>ʾ<EFBFBD><CABE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ
ģ<><C4A3><EFBFBD><EFBFBD>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD><EFBFBD>˳<EFBFBD><CBB3>Ĵ<EFBFBD><C4B4><EFBFBD><EFBFBD><EFBFBD>
void DEV_Module_Init(void);
void DEV_Module_Exit(void);
ע<>⣺1.<2E><><EFBFBD><EFBFBD><EFBFBD>Ǵ<EFBFBD><C7B4><EFBFBD>ʹ<EFBFBD><CAB9>īˮ<C4AB><CBAE>ǰ<EFBFBD><C7B0>ʹ<EFBFBD><CAB9><EFBFBD><EFBFBD>֮<EFBFBD><D6AE>һЩGPIO<49>Ĵ<EFBFBD><C4B4><EFBFBD><EFBFBD><EFBFBD>
2.<2E><><EFBFBD><EFBFBD>PCB<43><42><EFBFBD><EFBFBD>Rev2.1<EFBFBD>ģ<EFBFBD>DEV_Module_Exit()֮<><D6AE><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD><C4A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>͹<EFBFBD><CDB9>ģ<EFBFBD><C4A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ļ<EFBFBD><C4BB><EFBFBD>Ϊ0;
GUI\:<3A><>Ŀ¼ΪһЩ<D2BB><D0A9><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFB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>ģ<EFBFBD>
font12CN: 16*21
font24CN: 32*41
e-paper\:<3A><>Ŀ¼<C4BF><C2BC>Ϊīˮ<C4AB><CBAE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>;
Examples\:<3A><>Ŀ¼<C4BF><C2BC>Ϊīˮ<C4AB><CBAE><EFBFBD>IJ<EFBFBD><C4B2>Գ<EFBFBD><D4B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>п<EFBFBD><D0BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD>÷<EFBFBD><C3B7><EFBFBD>;