File: adv_bignum.h

package info (click to toggle)
lcdproc 0.5.9-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 5,064 kB
  • sloc: ansic: 59,645; sh: 1,740; perl: 681; makefile: 417
file content (65 lines) | stat: -rw-r--r-- 1,847 bytes parent folder | download | duplicates (4)
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
/** \file server/drivers/adv_bignum.h
 * Library to generate big numbers on displays with different numbers
 * of custom characters.
 */

/*-
 * Copyright (C) 2006 Stefan Herdler,
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
 */

#ifndef ADV_BIGNUM_H
#define ADV_BIGNUM_H

/* Bit patterns for creating custom characters */
#define  b_______	0x00
#define  b______X	0x01
#define  b_____X_	0x02
#define  b_____XX	0x03
#define  b____X__	0x04
#define  b____X_X	0x05
#define  b____XX_	0x06
#define  b____XXX	0x07
#define  b___X___	0x08
#define  b___X__X	0x09
#define  b___X_X_	0x0A
#define  b___X_XX	0x0B
#define  b___XX__	0x0C
#define  b___XX_X	0x0D
#define  b___XXX_	0x0E
#define  b___XXXX	0x0F
#define  b__X____	0x10
#define  b__X___X	0x11
#define  b__X__X_	0x12
#define  b__X__XX	0x13
#define  b__X_X__	0x14
#define  b__X_X_X	0x15
#define  b__X_XX_	0x16
#define  b__X_XXX	0x17
#define  b__XX___	0x18
#define  b__XX__X	0x19
#define  b__XX_X_	0x1A
#define  b__XX_XX	0x1B
#define  b__XXX__	0x1C
#define  b__XXX_X	0x1D
#define  b__XXXX_	0x1E
#define  b__XXXXX	0x1F
#define  b_XXX___	0x38
#define  b_XXXXXX	0x3F

void lib_adv_bignum(Driver * drvthis, int x, int num, int offset, int do_init);

#endif