前々回と前回で紹介したSPI/TWIテンプレートクラスの使い方を、お値段の安さに釣られ衝動買いしてしまった秋月電子の小さなOLED用のライブラリを例にして紹介。
0.96インチ 128×64ドット有機ELディスプレイ(OLED)
初めて使うデバイスなのでとりあえずググってみたら有名どころがいくつか見つかった。早速、使ってみようと思ったらコードもデータもバカでかくてATtiny85には入らない。ArduinoといいつつATtiny85好きな私には、ATtiny85にOLEDを繋いでみましたって記事がないのはなぜだろうと以前から思っていたが、こういうことだったとは...(-_-;)
だからといってMCUを変える気などさらさらないし誰もやってないほうがやりがいもあるので作ってみることにしたがまずドキュメントを見てControl-byteのContinuation-bitの意味がなかなか理解できなかった。だがデータを受け取るデバイス側の気持ちになって考えてみてようやく理解できた。ようするに知ってることしか知らないので知らない未知のコマンドが来た時にも正しくコマンドサイズを解釈できるようにするためのものだということだ。これが理解できればあとはそう難しいことはない。また、性能面では若干デメリットにはなってしまうが互換仕様のSH1106でもそのまま使えるように共通コマンドのみを利用している。(SH1106が手元にないので試してないけど...)
SSD1306/SH1106はシリアルインターフェースでのGRAM読み込みができないことからグラフィックス対応にはGRAMと同じ容量のメモリを確保し、そのメモリを書き換えた後にメモリ全体を転送するのが通常の方法であると思うが、その方法だと1024バイトものメモリが必要になってしまうし性能もそれなり。ATtiny85のメモリは512バイトしかなくどうあがいても普通の方法は無理であることから文字のみの対応としているが、多少の制限とより低い性能が許容できるなら数十バイト程度のメモリしかなくてもグラフィック対応する方法はある。が、ATtiny85のコード量にもあまり余裕がないというかライブラリのみでお腹一杯にするわけにもいかないし対応する価値があるかどうかは微妙な感じ。いつか気が向いたら実験してみることにしよう。
【続編】
ATtiny85で128×64グラフィック描画を試す
ATtiny85で128×64グラフィック描画を再挑戦してみた。
ATtiny85+OLEDでストップウォッチ&タイマーを作ってみた。
なお、フォントは美咲フォント(8×8)(ANK文字のみ抜粋)を有り難く使わせて頂きました。老眼の人にはちと厳しい大きさ。だが、ATtiny85にはこれくらいのフォントしか入らない...(-_-;)
フォントは漢字まで含めるとかなりのメモリ量になるのでフォントROMとかSDカードを使うのが良いのかもしれない。なんとなくI2Cで使える漢字フォントROMってのがあると便利かなとも思うが、そこまでするならRaspberry PiなどのLinuxにすべきか...
【文字で全画面書き換えするプログラム】
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
#include "USITWI.h" #include "USISPI.h" #include "SSD1306.h" #define OLED_ADDR 0x3C #define TWI_BUS USITWI<USITWI_400K> #define SPI_BUS USISPI<USISPI_8M> #if 1 // TWI TWI_BUS bus; SSD1306<TWI_BUS, bus, OLED_ADDR> oled; #else // SPI SPI_BUS bus; SSD1306<SPI_BUS, bus> oled; #endif void setup() { bus.begin(); oled.begin(); } void loop() { uint16_t cnt = 0; uint16_t t = millis(); while ((uint16_t)millis() - t < 1000) { oled.cursor(0, 0); for (uint8_t c = 0x20; c <= 0x7F; ++c) oled.printChar((char)c); for (uint8_t c = 0x20; c <= 0x3F; ++c) oled.printChar((char)c); ++cnt; } oled.clear(); oled.printInt<uint16_t>(cnt); oled.printStr(" FPS"); oled.flush(); delay(1000); } |
このライブラリは、SPIやTWIのヘッダーファイルなど何もインクルードしてないのに、それらのメソッドを呼び出して動作する。なぜそんなことができるのか考えてみて。テンプレートって素晴らしいな!!
【SSD1306ライブラリ】
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 |
#ifndef _SSD1306_H #define _SSD1306_H #include <Arduino.h> #include <avr/pgmspace.h> #include <string.h> #define SSD1306_MAX_WIDTH 128 #define SSD1306_MAX_HEIGHT 64 #define SSD1306_REPT 0x00 #define SSD1306_WORD 0x80 #define SSD1306_DATA 0x40 //+-------------------+--------+ //| SSD1306 | SH1106 | //+-------------------+--------+ //#define SH1106_SET_PUMP_VOLTAGE_VALUE 0x30 //| (none) | | //#define SH1106_DC_DC_OFF 0x8A //| (none) | | //#define SH1106_DC_DC_ON 0x8B //| (none) | | //#define SH1106_DC_DC_CONTROL_MODE_SET 0xAD //| (none) | | //#define SH1106_READ_MODIFY_WRITE_START 0xE0 //| (none) | | //#define SH1106_READ_MODIFY_WRITE_END 0xEE //| (none) | | //+-------------------+--------+ #define SSD1306_SET_LOWER_COLUMN_START_ADDRESS 0x00 //| | | #define SSD1306_SET_HIGHER_COLUMN_START_ADDRESS 0x10 //| | | #define SSD1306_SET_MEMORY_ADDRESSING_MODE 0x20 //| 02 | (none) | #define SSD1306_SET_COLUMN_ADDRESS 0x21 //| 00:7F | (none) | #define SSD1306_SET_PAGE_ADDRESS 0x22 //| 00:07 | (none) | #define SSD1306_RIGHT_SCROLL 0x26 //| 00:07:07:07:00:FF | (none) | #define SSD1306_LEFT_SCROLL 0x27 //| 00:07:07:07:00:FF | (none) | #define SSD1306_VERTICAL_AND_RIGHT_SCROLL 0x29 //| 00:07:07:07:00 | (none) | #define SSD1306_VERTICAL_AND_LEFT_SCROLL 0x2A //| 00:07:07:07:00 | (none) | #define SSD1306_DEACTIVATE_SCROLL 0x2E //| | (none) | #define SSD1306_ACTIVATE_SCROLL 0x2F //| | (none) | #define SSD1306_SET_DISPLAY_START_LINE 0x40 //| | | #define SSD1306_SET_CONTRAST_CONTROL 0x81 //| 7F | FF | #define SSD1306_CHARGE_PUMP_SETTING 0x8D //| 10 | (none) | #define SSD1306_SET_SEGMENT_NORMAL 0xA0 //| | | #define SSD1306_SET_SEGMENT_REMAP 0xA1 //| | | #define SSD1306_SET_VERTICAL_SCROLL_AREA 0xA3 //| 3F:7F | (none) | #define SSD1306_ENTIRE_DISPLAY_OFF 0xA4 //| | | #define SSD1306_ENTIRE_DISPLAY_ON 0xA5 //| | | #define SSD1306_SET_NORMAL_DISPLAY 0xA6 //| | | #define SSD1306_SET_INVERSE_DISPLAY 0xA7 //| | | #define SSD1306_SET_MULTIPLEX_RATIO 0xA8 //| | | #define SSD1306_SET_DISPLAY_OFF 0xAE //| | | #define SSD1306_SET_DISPLAY_ON 0xAF //| | | #define SSD1306_SET_PAGE_START_ADDRESS 0xB0 //| B0-B7 | B0-BF | #define SSD1306_SET_COM_OUTPUT_SCAN_NORMAL 0xC0 //| | | #define SSD1306_SET_COM_OUTPUT_SCAN_REMAP 0xC8 //| | | #define SSD1306_SET_DISPLAY_OFFSET 0xD3 //| | | #define SSD1306_SET_CLOCK_DIVIDE_OSCILLATOR 0xD5 //| 80 | 50 | #define SSD1306_SET_PRECHARGE_PERIOD 0xD9 //| | | #define SSD1306_SET_COM_PINS_HARDWARE_CONFIGURATION 0xDA //| | | #define SSD1306_SET_VCOMH_DESELECT_LEVEL 0xDB //| 20 | 35 | #define SSD1306_NOP 0xE3 //| | | #define SSD1306_GDDRAM 0xFF //| | | //+-------------------+--------+ extern PROGMEM const uint8_t SSD1306_FONT[][8]; template<typename IOBUS_T, IOBUS_T& IOBUS, uint8_t ADDR = 0xFF, uint8_t SIZE = 32> class SSD1306 { private: uint8_t _buffer[SIZE]; uint8_t _count; uint8_t _ctrlb; uint8_t _lines; uint8_t _x_pos; uint8_t _y_pos; protected: void ctrl(uint8_t cmd, uint8_t len) { if (cmd != SSD1306_GDDRAM) { if ((_ctrlb != SSD1306_WORD) || (_count + len + 2 >= sizeof(_buffer))) flush(); _buffer[_count++] = _ctrlb = (len ? SSD1306_REPT : SSD1306_WORD); _buffer[_count++] = cmd; } else if ((_count == 0) || (_ctrlb != SSD1306_DATA)) { if ((_ctrlb != SSD1306_WORD) || (_count + len + 1 >= sizeof(_buffer))) flush(); _buffer[_count++] = _ctrlb = SSD1306_DATA; } } void data(uint8_t val) { if (_count == 0) _buffer[_count++] = _ctrlb; _buffer[_count] = val; if (++_count >= sizeof(_buffer)) flush(); } void font(char c) { if ((c >= 0x20) && (c <= 0x7F)) { const uint8_t *p = SSD1306_FONT[c - 0x20]; for (uint8_t i = 0; i < 8; ++i) data(pgm_read_byte_near(p++)); // // set next cursor position // if (++_x_pos >= (SSD1306_MAX_WIDTH >> 3)) { _x_pos = 0; if (++_y_pos >= _lines) _y_pos = 0; cursor(_x_pos, _y_pos); } } } void charge_pump(bool enable) { ctrl(SSD1306_CHARGE_PUMP_SETTING, 1); data(enable ? 0x14 : 0x10); } void multiplex(uint8_t nlines) { if ((nlines >= 2) && (nlines <= (SSD1306_MAX_HEIGHT >> 3)) && (nlines != _lines)) { _lines = nlines; ctrl(SSD1306_SET_MULTIPLEX_RATIO, 1); data((nlines << 3) - 1); } } public: SSD1306() : _ctrlb(SSD1306_WORD) , _lines(SSD1306_MAX_HEIGHT >> 3) , _x_pos(0) , _y_pos(0) { } void begin(uint8_t nlines = 8) { // // enable charge pump // charge_pump(true); // // set multiplex // multiplex(nlines); // // display clear // clear(); // // display on // display(true); // // flush // flush(); // // delay for SH1106 // delay(150); } void flush() { if (_count) { IOBUS.write(_buffer, _count, ADDR); _count = 0; } } uint8_t status() { uint8_t rv = 0xFF; IOBUS.read(&rv, sizeof(rv), ADDR); return rv; } void clear() { for (uint8_t y = 0; y < _lines; ++y) { cursor(0, y); ctrl(SSD1306_GDDRAM, 1); for (uint8_t x = 0; x < SSD1306_MAX_WIDTH; ++x) data(0); } cursor(0, 0); } void flip(bool enable) { ctrl(enable ? SSD1306_SET_COM_OUTPUT_SCAN_REMAP : SSD1306_SET_COM_OUTPUT_SCAN_NORMAL, 0); ctrl(enable ? SSD1306_SET_SEGMENT_REMAP : SSD1306_SET_SEGMENT_NORMAL, 0); } void display(bool enable) { ctrl(enable ? SSD1306_SET_DISPLAY_ON : SSD1306_SET_DISPLAY_OFF, 0); } void scroll(bool enable) { ctrl(enable ? SSD1306_ACTIVATE_SCROLL : SSD1306_DEACTIVATE_SCROLL, 0); } void white(bool enable) { ctrl(enable ? SSD1306_ENTIRE_DISPLAY_ON : SSD1306_ENTIRE_DISPLAY_OFF, 0); } void invert(bool enable) { ctrl(enable ? SSD1306_SET_INVERSE_DISPLAY : SSD1306_SET_NORMAL_DISPLAY, 0); } void contrast(uint8_t val) { ctrl(SSD1306_SET_CONTRAST_CONTROL, 1); data(val); } void cursor(uint8_t x, uint8_t y) { if ((x < (SSD1306_MAX_WIDTH >> 3)) && (y < _lines)) { _x_pos = x; _y_pos = y; // // set column address // ctrl(SSD1306_SET_LOWER_COLUMN_START_ADDRESS | (x << 3) & 0x08, 0); ctrl(SSD1306_SET_HIGHER_COLUMN_START_ADDRESS | (x >> 1) & 0x0F, 0); // // set page address // ctrl(SSD1306_SET_PAGE_START_ADDRESS | y, 0); } } void printChar(char c) { ctrl(SSD1306_GDDRAM, 1); font(c); } void printStr(char *str) { char c; ctrl(SSD1306_GDDRAM, 1); while (c = *str++) font(c); } template <typename T> bool printInt(T val) { char buf[12]; int8_t len = sizeof(buf); int8_t neg = (val < 0); buf[--len] = 0; if (neg) val = -val; do { if (--len < neg) return false; buf[len] = (char)(val % 10) | '0'; } while ((val /= 10) >= 1); if (neg) buf[--len] = '-'; printStr(&buf[len]); return true; } }; #endif // _SSD1306_H |
【SSD1306フォントデータ】
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 |
#include "SSD1306.h" PROGMEM const uint8_t SSD1306_FONT[][8] = { {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}, /* */ {0x00,0x00,0x00,0x5f,0x00,0x00,0x00,0x00}, /* ! */ {0x06,0x03,0x01,0x06,0x03,0x01,0x00,0x00}, /* ″ */ {0x20,0x62,0x3e,0x63,0x3e,0x23,0x02,0x00}, /* # */ {0x00,0x24,0x2a,0x7a,0x2f,0x2a,0x12,0x00}, /* $ */ {0x42,0x25,0x12,0x08,0x24,0x52,0x21,0x00}, /* % */ {0x20,0x56,0x49,0x55,0x22,0x58,0x40,0x00}, /* & */ {0x06,0x03,0x01,0x00,0x00,0x00,0x00,0x00}, /* ′ */ {0x00,0x00,0x00,0x00,0x1c,0x22,0x41,0x00}, /* ( */ {0x41,0x22,0x1c,0x00,0x00,0x00,0x00,0x00}, /* ) */ {0x00,0x22,0x14,0x7f,0x14,0x22,0x00,0x00}, /* * */ {0x08,0x08,0x08,0x7f,0x08,0x08,0x08,0x00}, /* + */ {0x50,0x30,0x00,0x00,0x00,0x00,0x00,0x00}, /* , */ {0x08,0x08,0x08,0x08,0x08,0x08,0x08,0x00}, /* - */ {0x60,0x60,0x00,0x00,0x00,0x00,0x00,0x00}, /* . */ {0x40,0x20,0x10,0x08,0x04,0x02,0x01,0x00}, /* / */ {0x00,0x3e,0x41,0x41,0x41,0x41,0x3e,0x00}, /* 0 */ {0x00,0x00,0x42,0x7f,0x40,0x00,0x00,0x00}, /* 1 */ {0x00,0x62,0x51,0x51,0x49,0x49,0x46,0x00}, /* 2 */ {0x00,0x22,0x41,0x49,0x49,0x49,0x36,0x00}, /* 3 */ {0x00,0x30,0x28,0x24,0x22,0x7f,0x20,0x00}, /* 4 */ {0x00,0x2f,0x45,0x45,0x45,0x45,0x39,0x00}, /* 5 */ {0x00,0x3e,0x49,0x49,0x49,0x49,0x32,0x00}, /* 6 */ {0x00,0x01,0x01,0x61,0x19,0x05,0x03,0x00}, /* 7 */ {0x00,0x36,0x49,0x49,0x49,0x49,0x36,0x00}, /* 8 */ {0x00,0x26,0x49,0x49,0x49,0x49,0x3e,0x00}, /* 9 */ {0x00,0x00,0x36,0x36,0x00,0x00,0x00,0x00}, /* : */ {0x00,0x00,0x56,0x36,0x00,0x00,0x00,0x00}, /* ; */ {0x00,0x00,0x00,0x08,0x14,0x22,0x41,0x00}, /* 〈 */ {0x14,0x14,0x14,0x14,0x14,0x14,0x14,0x00}, /* = */ {0x41,0x22,0x14,0x08,0x00,0x00,0x00,0x00}, /* 〉 */ {0x00,0x02,0x01,0x51,0x09,0x09,0x06,0x00}, /* ? */ {0x1c,0x22,0x59,0x55,0x4d,0x12,0x0c,0x00}, /* @ */ {0x60,0x18,0x16,0x11,0x16,0x18,0x60,0x00}, /* A */ {0x00,0x7f,0x49,0x49,0x49,0x49,0x36,0x00}, /* B */ {0x00,0x1c,0x22,0x41,0x41,0x41,0x22,0x00}, /* C */ {0x00,0x7f,0x41,0x41,0x41,0x22,0x1c,0x00}, /* D */ {0x00,0x7f,0x49,0x49,0x49,0x49,0x41,0x00}, /* E */ {0x00,0x7f,0x09,0x09,0x09,0x09,0x01,0x00}, /* F */ {0x00,0x1c,0x22,0x41,0x49,0x49,0x3a,0x00}, /* G */ {0x00,0x7f,0x08,0x08,0x08,0x08,0x7f,0x00}, /* H */ {0x00,0x00,0x41,0x7f,0x41,0x00,0x00,0x00}, /* I */ {0x00,0x20,0x40,0x40,0x40,0x40,0x3f,0x00}, /* J */ {0x00,0x7f,0x10,0x08,0x14,0x22,0x41,0x00}, /* K */ {0x00,0x7f,0x40,0x40,0x40,0x40,0x40,0x00}, /* L */ {0x7f,0x02,0x0c,0x30,0x0c,0x02,0x7f,0x00}, /* M */ {0x00,0x7f,0x02,0x04,0x08,0x10,0x7f,0x00}, /* N */ {0x00,0x1c,0x22,0x41,0x41,0x22,0x1c,0x00}, /* O */ {0x00,0x7f,0x09,0x09,0x09,0x09,0x06,0x00}, /* P */ {0x00,0x1c,0x22,0x41,0x51,0x22,0x5c,0x00}, /* Q */ {0x00,0x7f,0x09,0x09,0x19,0x29,0x46,0x00}, /* R */ {0x00,0x26,0x49,0x49,0x49,0x49,0x32,0x00}, /* S */ {0x01,0x01,0x01,0x7f,0x01,0x01,0x01,0x00}, /* T */ {0x00,0x3f,0x40,0x40,0x40,0x40,0x3f,0x00}, /* U */ {0x03,0x0c,0x30,0x40,0x30,0x0c,0x03,0x00}, /* V */ {0x1f,0x60,0x18,0x06,0x18,0x60,0x1f,0x00}, /* W */ {0x41,0x22,0x14,0x08,0x14,0x22,0x41,0x00}, /* X */ {0x01,0x02,0x04,0x78,0x04,0x02,0x01,0x00}, /* Y */ {0x00,0x41,0x61,0x51,0x49,0x45,0x43,0x00}, /* Z */ {0x00,0x00,0x00,0x00,0x7f,0x41,0x41,0x00}, /* [ */ {0x00,0x2b,0x2c,0x78,0x2c,0x2b,0x00,0x00}, /* ¥ */ {0x41,0x41,0x7f,0x00,0x00,0x00,0x00,0x00}, /* ] */ {0x00,0x00,0x02,0x01,0x02,0x00,0x00,0x00}, /* ^ */ {0x40,0x40,0x40,0x40,0x40,0x40,0x40,0x00}, /* _ */ {0x00,0x00,0x01,0x02,0x00,0x00,0x00,0x00}, /* ` */ {0x00,0x20,0x54,0x54,0x54,0x78,0x00,0x00}, /* a */ {0x00,0x7f,0x48,0x44,0x44,0x38,0x00,0x00}, /* b */ {0x00,0x38,0x44,0x44,0x44,0x28,0x00,0x00}, /* c */ {0x00,0x38,0x44,0x44,0x48,0x7f,0x00,0x00}, /* d */ {0x00,0x38,0x54,0x54,0x54,0x18,0x00,0x00}, /* e */ {0x00,0x00,0x04,0x7e,0x05,0x01,0x00,0x00}, /* f */ {0x00,0x08,0x54,0x54,0x54,0x3c,0x00,0x00}, /* g */ {0x00,0x7f,0x08,0x04,0x04,0x78,0x00,0x00}, /* h */ {0x00,0x00,0x00,0x7d,0x00,0x00,0x00,0x00}, /* i */ {0x00,0x20,0x40,0x40,0x3d,0x00,0x00,0x00}, /* j */ {0x00,0x00,0x7f,0x10,0x28,0x44,0x00,0x00}, /* k */ {0x00,0x00,0x01,0x7f,0x00,0x00,0x00,0x00}, /* l */ {0x00,0x7c,0x04,0x78,0x04,0x78,0x00,0x00}, /* m */ {0x00,0x7c,0x08,0x04,0x04,0x78,0x00,0x00}, /* n */ {0x00,0x38,0x44,0x44,0x44,0x38,0x00,0x00}, /* o */ {0x00,0x7c,0x14,0x14,0x14,0x08,0x00,0x00}, /* p */ {0x00,0x08,0x14,0x14,0x14,0x7c,0x00,0x00}, /* q */ {0x00,0x7c,0x08,0x04,0x04,0x08,0x00,0x00}, /* r */ {0x00,0x48,0x54,0x54,0x54,0x24,0x00,0x00}, /* s */ {0x00,0x04,0x3e,0x44,0x44,0x20,0x00,0x00}, /* t */ {0x00,0x3c,0x40,0x40,0x20,0x7c,0x00,0x00}, /* u */ {0x00,0x0c,0x30,0x40,0x30,0x0c,0x00,0x00}, /* v */ {0x00,0x1c,0x60,0x18,0x60,0x1c,0x00,0x00}, /* w */ {0x00,0x44,0x28,0x10,0x28,0x44,0x00,0x00}, /* x */ {0x00,0x44,0x58,0x20,0x18,0x04,0x00,0x00}, /* y */ {0x00,0x44,0x64,0x54,0x4c,0x44,0x00,0x00}, /* z */ {0x00,0x00,0x00,0x08,0x36,0x41,0x41,0x00}, /* { */ {0x00,0x00,0x00,0xff,0x00,0x00,0x00,0x00}, /* │ */ {0x41,0x41,0x36,0x08,0x00,0x00,0x00,0x00}, /* } */ {0x00,0x00,0x02,0x01,0x02,0x00,0x00,0x00}, /* ^ */ {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}, /* */ }; |