Rotate/ru

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(New page: {{Languages|Rotate}} Here's a quick and simple C program that reads a packet from the accelerometer once per second, and rotates the screen to a new orientation if the orientation has cha...)
 
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
 
{{Languages|Rotate}}
 
{{Languages|Rotate}}
  
Here's a quick and simple C program that reads a packet from the
+
Это быстрая и простая программа на С которая читает пакеты с акселерометров раз в секунду и поворачивает экран чтобы верх был всегда правильно.           
accelerometer once per second, and rotates the screen to a new
+
orientation if the orientation has changed.           
+
  
 
I don't mean this to conflict with Paul's excellent work on [[Gestures]];
 
I don't mean this to conflict with Paul's excellent work on [[Gestures]];
Line 11: Line 9:
 
so perhaps that will be done on-demand instead of always-on.)
 
so perhaps that will be done on-demand instead of always-on.)
  
The code is:
+
Код здесь:
 
   http://github.com/cjb/freerunner-rotate/tree/master/rotate.c?raw=true
 
   http://github.com/cjb/freerunner-rotate/tree/master/rotate.c?raw=true
  
Line 19: Line 17:
 
There's also a complete rewrite at http://blog.1407.org/tag/rotate
 
There's also a complete rewrite at http://blog.1407.org/tag/rotate
  
== Patches ==
+
== Патчи ==
 
And you're welcome to make patches against the GIT repo here:
 
And you're welcome to make patches against the GIT repo here:
 
   git://github.com/cjb/freerunner-rotate.git
 
   git://github.com/cjb/freerunner-rotate.git
Line 37: Line 35:
 
Chris Ball  <cjb_at_laptop_dot_org>
 
Chris Ball  <cjb_at_laptop_dot_org>
  
== Packages and Binaries ==
+
== Пакеты и исполняемые файлы ==
  
* Package from Jozef Mlich (not perfect):
+
* Package from Jozef Mlich (не совершенен):
 
   http://joejoe.blog.root.cz/2008/09/23/akcelerometry-v-openmoku/
 
   http://joejoe.blog.root.cz/2008/09/23/akcelerometry-v-openmoku/
  

Latest revision as of 14:15, 6 October 2008


Это быстрая и простая программа на С которая читает пакеты с акселерометров раз в секунду и поворачивает экран чтобы верх был всегда правильно.

I don't mean this to conflict with Paul's excellent work on Gestures; my reason for writing it is so that it can be used as an always-on daemon in the OM distributions. (Full gesture interpretation is more CPU heavy and requires reading data more often than once per second, so perhaps that will be done on-demand instead of always-on.)

Код здесь:

  http://github.com/cjb/freerunner-rotate/tree/master/rotate.c?raw=true

There's an ARM binary here (chmod a+x rotate && ./rotate):

  http://dev.laptop.org/~cjb/rotate

There's also a complete rewrite at http://blog.1407.org/tag/rotate

[edit] Патчи

And you're welcome to make patches against the GIT repo here:

  git://github.com/cjb/freerunner-rotate.git

[edit] Maintainership

Would anyone else be interested in being the maintainer of this package? It would involve packaging it up in bitbake/OE and trying to persuade the various OM distros to include it by default. (Perhaps with an on/off control panel entry in distros that make that easy to do?)

Comments appreciated. Thanks!

- Chris. -- Chris Ball <cjb_at_laptop_dot_org>

[edit] Пакеты и исполняемые файлы

  • Package from Jozef Mlich (не совершенен):
  http://joejoe.blog.root.cz/2008/09/23/akcelerometry-v-openmoku/
  opkg install http://projects.openmoko.org/frs/download.php/392/accel-rotate_0.2_armv4t.ipk
  update-rc.d accel-rotate defaults


No-screenshot.png Rotate

Rotates the screen according to the position of the Neo FreeRunner.


Homepage: [- -]
Package: accel-rotate (external download)
Tested on: -

Personal tools


Here's a quick and simple C program that reads a packet from the accelerometer once per second, and rotates the screen to a new orientation if the orientation has changed.

I don't mean this to conflict with Paul's excellent work on Gestures; my reason for writing it is so that it can be used as an always-on daemon in the OM distributions. (Full gesture interpretation is more CPU heavy and requires reading data more often than once per second, so perhaps that will be done on-demand instead of always-on.)

The code is:

  http://github.com/cjb/freerunner-rotate/tree/master/rotate.c?raw=true

There's an ARM binary here (chmod a+x rotate && ./rotate):

  http://dev.laptop.org/~cjb/rotate

There's also a complete rewrite at http://blog.1407.org/tag/rotate

Patches

And you're welcome to make patches against the GIT repo here:

  git://github.com/cjb/freerunner-rotate.git

Maintainership

Would anyone else be interested in being the maintainer of this package? It would involve packaging it up in bitbake/OE and trying to persuade the various OM distros to include it by default. (Perhaps with an on/off control panel entry in distros that make that easy to do?)

Comments appreciated. Thanks!

- Chris. -- Chris Ball <cjb_at_laptop_dot_org>

Packages and Binaries

  • Package from Jozef Mlich (not perfect):
  http://joejoe.blog.root.cz/2008/09/23/akcelerometry-v-openmoku/
  opkg install http://projects.openmoko.org/frs/download.php/392/accel-rotate_0.2_armv4t.ipk
  update-rc.d accel-rotate defaults


No-screenshot.png Rotate

Rotates the screen according to the position of the Neo FreeRunner.


Homepage: [- -]
Package: accel-rotate (external download)
Tested on: -