/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / Improving CircleOS UI

Username:     
Password:     
             

Forum

# 1   2008-02-24 20:28:57 Improving CircleOS UI

Kram
Member
Registered: 2008-01-22
Posts: 24

Improving CircleOS UI

I started looking at the Circle OS code to try and improve the UI.

I found out how to invert the pointer, however I think this might affect all mems readings, and it affects the screen rotation.

Add this after line 173 of mems.c (the preceding line is:
MEMS_Info.OutZ =  OutZL + ( OutZH << 8 );

Code:

MEMS_Info.OutY =~ MEMS_Info.OutY;

I would like to make the pointer a constant speed for diffferent cpu frequency, though I have no idea how to do that.

Also I think the menu could be improved a lot, by using X axis of the mems to select items, instead of the button. I will look at this next.

Last edited by Kram (2008-02-24 21:03:29)

Offline

 

# 2   2008-02-24 21:28:05 Improving CircleOS UI

Francis
Administrator
From: France-Grenoble
Registered: 2007-07-09
Posts: 890

Re: Improving CircleOS UI

Note that a "double click" is detected by CircleOS and allows to select an item within a menu (in CircleOS 1.7).

Offline

 

# 3   2008-02-24 22:27:43 Improving CircleOS UI

Kram
Member
Registered: 2008-01-22
Posts: 24

Re: Improving CircleOS UI

thats easyer than pressing the button smile

Seems my code is wrong anyway (it just rotates the screen, pointer is same), and the change should be in pointer.c but I cant work out what or where.



Also Ride keeps crashing, happens whenever I accidentally scroll or edit code whilst in debug mode.

Last edited by Kram (2008-02-24 22:29:28)

Offline

 

# 4   2008-02-25 05:53:23 Improving CircleOS UI

Francis
Administrator
From: France-Grenoble
Registered: 2007-07-09
Posts: 890

Re: Improving CircleOS UI

To change the speed, you could try to change the tick division for the pointer handler.
At the moment, POINTER_DIVIDER is a constant, and you could repllace iy by a variable.
There will be soon a release for RIDE7 (mid-March).

Offline

 

Board footer