Advertising
- Anonymous
- Saturday, January 7th, 2012 at 11:26:22am MST
- commit e0afdf2cdab746b106c64ce404b7841c87038e7f
- Author: Bertrik Sikken <bertrik@sikken.nl>
- Date: Sat Jan 7 19:19:09 2012 +0100
- Swap OLED blue and red brightness
- diff --git a/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c b/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
- index 3952171..dd80736 100644
- --- a/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
- +++ b/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
- @@ -359,9 +359,9 @@ void oled_brightness(int brightness)
- g = 1 + 10*brightness;
- b = 1 + (23*brightness)/2;
- - lcd_write(0x40, r); /* COLUMN_CURRENT_R */
- - lcd_write(0x41, g); /* COLUMN_CURRENT_G */
- lcd_write(0x42, b); /* COLUMN_CURRENT_B */
- + lcd_write(0x41, g); /* COLUMN_CURRENT_G */
- + lcd_write(0x40, r); /* COLUMN_CURRENT_R */
- }
- else {
- r = 6 + 10*brightness;
- @@ -369,9 +369,9 @@ void oled_brightness(int brightness)
- b = 3 + 10*brightness;
- lcd_write_cmd(0x0E);
- - lcd_write_nibbles(r);
- - lcd_write_nibbles(g);
- lcd_write_nibbles(b);
- + lcd_write_nibbles(g);
- + lcd_write_nibbles(r);
- }
- }
advertising
Update the Post
Either update this post and resubmit it with changes, or make a new post.
You may also comment on this post.
Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.