Subversion Repositories Projects

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1053 - 1
/*****************************************************************************
2
 *   Copyright (C) 2008 Thomas Kaiser, thomas@ft-fanpage.de                  *
3
 *   Copyright (C) 2009-2010 Peter "woggle" Mack, mac@denich.net             *
4
 *                                                                           *
5
 *   This program is free software; you can redistribute it and/or modify    *
6
 *   it under the terms of the GNU General Public License as published by    *
7
 *   the Free Software Foundation; either version 2 of the License.          *
8
 *                                                                           *
9
 *   This program is distributed in the hope that it will be useful,         *
10
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of          *
11
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           *
12
 *   GNU General Public License for more details.                            *
13
 *                                                                           *
14
 *   You should have received a copy of the GNU General Public License       *
15
 *   along with this program; if not, write to the                           *
16
 *   Free Software Foundation, Inc.,                                         *
17
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.               *
18
 *                                                                           *
19
 *****************************************************************************/
20
 
21
#include <avr/io.h>
22
#include <avr/pgmspace.h>
23
#include <avr/interrupt.h>
24
 
25
#include "main.h"
26
#include "menu.h"
27
#include "lcd.h"
28
#include "settings.h"
29
#include "timer.h"
30
#include "eeprom.h"
31
 
32
 
33
//*****************************************************************************
34
// 
35
 
36
void set_toggledisplay(void)
37
{
38
        cli(); 
39
 
40
        if (LCD_ORIENTATION == 0)
41
                LCD_ORIENTATION = 4;
42
        else
43
                LCD_ORIENTATION = 0;
44
 
45
        WriteParameter ();
46
 
47
        LCD_Init();
48
 
49
        sei();
50
}
51