Subversion Repositories Projects

Rev

Rev 503 | Rev 515 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 503 Rev 514
1
/****************************************************************************
1
/****************************************************************************
2
 *   Copyright (C) 2009 by Claas Anders "CaScAdE" Rathje                    *
2
 *   Copyright (C) 2009 by Claas Anders "CaScAdE" Rathje                    *
3
 *   admiralcascade@gmail.com                                               *
3
 *   admiralcascade@gmail.com                                               *
4
 *   Project-URL: http://www.mylifesucks.de/oss/c-osd/                      *
4
 *   Project-URL: http://www.mylifesucks.de/oss/c-osd/                      *
5
 *                                                                          *
5
 *                                                                          *
6
 *   This program is free software; you can redistribute it and/or modify   *
6
 *   This program is free software; you can redistribute it and/or modify   *
7
 *   it under the terms of the GNU General Public License as published by   *
7
 *   it under the terms of the GNU General Public License as published by   *
8
 *   the Free Software Foundation; either version 2 of the License.         *
8
 *   the Free Software Foundation; either version 2 of the License.         *
9
 *                                                                          *
9
 *                                                                          *
10
 *   This program is distributed in the hope that it will be useful,        *
10
 *   This program is distributed in the hope that it will be useful,        *
11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of         *
11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of         *
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the          *
13
 *   GNU General Public License for more details.                           *
13
 *   GNU General Public License for more details.                           *
14
 *                                                                          *
14
 *                                                                          *
15
 *   You should have received a copy of the GNU General Public License      *
15
 *   You should have received a copy of the GNU General Public License      *
16
 *   along with this program; if not, write to the                          *
16
 *   along with this program; if not, write to the                          *
17
 *   Free Software Foundation, Inc.,                                        *
17
 *   Free Software Foundation, Inc.,                                        *
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.              *
18
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.              *
19
 ****************************************************************************/
19
 ****************************************************************************/
-
 
20
 
-
 
21
#include <avr/io.h>
-
 
22
#include <avr/pgmspace.h>
-
 
23
#include <util/delay.h>
-
 
24
#include "main.h"
-
 
25
#include "max7456_software_spi.h"
-
 
26
 
-
 
27
 
-
 
28
#if (ALLCHARSDEBUG|(WRITECHARS != -1))
20
 
29
 
21
/**
30
/**
22
 * easy char creation:
31
 * easy char creation:
23
 * http://www.mylifesucks.de/tools/max7456/
32
 * http://www.mylifesucks.de/tools/max7456/
24
 */
33
 */
1185
    0x54, 0xaa, 0x15, 0x55, 0x28, 0x55};
-
 
1186
 
-
 
1187
// small arrow up
-
 
1188
unsigned char cea[54] = {0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55,
-
 
1189
    0x55, 0x55, 0x41, 0x55, 0x55, 0x28, 0x55, 0x54,
-
 
1190
    0xaa, 0x15, 0x52, 0xaa, 0x85, 0x0a, 0xaa, 0xa0,
-
 
1191
    0x2a, 0xaa, 0xa8, 0x2a, 0xaa, 0xa8, 0x00, 0x00,
-
 
1192
    0x00, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55,
-
 
1193
    0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55,
-
 
1194
    0x55, 0x55, 0x55, 0x55, 0x55, 0x55};
-
 
1195
 
-
 
1196
// big arrow up
-
 
1197
unsigned char ceb[54] = {0x55, 0x28, 0x55, 0x54, 0xaa, 0x15, 0x52, 0xaa,
-
 
1198
    0x85, 0x4a, 0xaa, 0xa1, 0x2a, 0xaa, 0xa8, 0x40,
-
 
1199
    0x28, 0x01, 0x55, 0x28, 0x55, 0x00, 0x28, 0x00,
-
 
1200
    0x2a, 0xaa, 0xa8, 0x2a, 0xaa, 0xa8, 0x00, 0x00,
-
 
1201
    0x00, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55,
-
 
1202
    0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55,
-
 
1203
    0x55, 0x55, 0x55, 0x55, 0x55, 0x55};
-
 
1204
 
-
 
1205
learn_char(232, ce8);
325
}
1206
learn_char(233, ce9);
326
 
1207
learn_char(234, cea);
327
 
1208
learn_char(235, ceb);
328
 
1209
#endif
329
#endif
1210
 
330