Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Anonymous
Saturday, January 7th, 2012 at 6:26:22pm UTC 

  1. commit e0afdf2cdab746b106c64ce404b7841c87038e7f
  2. Author: Bertrik Sikken <bertrik@sikken.nl>
  3. Date:   Sat Jan 7 19:19:09 2012 +0100
  4.  
  5.     Swap OLED blue and red brightness
  6.  
  7. diff --git a/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c b/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
  8. index 3952171..dd80736 100644
  9. --- a/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
  10. +++ b/firmware/target/arm/as3525/sansa-clipzip/lcd-clipzip.c
  11. @@ -359,9 +359,9 @@ void oled_brightness(int brightness)
  12.          g = 1 + 10*brightness;
  13.          b = 1 + (23*brightness)/2;
  14.      
  15. -        lcd_write(0x40, r); /* COLUMN_CURRENT_R */
  16. -        lcd_write(0x41, g); /* COLUMN_CURRENT_G */
  17.          lcd_write(0x42, b); /* COLUMN_CURRENT_B */
  18. +        lcd_write(0x41, g); /* COLUMN_CURRENT_G */
  19. +        lcd_write(0x40, r); /* COLUMN_CURRENT_R */
  20.      }
  21.      else {
  22.          r = 6 + 10*brightness;
  23. @@ -369,9 +369,9 @@ void oled_brightness(int brightness)
  24.          b = 3 + 10*brightness;
  25.      
  26.          lcd_write_cmd(0x0E);
  27. -        lcd_write_nibbles(r);
  28. -        lcd_write_nibbles(g);
  29.          lcd_write_nibbles(b);
  30. +        lcd_write_nibbles(g);
  31. +        lcd_write_nibbles(r);
  32.      }
  33.  }
  34.  

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



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.

comments powered by Disqus
worth-right
worth-right