Shop OBEX P1 Docs P2 Docs Learn Events
testingngngnggg "[" and "]" — Parallax Forums

testingngngnggg "[" and "]"

diafysaldiafysal Posts: 92
edited 2005-10-26 19:33 in General Discussion
test "[noparse][[/noparse]" and "]"

     System.out.print(buff[noparse][[/noparse]0]);
     System.out.print(buff[noparse][[/noparse]0]);
     System.out.print(buff[noparse][[/noparse]0]);



     System.out.print(buff[noparse][[/noparse]0]);
     System.out.print(buff);
     System.out.print(buff);




/* Simple test program to Identify Firmware Version Number.
 * From "ServoController.pdf"
 *
 *(please improve the coding)
 *
 * diafysal
 */
import stamp.core.*;

public class test_ver {


  public static void main() {

    char [noparse][[/noparse]] buff;
    buff = new char;            // data from PSC

    Uart myUart = new Uart(Uart.dirTransmit,
                           CPU.pin0,          // Serial Data I/O pin
                           Uart.dontInvert,
                           Uart.speed2400,
                           Uart.stop2);

    while(true) {

      System.out.println("Finding PSC");

      myUart.sendString("!SCVER?");         //send command
      myUart.sendByte(0x0D);                //end of command

      while (!myUart.sendBufferEmpty()) ;   //wait for buffer empty

      myUart.setDirection(Uart.dirReceive);      //change direction

      buff[noparse][[/noparse]0] = (char)myUart.receiveByte();       //receive response
      buff = (char)myUart.receiveByte();
      buff = (char)myUart.receiveByte();

      myUart.setDirection(Uart.dirTransmit);     //change direction

      System.out.print("PSC ver: ");
      System.out.print(buff[noparse][[/noparse]0]);
      System.out.print(buff);
      System.out.print(buff);

      CPU.delay( 30000 );  // Long delay

      System.out.print('\u0010');  // Clears the terminal

    }                                                // end while
  }                                                  // end main
}                                                    // end class declaration




      System.out.print(buff[noparse][[/noparse]0]);
      System.out.print(buff);
      System.out.print(buff);




This does not work properly in my browser. I do not know why.

Post Edited (diafysal) : 9/23/2005 10:35:01 PM GMT

Comments

  • Jim EwaldJim Ewald Posts: 733
    edited 2005-09-28 20:08
    timer test

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jim

    Parallax IT Dept.ban_thanks.gif
  • Jim EwaldJim Ewald Posts: 733
    edited 2005-09-28 20:08
    timer test2

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jim

    Parallax IT Dept.ban_thanks.gif
  • Jim EwaldJim Ewald Posts: 733
    edited 2005-09-28 20:11
    testing 222

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jim

    Parallax IT Dept.
  • Jim EwaldJim Ewald Posts: 733
    edited 2005-09-28 20:11
    testing 3333



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jim

    Parallax IT Dept.
  • diafysaldiafysal Posts: 92
    edited 2005-09-29 23:55
    Hey ! IT Guy.
    Why does "[noparse][[/noparse]" and "]" disappear in my browser?
  • Jim EwaldJim Ewald Posts: 733
    edited 2005-10-03 13:59
    Are you saying that the square brackets [noparse][[/noparse] ] are not displayed in your browser? Which browser are you using?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jim

    Parallax IT Dept.
  • diafysaldiafysal Posts: 92
    edited 2005-10-03 20:51
    If I edit my post all square brackets [noparse][[/noparse] ] is there.
    When I look at the tread only the square brackets [noparse][[/noparse] ] with a "0" inside is shown.
    The one with 1,2 or 3 inside does not show.

    I'm using Firefox 1.0.6

    (edit)
    [noparse][[/noparse]0]


    [noparse][[/noparse]0]
    
    
    
    



    hmmm

    Post Edited (diafysal) : 10/3/2005 8:54:28 PM GMT

  • TD-LinuxTD-Linux Posts: 33
    edited 2005-10-17 20:53
    Same here - Firefox 1.0.6, and anything besides [noparse][[/noparse]0] does not appear. Will report the bug.

    [noparse][[/noparse]0] - [noparse][[/noparse] zero ]
    - [noparse][[/noparse] one ]
    - [noparse][[/noparse] two]

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    SX-Key + SX52 + Proto Board + SX-Key Software + Computer + USB to Serial Adapter + LED = Blinky LED!

  • diafysaldiafysal Posts: 92
    edited 2005-10-18 13:22
    Testing
     - one
    [noparse][[/noparse]1*] - one *
    [i] - letter "i"
    [noparse][[/noparse]i*] - letter "i" *[/i]
    
  • John Raplee, JrJohn Raplee, Jr Posts: 32
    edited 2005-10-26 03:49
    That's why you need to use IE! Firefox needs to die. [noparse]:)[/noparse]

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ENIAC: P4 2.8ghz E, 1024MB PC3200 Dual Channel 800MHZ, P4C800E-Deluxe, ATI X800XL, 120GB Sata WD HDD, Audigy 2 ZS Sound, AMG 1080 Antec case, Bose TriPort Headphones.· Running on Windows XP Pro SP 2.
  • diafysaldiafysal Posts: 92
    edited 2005-10-26 19:33
    I got the same result with IE 6 !
    Perhaps you meant to end your post with "; - )" instead ?
Sign In or Register to comment.