Вт янв 14, 2020 10:59:14
Вт янв 14, 2020 12:16:36
Сб янв 18, 2020 19:25:44
Вс янв 19, 2020 15:57:37
Чт янв 23, 2020 23:45:55
Пт янв 24, 2020 08:08:45
Вс янв 26, 2020 00:13:37
Вт янв 28, 2020 11:34:47
Вт янв 28, 2020 13:49:58
//Loading user chars
uart_putchar(0x1B);
uart_putchar(0x26);
uart_putchar(0x01);
uart_putchar(0xB0);
uart_putchar(0xB3);
uart_putchar(0x05); //Columns in one char
uart_putchar(pgm_read_byte(&char_pattern_rus_yo[0]));
uart_putchar(pgm_read_byte(&char_pattern_rus_yo[1]));
uart_putchar(pgm_read_byte(&char_pattern_rus_yo[2]));
uart_putchar(pgm_read_byte(&char_pattern_rus_yo[3]));
uart_putchar(pgm_read_byte(&char_pattern_rus_yo[4]));
uart_putchar(0x05);
uart_putchar(pgm_read_byte(&char_pattern_rus_YO[0]));
uart_putchar(pgm_read_byte(&char_pattern_rus_YO[1]));
uart_putchar(pgm_read_byte(&char_pattern_rus_YO[2]));
uart_putchar(pgm_read_byte(&char_pattern_rus_YO[3]));
uart_putchar(pgm_read_byte(&char_pattern_rus_YO[4]));
uart_putchar(0x05);
uart_putchar(pgm_read_byte(&char_pattern_rus_zh[0]));
uart_putchar(pgm_read_byte(&char_pattern_rus_zh[1]));
uart_putchar(pgm_read_byte(&char_pattern_rus_zh[2]));
uart_putchar(pgm_read_byte(&char_pattern_rus_zh[3]));
uart_putchar(pgm_read_byte(&char_pattern_rus_zh[4]));
uart_putchar(0x05);
uart_putchar(pgm_read_byte(&char_pattern_rus_ZH[0]));
uart_putchar(pgm_read_byte(&char_pattern_rus_ZH[1]));
uart_putchar(pgm_read_byte(&char_pattern_rus_ZH[2]));
uart_putchar(pgm_read_byte(&char_pattern_rus_ZH[3]));
uart_putchar(pgm_read_byte(&char_pattern_rus_ZH[4]));
//Set (enable) user defined characters
uart_putchar(0x1B);
uart_putchar(0x25);
uart_putchar(0x01); //set (enable)
uart_putchar(0x1B);
uart_putchar(0x26);
uart_putchar(address);
uart_putchar(pgm_read_byte(&pattern[0]));
uart_putchar(pgm_read_byte(&pattern[1]));
uart_putchar(pgm_read_byte(&pattern[2]));
uart_putchar(pgm_read_byte(&pattern[3]));
uart_putchar(pgm_read_byte(&pattern[4]));
Вт янв 28, 2020 16:30:52
Вт янв 28, 2020 16:56:04
Вт янв 28, 2020 17:15:46
Вт янв 28, 2020 18:49:56
0x1B 0x40
0x63 'R'
0x1B 0x66 'A'
0x1B 0x25 0x01
0x1B 0x26 0x01 0xB0 0xB0 0x05 0x12 0x2A 0x7F 0x2A 0x24
Вт янв 28, 2020 20:29:18
Вт янв 28, 2020 21:57:09
#define MV_BIT(data, src, dst) (((data) & (1 << (src))) ? (1 << (dst)) : 0)
#define VFD_CHAR_PATTERN(row0, row1, row2, row3, row4, row5, row6, spec) \
0 | MV_BIT(row0, 4, 6) | MV_BIT(row1, 4, 5) | MV_BIT(row2, 4, 4) | \
MV_BIT(row3, 4, 3) | MV_BIT(row4, 4, 2) | MV_BIT(row5, 4, 1) | MV_BIT(row6, 4, 0) ,\
0 | MV_BIT(row0, 3, 6) | MV_BIT(row1, 3, 5) | MV_BIT(row2, 3, 4) | \
MV_BIT(row3, 3, 3) | MV_BIT(row4, 3, 2) | MV_BIT(row5, 3, 1) | MV_BIT(row6, 3, 0) ,\
0 | MV_BIT(row0, 2, 6) | MV_BIT(row1, 2, 5) | MV_BIT(row2, 2, 4) | \
MV_BIT(row3, 2, 3) | MV_BIT(row4, 2, 2) | MV_BIT(row5, 2, 1) | MV_BIT(row6, 2, 0) ,\
0 | MV_BIT(row0, 1, 6) | MV_BIT(row1, 1, 5) | MV_BIT(row2, 1, 4) | \
MV_BIT(row3, 1, 3) | MV_BIT(row4, 1, 2) | MV_BIT(row5, 1, 1) | MV_BIT(row6, 1, 0) ,\
0 | MV_BIT(row0, 0, 6) | MV_BIT(row1, 0, 5) | MV_BIT(row2, 0, 4) | \
MV_BIT(row3, 0, 3) | MV_BIT(row4, 0, 2) | MV_BIT(row5, 0, 1) | MV_BIT(row6, 0, 0)
const PROGMEM uint8_t char_pattern_rus_sh[] =
{
VFD_CHAR_PATTERN
(
0b00000,
0b00000,
0b10101,
0b10101,
0b10101,
0b10101,
0b11111,
0b000
)
};
const PROGMEM uint8_t char_pattern_rus_shch[] =
{
VFD_CHAR_PATTERN
(
0b00000,
0b00000,
0b10101,
0b10101,
0b10101,
0b11111,
0b00001,
0b000
)
};
Вт янв 28, 2020 22:18:12
Ср янв 29, 2020 04:16:09
Ср янв 29, 2020 09:49:07
Сб фев 01, 2020 18:13:19
Вт фев 04, 2020 06:37:53