epd4in2.cpp 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565
  1. /**
  2. * @filename : epd4in2.cpp
  3. * @brief : Implements for Dual-color e-paper library
  4. * @author : Yehui from Waveshare
  5. *
  6. * Copyright (C) Waveshare August 10 2017
  7. *
  8. * Permission is hereby granted, free of charge, to any person obtaining a copy
  9. * of this software and associated documnetation files (the "Software"), to deal
  10. * in the Software without restriction, including without limitation the rights
  11. * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  12. * copies of the Software, and to permit persons to whom the Software is
  13. * furished to do so, subject to the following conditions:
  14. *
  15. * The above copyright notice and this permission notice shall be included in
  16. * all copies or substantial portions of the Software.
  17. *
  18. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  19. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  20. * FITNESS OR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  21. * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  22. * LIABILITY WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  23. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  24. * THE SOFTWARE.
  25. */
  26. #include <stdlib.h>
  27. #include "epd4in2.h"
  28. Epd::~Epd() {
  29. };
  30. Epd::Epd() {
  31. reset_pin = RST_PIN;
  32. dc_pin = DC_PIN;
  33. cs_pin = CS_PIN;
  34. busy_pin = BUSY_PIN;
  35. width = EPD_WIDTH;
  36. height = EPD_HEIGHT;
  37. };
  38. int Epd::Init(void) {
  39. /* this calls the peripheral hardware interface, see epdif */
  40. if (IfInit() != 0) {
  41. return -1;
  42. }
  43. /* EPD hardware init start */
  44. Reset();
  45. SendCommand(POWER_SETTING);
  46. SendData(0x03); // VDS_EN, VDG_EN
  47. SendData(0x00); // VCOM_HV, VGHL_LV[1], VGHL_LV[0]
  48. SendData(0x2b); // VDH
  49. SendData(0x2b); // VDL
  50. SendData(0xff); // VDHR
  51. SendCommand(BOOSTER_SOFT_START);
  52. SendData(0x17);
  53. SendData(0x17);
  54. SendData(0x17); //07 0f 17 1f 27 2F 37 2f
  55. SendCommand(POWER_ON);
  56. WaitUntilIdle();
  57. SendCommand(PANEL_SETTING);
  58. SendData(0xbf); // KW-BF KWR-AF BWROTP 0f
  59. SendData(0x0b);
  60. SendCommand(PLL_CONTROL);
  61. SendData(0x3c); // 3A 100HZ 29 150Hz 39 200HZ 31 171HZ
  62. /* EPD hardware init end */
  63. return 0;
  64. }
  65. int Epd::Init_4Gray(void) {
  66. /* this calls the peripheral hardware interface, see epdif */
  67. if (IfInit() != 0) {
  68. return -1;
  69. }
  70. /* EPD hardware init start */
  71. Reset();
  72. SendCommand(0x01); //POWER SETTING
  73. SendData (0x03);
  74. SendData (0x00); //VGH=20V,VGL=-20V
  75. SendData (0x2b); //VDH=15V
  76. SendData (0x2b); //VDL=-15V
  77. SendData (0x13);
  78. SendCommand(0x06); //booster soft start
  79. SendData (0x17); //A
  80. SendData (0x17); //B
  81. SendData (0x17); //C
  82. SendCommand(0x04);
  83. WaitUntilIdle();
  84. SendCommand(0x00); //panel setting
  85. SendData(0x3f); //KW-3f KWR-2F BWROTP 0f BWOTP 1f
  86. SendCommand(0x30); //PLL setting
  87. SendData (0x3c); //100hz
  88. SendCommand(0x61); //resolution setting
  89. SendData (0x01); //400
  90. SendData (0x90);
  91. SendData (0x01); //300
  92. SendData (0x2c);
  93. SendCommand(0x82); //vcom_DC setting
  94. SendData (0x12);
  95. SendCommand(0X50); //VCOM AND DATA INTERVAL SETTING
  96. SendData(0x97);
  97. }
  98. /**
  99. * @brief: basic function for sending commands
  100. */
  101. void Epd::SendCommand(unsigned char command) {
  102. DigitalWrite(dc_pin, LOW);
  103. SpiTransfer(command);
  104. }
  105. /**
  106. * @brief: basic function for sending data
  107. */
  108. void Epd::SendData(unsigned char data) {
  109. DigitalWrite(dc_pin, HIGH);
  110. SpiTransfer(data);
  111. }
  112. /**
  113. * @brief: Wait until the busy_pin goes HIGH
  114. */
  115. void Epd::WaitUntilIdle(void) {
  116. SendCommand(0x71);
  117. while(DigitalRead(busy_pin) == 0) { //0: busy, 1: idle
  118. DelayMs(100);
  119. SendCommand(0x71);
  120. }
  121. }
  122. /**
  123. * @brief: module reset.
  124. * often used to awaken the module in deep sleep,
  125. * see Epd::Sleep();
  126. */
  127. void Epd::Reset(void) {
  128. DigitalWrite(reset_pin, LOW);
  129. DelayMs(200);
  130. DigitalWrite(reset_pin, HIGH);
  131. DelayMs(200);
  132. }
  133. /**
  134. * @brief: transmit partial data to the SRAM
  135. */
  136. void Epd::SetPartialWindow(const unsigned char* buffer_black, int x, int y, int w, int l) {
  137. SendCommand(PARTIAL_IN);
  138. SendCommand(PARTIAL_WINDOW);
  139. SendData(x >> 8);
  140. SendData(x & 0xf8); // x should be the multiple of 8, the last 3 bit will always be ignored
  141. SendData(((x & 0xf8) + w - 1) >> 8);
  142. SendData(((x & 0xf8) + w - 1) | 0x07);
  143. SendData(y >> 8);
  144. SendData(y & 0xff);
  145. SendData((y + l - 1) >> 8);
  146. SendData((y + l - 1) & 0xff);
  147. SendData(0x01); // Gates scan both inside and outside of the partial window. (default)
  148. DelayMs(2);
  149. SendCommand(DATA_START_TRANSMISSION_2);
  150. if (buffer_black != NULL) {
  151. for(int i = 0; i < w / 8 * l; i++) {
  152. SendData(buffer_black[i]);
  153. }
  154. } else {
  155. for(int i = 0; i < w / 8 * l; i++) {
  156. SendData(0x00);
  157. }
  158. }
  159. DelayMs(2);
  160. SendCommand(PARTIAL_OUT);
  161. }
  162. void Epd::Set_4GrayDisplay(const char *Image, int x, int y, int w, int l)
  163. {
  164. int i,j,k,m;
  165. int z=0;
  166. unsigned char temp1,temp2,temp3;
  167. /****Color display description****
  168. white gray1 gray2 black
  169. 0x10| 01 01 00 00
  170. 0x13| 01 00 01 00
  171. *********************************/
  172. SendCommand(0x10);
  173. z=0;
  174. x= x/8*8;
  175. for(m = 0; m<EPD_HEIGHT;m++)
  176. for(i=0;i<EPD_WIDTH/8;i++)
  177. {
  178. if(i >= x/8 && i <(x+w)/8 && m >= y && m < y+l){
  179. temp3=0;
  180. for(j=0;j<2;j++)
  181. {
  182. temp1 = pgm_read_byte(&Image[z*2+j]);
  183. for(k=0;k<2;k++)
  184. {
  185. temp2 = temp1&0xC0 ;
  186. if(temp2 == 0xC0)
  187. temp3 |= 0x01;//white
  188. else if(temp2 == 0x00)
  189. temp3 |= 0x00; //black
  190. else if(temp2 == 0x80)
  191. temp3 |= 0x01; //gray1
  192. else //0x40
  193. temp3 |= 0x00; //gray2
  194. temp3 <<= 1;
  195. temp1 <<= 2;
  196. temp2 = temp1&0xC0 ;
  197. if(temp2 == 0xC0) //white
  198. temp3 |= 0x01;
  199. else if(temp2 == 0x00) //black
  200. temp3 |= 0x00;
  201. else if(temp2 == 0x80)
  202. temp3 |= 0x01; //gray1
  203. else //0x40
  204. temp3 |= 0x00; //gray2
  205. if(j!=1 || k!=1)
  206. temp3 <<= 1;
  207. temp1 <<= 2;
  208. }
  209. }
  210. z++;
  211. SendData(temp3);
  212. }else{
  213. SendData(0xff);
  214. }
  215. }
  216. // new data
  217. SendCommand(0x13);
  218. z=0;
  219. for(m = 0; m<EPD_HEIGHT;m++)
  220. for(i=0;i<EPD_WIDTH/8;i++)
  221. {
  222. if(i >= x/8 && i <(x+w)/8 && m >= y && m < y+l){
  223. temp3=0;
  224. for(j=0;j<2;j++)
  225. {
  226. temp1 = pgm_read_byte(&Image[z*2+j]);
  227. for(k=0;k<2;k++)
  228. {
  229. temp2 = temp1&0xC0 ;
  230. if(temp2 == 0xC0)
  231. temp3 |= 0x01;//white
  232. else if(temp2 == 0x00)
  233. temp3 |= 0x00; //black
  234. else if(temp2 == 0x80)
  235. temp3 |= 0x00; //gray1
  236. else //0x40
  237. temp3 |= 0x01; //gray2
  238. temp3 <<= 1;
  239. temp1 <<= 2;
  240. temp2 = temp1&0xC0 ;
  241. if(temp2 == 0xC0) //white
  242. temp3 |= 0x01;
  243. else if(temp2 == 0x00) //black
  244. temp3 |= 0x00;
  245. else if(temp2 == 0x80)
  246. temp3 |= 0x00; //gray1
  247. else //0x40
  248. temp3 |= 0x01; //gray2
  249. if(j!=1 || k!=1)
  250. temp3 <<= 1;
  251. temp1 <<= 2;
  252. }
  253. }
  254. z++;
  255. SendData(temp3);
  256. }else {
  257. SendData(0xff);
  258. }
  259. }
  260. set4Gray_lut();
  261. SendCommand(DISPLAY_REFRESH);
  262. DelayMs(100);
  263. WaitUntilIdle();
  264. }
  265. /**
  266. * @brief: set the look-up table
  267. */
  268. void Epd::SetLut(void) {
  269. unsigned int count;
  270. SendCommand(LUT_FOR_VCOM); //vcom
  271. for(count = 0; count < 44; count++) {
  272. SendData(lut_vcom0[count]);
  273. }
  274. SendCommand(LUT_WHITE_TO_WHITE); //ww --
  275. for(count = 0; count < 42; count++) {
  276. SendData(lut_ww[count]);
  277. }
  278. SendCommand(LUT_BLACK_TO_WHITE); //bw r
  279. for(count = 0; count < 42; count++) {
  280. SendData(lut_bw[count]);
  281. }
  282. SendCommand(LUT_WHITE_TO_BLACK); //wb w
  283. for(count = 0; count < 42; count++) {
  284. SendData(lut_bb[count]);
  285. }
  286. SendCommand(LUT_BLACK_TO_BLACK); //bb b
  287. for(count = 0; count < 42; count++) {
  288. SendData(lut_wb[count]);
  289. }
  290. }
  291. void Epd::set4Gray_lut(void)
  292. {
  293. unsigned int count;
  294. {
  295. SendCommand(0x20); //vcom
  296. for(count=0;count<42;count++)
  297. {SendData(EPD_4IN2_4Gray_lut_vcom[count]);}
  298. SendCommand(0x21); //red not use
  299. for(count=0;count<42;count++)
  300. {SendData(EPD_4IN2_4Gray_lut_ww[count]);}
  301. SendCommand(0x22); //bw r
  302. for(count=0;count<42;count++)
  303. {SendData(EPD_4IN2_4Gray_lut_bw[count]);}
  304. SendCommand(0x23); //wb w
  305. for(count=0;count<42;count++)
  306. {SendData(EPD_4IN2_4Gray_lut_wb[count]);}
  307. SendCommand(0x24); //bb b
  308. for(count=0;count<42;count++)
  309. {SendData(EPD_4IN2_4Gray_lut_bb[count]);}
  310. SendCommand(0x25); //vcom
  311. for(count=0;count<42;count++)
  312. {SendData(EPD_4IN2_4Gray_lut_ww[count]);}
  313. }
  314. }
  315. /**
  316. * @brief: refresh and displays the frame
  317. */
  318. void Epd::DisplayFrame(const unsigned char* frame_buffer) {
  319. SendCommand(RESOLUTION_SETTING);
  320. SendData(width >> 8);
  321. SendData(width & 0xff);
  322. SendData(height >> 8);
  323. SendData(height & 0xff);
  324. SendCommand(VCM_DC_SETTING);
  325. SendData(0x12);
  326. SendCommand(VCOM_AND_DATA_INTERVAL_SETTING);
  327. SendCommand(0x97); //VBDF 17|D7 VBDW 97 VBDB 57 VBDF F7 VBDW 77 VBDB 37 VBDR B7
  328. if (frame_buffer != NULL) {
  329. SendCommand(DATA_START_TRANSMISSION_1);
  330. for(int i = 0; i < width / 8 * height; i++) {
  331. SendData(0xFF); // bit set: white, bit reset: black
  332. }
  333. DelayMs(2);
  334. SendCommand(DATA_START_TRANSMISSION_2);
  335. for(int i = 0; i < width / 8 * height; i++) {
  336. SendData(pgm_read_byte(&frame_buffer[i]));
  337. }
  338. DelayMs(2);
  339. }
  340. SetLut();
  341. SendCommand(DISPLAY_REFRESH);
  342. DelayMs(100);
  343. WaitUntilIdle();
  344. }
  345. /**
  346. * @brief: clear the frame data from the SRAM, this won't refresh the display
  347. */
  348. void Epd::ClearFrame(void) {
  349. SendCommand(RESOLUTION_SETTING);
  350. SendData(width >> 8);
  351. SendData(width & 0xff);
  352. SendData(height >> 8);
  353. SendData(height & 0xff);
  354. SendCommand(DATA_START_TRANSMISSION_1);
  355. DelayMs(2);
  356. for(int i = 0; i < width / 8 * height; i++) {
  357. SendData(0xFF);
  358. }
  359. DelayMs(2);
  360. SendCommand(DATA_START_TRANSMISSION_2);
  361. DelayMs(2);
  362. for(int i = 0; i < width / 8 * height; i++) {
  363. SendData(0xFF);
  364. }
  365. DelayMs(2);
  366. SetLut();
  367. SendCommand(DISPLAY_REFRESH);
  368. DelayMs(100);
  369. WaitUntilIdle();
  370. }
  371. /**
  372. * @brief: This displays the frame data from SRAM
  373. */
  374. void Epd::DisplayFrame(void) {
  375. SetLut();
  376. SendCommand(DISPLAY_REFRESH);
  377. DelayMs(100);
  378. WaitUntilIdle();
  379. }
  380. /**
  381. * @brief: After this command is transmitted, the chip would enter the deep-sleep mode to save power.
  382. * The deep sleep mode would return to standby by hardware reset. The only one parameter is a
  383. * check code, the command would be executed if check code = 0xA5.
  384. * You can use Epd::Reset() to awaken and use Epd::Init() to initialize.
  385. */
  386. void Epd::Sleep() {
  387. SendCommand(VCOM_AND_DATA_INTERVAL_SETTING);
  388. SendData(0x17); //border floating
  389. SendCommand(VCM_DC_SETTING); //VCOM to 0V
  390. SendCommand(PANEL_SETTING);
  391. DelayMs(100);
  392. SendCommand(POWER_SETTING); //VG&VS to 0V fast
  393. SendData(0x00);
  394. SendData(0x00);
  395. SendData(0x00);
  396. SendData(0x00);
  397. SendData(0x00);
  398. DelayMs(100);
  399. SendCommand(POWER_OFF); //power off
  400. WaitUntilIdle();
  401. SendCommand(DEEP_SLEEP); //deep sleep
  402. SendData(0xA5);
  403. }
  404. const unsigned char lut_vcom0[] =
  405. {
  406. 0x00, 0x17, 0x00, 0x00, 0x00, 0x02,
  407. 0x00, 0x17, 0x17, 0x00, 0x00, 0x02,
  408. 0x00, 0x0A, 0x01, 0x00, 0x00, 0x01,
  409. 0x00, 0x0E, 0x0E, 0x00, 0x00, 0x02,
  410. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  411. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  412. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  413. };
  414. const unsigned char lut_ww[] ={
  415. 0x40, 0x17, 0x00, 0x00, 0x00, 0x02,
  416. 0x90, 0x17, 0x17, 0x00, 0x00, 0x02,
  417. 0x40, 0x0A, 0x01, 0x00, 0x00, 0x01,
  418. 0xA0, 0x0E, 0x0E, 0x00, 0x00, 0x02,
  419. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  420. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  421. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  422. };
  423. const unsigned char lut_bw[] ={
  424. 0x40, 0x17, 0x00, 0x00, 0x00, 0x02,
  425. 0x90, 0x17, 0x17, 0x00, 0x00, 0x02,
  426. 0x40, 0x0A, 0x01, 0x00, 0x00, 0x01,
  427. 0xA0, 0x0E, 0x0E, 0x00, 0x00, 0x02,
  428. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  429. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  430. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  431. };
  432. const unsigned char lut_bb[] ={
  433. 0x80, 0x17, 0x00, 0x00, 0x00, 0x02,
  434. 0x90, 0x17, 0x17, 0x00, 0x00, 0x02,
  435. 0x80, 0x0A, 0x01, 0x00, 0x00, 0x01,
  436. 0x50, 0x0E, 0x0E, 0x00, 0x00, 0x02,
  437. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  438. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  439. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  440. };
  441. const unsigned char lut_wb[] ={
  442. 0x80, 0x17, 0x00, 0x00, 0x00, 0x02,
  443. 0x90, 0x17, 0x17, 0x00, 0x00, 0x02,
  444. 0x80, 0x0A, 0x01, 0x00, 0x00, 0x01,
  445. 0x50, 0x0E, 0x0E, 0x00, 0x00, 0x02,
  446. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  447. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  448. 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
  449. };
  450. /******************************gray*********************************/
  451. //0~3 gray
  452. const unsigned char EPD_4IN2_4Gray_lut_vcom[] =
  453. {
  454. 0x00 ,0x0A ,0x00 ,0x00 ,0x00 ,0x01,
  455. 0x60 ,0x14 ,0x14 ,0x00 ,0x00 ,0x01,
  456. 0x00 ,0x14 ,0x00 ,0x00 ,0x00 ,0x01,
  457. 0x00 ,0x13 ,0x0A ,0x01 ,0x00 ,0x01,
  458. 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00,
  459. 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00,
  460. 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00
  461. };
  462. //R21
  463. const unsigned char EPD_4IN2_4Gray_lut_ww[] ={
  464. 0x40 ,0x0A ,0x00 ,0x00 ,0x00 ,0x01,
  465. 0x90 ,0x14 ,0x14 ,0x00 ,0x00 ,0x01,
  466. 0x10 ,0x14 ,0x0A ,0x00 ,0x00 ,0x01,
  467. 0xA0 ,0x13 ,0x01 ,0x00 ,0x00 ,0x01,
  468. 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00,
  469. 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00,
  470. 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00,
  471. };
  472. //R22H r
  473. const unsigned char EPD_4IN2_4Gray_lut_bw[] ={
  474. 0x40 ,0x0A ,0x00 ,0x00 ,0x00 ,0x01,
  475. 0x90 ,0x14 ,0x14 ,0x00 ,0x00 ,0x01,
  476. 0x00 ,0x14 ,0x0A ,0x00 ,0x00 ,0x01,
  477. 0x99 ,0x0C ,0x01 ,0x03 ,0x04 ,0x01,
  478. 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00,
  479. 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00,
  480. 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00,
  481. };
  482. //R23H w
  483. const unsigned char EPD_4IN2_4Gray_lut_wb[] ={
  484. 0x40 ,0x0A ,0x00 ,0x00 ,0x00 ,0x01,
  485. 0x90 ,0x14 ,0x14 ,0x00 ,0x00 ,0x01,
  486. 0x00 ,0x14 ,0x0A ,0x00 ,0x00 ,0x01,
  487. 0x99 ,0x0B ,0x04 ,0x04 ,0x01 ,0x01,
  488. 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00,
  489. 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00,
  490. 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00,
  491. };
  492. //R24H b
  493. const unsigned char EPD_4IN2_4Gray_lut_bb[] ={
  494. 0x80 ,0x0A ,0x00 ,0x00 ,0x00 ,0x01,
  495. 0x90 ,0x14 ,0x14 ,0x00 ,0x00 ,0x01,
  496. 0x20 ,0x14 ,0x0A ,0x00 ,0x00 ,0x01,
  497. 0x50 ,0x13 ,0x01 ,0x00 ,0x00 ,0x01,
  498. 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00,
  499. 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00,
  500. 0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00,
  501. };
  502. /* END OF FILE */