testingngngnggg "[" and "]"
diafysal
Posts: 92
test "[noparse][[/noparse]" and "]"
This does not work properly in my browser. I do not know why.
Post Edited (diafysal) : 9/23/2005 10:35:01 PM GMT
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
Parallax IT Dept.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jim
Parallax IT Dept.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jim
Parallax IT Dept.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jim
Parallax IT Dept.
Why does "[noparse][[/noparse]" and "]" disappear in my browser?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jim
Parallax IT Dept.
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]
hmmm
Post Edited (diafysal) : 10/3/2005 8:54:28 PM GMT
[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!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
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.
Perhaps you meant to end your post with "; - )" instead ?