|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
There's a new preprocessor version in the White Papers section
V2.13 of the BASIC Stamp Preprocessor adds the capability of C style continued source file lines.
Normally, a PBASIC command is required to be on a single line. You are now able to continue lines (as in C) by ending the line with a backslash character. (If you should need to end a line with a backslash but need the next line to not be appended, you may "escape the escape character" by doubling the backslash.) Example: (The following code snippet may look vaguely familiar -- yet somehow different. ) Code:
' Serin COMA\COMB, INBAUD,
' [ oi_swA, oi_swB, rc_swA, rc_swB,
' p2_x, p1_x, p4_x, p3_x,
' PB_mode, packet_num, sensor1, sensor2,
' p2_y, p1_y, sensor3, sensor4,
' p4_y, p3_y, sensor5, sensor6,
' p2_wheel, p1_wheel, sensor7, bat_volt,
' p4_wheel, p3_wheel, p2_aux, p1_aux,
' p4_aux, p3_aux, delta_t, res01 ]
'
Serin COMA\COMB, INBAUD, \
[ oi_swA, oi_swB, rc_swA, rc_swB, \
p2_x, p4_x, \
sensor1, sensor2, \
p2_y, sensor3, \
p4_y, sensor5, sensor6, \
p2_wheel, \
delta_t ]
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Impending BASIC Stamp Editor Beta 2 release | Greg Ross | Programming | 9 | 19-09-2003 06:05 |
| Auxilliary Basic Stamp Chip | Kai Zhao | Technical Discussion | 9 | 07-01-2003 21:21 |
| no basic stamp found! | DLyons | Programming | 7 | 23-12-2002 22:17 |
| I Need Help with downloading Basic Stamp Program | archiver | 1999 | 2 | 23-06-2002 21:57 |
| Question about Basic Stamp | miketwalker | Programming | 3 | 14-01-2002 13:10 |