Skip to content

Commit b1d38d7

Browse files
author
kubi48
committed
option LCD_ICON_COLOR for different color for icons
git-svn-id: svn://mikrocontroller.net/transistortester@792 6ebdd44f-5a7e-449c-b779-36259138d2c7
1 parent c8e867d commit b1d38d7

File tree

36 files changed

+39984
-39942
lines changed

36 files changed

+39984
-39942
lines changed

Software/tags/changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Added option LCD_ICON_COLOR for different color selection for big icons.
12
Function expand_FET_quadratic mit Rundung.
23
Frequenzgrenze für Periodenmessung auf 33kHz verschoben.
34
Frequency-Scaler (WITH_FREQUENCY_DIVIDER) reorganisiert, 2er Potenz statt Zahl (1 bis 512).

Software/trunk/CheckPins.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ void CheckPins(uint8_t HighPin, uint8_t LowPin, uint8_t TristatePin)
502502
#if DebugOut == 5
503503
DisplayValue(i16,-6,' ',3);
504504
#endif
505-
// i16 =expand_FET_quadratic(ptrans.ice0,adc.hp3,i16);
505+
i16 =expand_FET_quadratic(ptrans.ice0,adc.hp3,i16);
506506
#if DebugOut == 5
507507
DisplayValue(i16,-6,' ',3);
508508
#endif

Software/trunk/ILI9163/TransistorTester.hex

Lines changed: 1398 additions & 1397 deletions
Large diffs are not rendered by default.

Software/trunk/ST7735/TransistorTester.hex

Lines changed: 1401 additions & 1400 deletions
Large diffs are not rendered by default.

Software/trunk/arduino_m2560/TransistorTester.hex

Lines changed: 1388 additions & 1387 deletions
Large diffs are not rendered by default.

Software/trunk/arduino_uno/TransistorTester.hex

Lines changed: 1388 additions & 1387 deletions
Large diffs are not rendered by default.
0 Bytes
Binary file not shown.

Software/trunk/default/TransistorTester.lss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -285,11 +285,11 @@ uint8_t lcd_save_position(void) {
285285
19e: 08 95 ret
286286

287287
000001a0 <lcd_data>:
288-
/* ******************************************************************************* */
289-
// sends a character to the LCD
290-
void lcd_data(unsigned char temp1) {
291-
/* -------------------------------------------------------------------------- */
292-
288+
lcd_fg_color.b[1] = eeprom_read_byte(&EE_FG_COLOR2);
289+
#else
290+
lcd_fg_color.w = LCD_FG_COLOR;
291+
#endif
292+
#endif
293293
_lcd_column++;
294294
1a0: 90 91 37 01 lds r25, 0x0137 ; 0x800137 <_lcd_column>
295295
1a4: 9f 5f subi r25, 0xFF ; 255

Software/trunk/lcd-routines.c

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,9 @@ void lcd_big_icon(unsigned char temp1) {
227227
#else
228228
#define HALF_SCREEN_HEIGHT (SCREEN_HEIGHT / 2)
229229
#endif
230+
#ifdef LCD_ICON_COLOR
231+
lcd_fg_color.w = LCD_ICON_COLOR;
232+
#endif
230233
pfont = (uint8_t *) bigfont[temp1 & 0x3f]; // first byte of character data
231234
icon_xx = TP_WIDTH; // left side
232235
if ((temp1 & 0x40) == 0) icon_xx += (SCREEN_WIDTH / (ONE_B/4)); // right side
@@ -297,6 +300,14 @@ void lcd_write_word(unsigned int xx) {
297300
void lcd_data(unsigned char temp1) {
298301
/* -------------------------------------------------------------------------- */
299302

303+
#ifdef LCD_ICON_COLOR
304+
#ifdef LCD_CHANGE_COLOR
305+
lcd_fg_color.b[0] = eeprom_read_byte(&EE_FG_COLOR1);
306+
lcd_fg_color.b[1] = eeprom_read_byte(&EE_FG_COLOR2);
307+
#else
308+
lcd_fg_color.w = LCD_FG_COLOR;
309+
#endif
310+
#endif
300311
_lcd_column++;
301312
#if (LCD_GRAPHIC_TYPE != 0)
302313
uint8_t *pfont;
@@ -576,8 +587,10 @@ void lcd_init(void) {
576587
#ifdef LCD_CHANGE_COLOR
577588
lcd_bg_color.b[0] = eeprom_read_byte(&EE_BG_COLOR1);
578589
lcd_bg_color.b[1] = eeprom_read_byte(&EE_BG_COLOR2);
590+
#ifndef LCD_ICON_COLOR
579591
lcd_fg_color.b[0] = eeprom_read_byte(&EE_FG_COLOR1);
580592
lcd_fg_color.b[1] = eeprom_read_byte(&EE_FG_COLOR2);
593+
#endif
581594
#endif
582595
#if LCD_SCREEN_ROTATE != 0
583596
lcd_write_data(0x3c); // MV=exchange xy, ML=Vertical refresh, RGB=BGR color,MH=Refresh right to left
@@ -1226,7 +1239,7 @@ unsigned char options, unsigned char width, unsigned char height) {
12261239
{
12271240
if ((byte & 0x80) != 0) {
12281241
// set pixel to foreground color
1229-
#ifdef LCD_CHANGE_COLOR
1242+
#if defined(LCD_CHANGE_COLOR) || defined(LCD_ICON_COLOR)
12301243
lcd_write_word(lcd_fg_color.w); // 5 red / 6 green / 5 blue pixel
12311244
#if ONE_B == 16
12321245
lcd_write_word(lcd_fg_color.w); // 5 red / 6 green / 5 blue pixel

0 commit comments

Comments
 (0)