Please help Devo 12s fonts is out of wack

More
06 May 2015 04:42 #32162 by mrbeefy
Replied by mrbeefy on topic Please help Devo 12s fonts is out of wack
you sir are amazing i hope youll integrate this on your future firmware updates . Thanks again

Please Log in or Create an account to join the conversation.

More
06 May 2015 04:43 - 06 May 2015 04:51 #32163 by PhracturedBlue
Replied by PhracturedBlue on topic Please help Devo 12s fonts is out of wack
you can continue to use the firmware_2 for now. It is good that the flipping works properly. I don't want to release it as-is though, since it has some limitations. I'll probably want you to do a couple other tests sometime in the future, but I don't have any more time tonight to work on it and the test_2 build should be good enough for you for now.

Edit: Notes to myself on the changes I made:
diff -r 2cb43c00fc18 src/target/devo12/lcd.c
--- a/src/target/devo12/lcd.c	Sat May 02 08:08:31 2015 -0700
+++ b/src/target/devo12/lcd.c	Tue May 05 21:48:19 2015 -0700
@@ -28,7 +28,8 @@
 #define CS_HI() gpio_set(GPIOB, GPIO1)
 #define CS_LO() gpio_clear(GPIOB, GPIO1)
 
-#define TRANSPARENT 0xFEFEFE
+#define TRANSPARENT 0xA850A8
+//#define TRANSPARENT 0xFEFEFE
 static u8 invert;
 static u16 xpos, ypos, xstart, xend;
 
@@ -105,6 +106,9 @@
     ypos = y0;
     lcd_cmd(LCD_52_INP_MODE, 0x08);
   }
+  lcd_cmd(LCD_54_TRANS_KEY_RED,   (TRANSPARENT >> 16) & 0xff);
+  lcd_cmd(LCD_56_TRANS_KEY_GREEN, (TRANSPARENT >>  8) & 0xff);
+  lcd_cmd(LCD_58_TRANS_KEY_BLUE,  (TRANSPARENT >>  0) & 0xff);
   xpos = x0;
   LCD_REG = LCD_5A_WRWIN_XSTART;
   LCD_DATA = (x0 / 4) & 0xFE;
We verified that the change to 'TRANSPARENT' is critical. the setting of 54,56,58in LCD_DrawStart() is probably not needed. We need to try other values for TRANSPARENT. Maybe we can find one that is not a legal color in 565. currently the color A850A8 is reachable from a 16bit bitmap, so we could get unwanted transparency.
Last edit: 06 May 2015 04:51 by PhracturedBlue.

Please Log in or Create an account to join the conversation.

More
06 May 2015 04:49 #32165 by mrbeefy
Replied by mrbeefy on topic Please help Devo 12s fonts is out of wack
just give the instruction anytime

Please Log in or Create an account to join the conversation.

More
06 May 2015 16:02 #32176 by mrbeefy
Replied by mrbeefy on topic Please help Devo 12s fonts is out of wack
just finished installing the a7401 and the NRF24L01 and never been so happy with this TX. I guess all newer devo 12s will have a different hardware inside but thanks to you i almost returned this to the seller.

Please Log in or Create an account to join the conversation.

More
06 May 2015 16:21 #32179 by PhracturedBlue
Replied by PhracturedBlue on topic Please help Devo 12s fonts is out of wack
It would be helpful if you could take a pic of the circuit board to help identify whether the graphics chip is different. In the next build, I'll have it output the chip id too to see if there is any way we can detect this difference. I may not get to it until this weekend though

Please Log in or Create an account to join the conversation.

More
06 May 2015 18:17 #32183 by mrbeefy
Replied by mrbeefy on topic Please help Devo 12s fonts is out of wack
i will post the pics tonight

Please Log in or Create an account to join the conversation.

More
07 May 2015 01:37 #32194 by mrbeefy
Replied by mrbeefy on topic Please help Devo 12s fonts is out of wack
heres the pictures as promised
Attachments:

Please Log in or Create an account to join the conversation.

Time to create page: 0.035 seconds
Powered by Kunena Forum