3,11 → 3,9 |
* minimal canvas to test Abstraction layer on various Phones |
* |
* Author: Marcus -LiGi- Bueschleb |
* Project-Start: 9/2007 |
* Mailto: ligi@smart4mobile.de |
* Licence: Creative Commons / Non Commercial |
* ( see README for exact terms of usage) |
* Big Up: Holger&Ingo |
* |
* see README for further Infos |
* |
***************************************************************/ |
|
import javax.microedition.lcdui.*; |
126,6 → 124,7 |
|
public void paint_lcd(Graphics g,boolean bottomup) |
{ |
|
int y; |
|
for(int i=0;i<lcd_lines.length;i++) |
226,6 → 225,8 |
|
while(true) |
{ |
try { |
|
repaint(); |
serviceRepaints(); |
|
244,11 → 245,13 |
{ |
motor_test[m]+=act_motor_increase; |
if (motor_test[m]<0)motor_test[m]=0; |
if (motor_test[m]>255)motor_test[m]=255; |
} |
else |
{ |
motor_test[act_motor]+=act_motor_increase; |
if (motor_test[act_motor]<0)motor_test[act_motor]=0; |
if (motor_test[act_motor]<0) motor_test[act_motor]=0; |
if (motor_test[act_motor]>255) motor_test[act_motor]=255; |
} |
|
mk.motor_test(motor_test); |
338,7 → 341,8 |
|
sleeptime=1000/ 15 - (int) (System.currentTimeMillis()- loopStartTime); |
|
|
|
|
if (sleeptime<0) |
sleeptime=100; // everyone has fi sleep |
|
348,6 → 352,11 |
err="Problem Sleeping "; |
} |
|
} |
catch (Exception e) |
{ |
err+=e.toString(); |
} |
} |
} |
|