Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Clip+: Begging for Help with My Theme
« previous next »
  • Print
Pages: [1]

Author Topic: Clip+: Begging for Help with My Theme  (Read 1590 times)

Offline Curmudgeon

  • Member
  • *
  • Posts: 8
Clip+: Begging for Help with My Theme
« on: April 07, 2015, 11:06:42 AM »
Anybody willing to look at my code and spot errors?

Trying to create a theme. Have coded elsewhere (Fortran, VB, C++) for decades and (to best of my ability) have RTFM. (It could be a little more specific in places.)

Trying to run my code in rockboxui simulator. Haven't tried it on actual device yet -- Want to use it regularly!

Should would appreciate a kick in the butt hint what's going on.
* OTRNight.wps (3.32 kB - downloaded 92 times.)

* display.png (4.68 kB, 164x115 - viewed 197 times.)
* OTRNight.cfg (6.43 kB - downloaded 87 times.)
* README.txt (1.69 kB - downloaded 95 times.)
Logged

Offline Bryanhoop

  • Member
  • *
  • Posts: 21
Re: Clip+: Begging for Help with My Theme
« Reply #1 on: April 07, 2015, 02:29:48 PM »
Your viewports in:

# ***************************** AREA IN THE MIDDLE OF THE SCREEN **********************

have an extra '0' value.

Also keep in mind that the screen is divided into 3 parts. 16 yellow rows, 2 dead rows, and 48 cyan rows.
« Last Edit: April 07, 2015, 02:32:55 PM by Bryanhoop »
Logged

Offline Curmudgeon

  • Member
  • *
  • Posts: 8
Re: Clip+: Begging for Help with My Theme
« Reply #2 on: April 07, 2015, 09:17:01 PM »
Thank you, Bryanhoop. I've corrected the viewports. That was easy. However, based on your info re: yellow/dead/cyan rows, I have to re-think my entire layout. That's going to take a while, but I'll be back, when that's done.

BTW, I tried to find the specs concerning the Clip+ display, but failed. Where was it hiding? Further, what was Sansa thinking when they designed it this way?
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Clip+: Begging for Help with My Theme
« Reply #3 on: April 07, 2015, 10:10:29 PM »
Theres detailed datasheets for the display on google (you can buy it for your own projects if you want), but its a monochrome display (1 bit per pixel), 128x64 pixels divided into two different color sections like Bryan said. 
Logged

Offline Curmudgeon

  • Member
  • *
  • Posts: 8
Re: Clip+: Begging for Help with My Theme
« Reply #4 on: April 09, 2015, 08:12:11 PM »
Successful progress report:
Bryanhoop pointed out two coding errors, plus info on the specifics of display screen. This forced me to rearrange my usage of the display's "real estate".  Also, it let me proceed to a point that revealed that, for the larger fonts I wanted, I had too many things on the screen, forcing me to reduce my expectations. Result: I've gotten very close to a theme that functions well for me.

Saratoga further discussed the details of the display. This encouraged me to dig deeper on the web. Results:
1. The display is essentially two displays in one.
2. It is up eight 'pages', each 8-pixel 'rows' high, yielding 64 rows of pixels.
3. Two pages (16 rows) at the top of the display, monochrome yellow.
4. Four pages (48 rows) at the bottom of the display, monochrome cyan.
5. Between the top and bottom, there's an unusable black gap.
     a. It consumes none of the 64 rows.
     b. I think it's there for efficient manufacture of the display.
6. When coding, it's possible to have a viewport that crosses the black bar, but it's distracting (to me, anyway).
To confirm this, I added the following to a .wps:
   %pb(2,1,123,4,pb-128x64x1.bmp) # thank you, cabbiev2.wps
   %V(2,17,124,1,1)
   %xd(b)
   %V(2,18,124,1,1)
   %xd(b)
The two lines appear on the display.

SO, CASE CLOSED --------------- i think
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Clip+: Begging for Help with My Theme
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.075 seconds with 15 queries.