next up previous
Next: 5.4 LCDSegment.java Up: 5 examples/view サンプル Previous: 5.2 View.java

5.3 LCDNumber.java


import josx.platform.rcx.LCD;

public class LCDNumber
{
  private LCDNumber()
  {
  }

  public static void set( int value,
                 int decimals, boolean signed)
  {
    LCD.setNumber ( signed ? 0x3001 : 0x301f,
                 value, 0x3002 + decimals);
  }
}


generated through LaTeX2HTML. M.Inaba 平成18年5月6日