Code window test

westaust55

Moderator
In case you need the information, a relatively easy way to get the [code] and [/code] markers around your program listing is:
1. click on the Go Advanced button at the bottom right of the post/edit screen
2. select the code text in your post
3. click on the hash symbol (#) at the right hand end of the middle row of formatting icons at the top of the post/edit window which wraps your code in the relevant [code] and [/code] markers.

Task done :)
 

russbow

Senior Member
selected text
[HR][/HR]

Code:
1. click on the Go Advanced button at the bottom right of the post/edit screen
2. select the code text in your post
3. click on the hash symbol (#) at the right hand end of the middle row of formatting icons at 
the top of the post/edit window which wraps your code in the relevant
subscript now normal

superscript now normal

I2R

Thanks for the pointer Westy. Nice touches.
 

GeorgeC47

Senior Member
testing the code trick



Code:
main:

if pin0 = 1 or pin1 = 1 then gosub motor

goto main




motor:

if pin0 = 1 then high 6
if pin0 = 0 then low 6

for w2 = 100 to 200 step 10
   PWMOUT 3,100,w2
   pause 20
next w2


keepgoing: 
if pin0 = 1 or pin1 = 1 then keepgoing

for w2 = 200 to 100 step -10
   PWMOUT 3,100,w2
   pause 20
next w2

PWMOUT 3,0,0

goto main
 

luke.wheat

New Member
Code:
let dirsb = %11111111

Main:
	let w0 = pinsc
	pause 1
	if w0 = 8 then
	sertxd ("One person trapped")
	elseif w0 = 16 then
	sertxd ("One person trapped")
 	elseif w0 = 32 then
	sertxd ("One person trapped")
	elseif w0 = 64 then
	sertxd ("One person trapped")
	elseif w0 = 128 then
	sertxd ("One person trapped")
	elseif w0 = 9 then
	sertxd ("One person trapped, Car on LHS")
	elseif w0 = 17 then
	sertxd ("One person trapped, Car on LHS")
	elseif w0 = 33 then
	sertxd ("One person trapped, Car on LHS")
	elseif w0 = 65 then
	sertxd ("One person trapped, Car on LHS")
	elseif w0 = 129 then
	sertxd ("One person trapped, Car on LHS")
	elseif w0 = 10 then
	sertxd ("One person trapped, Car on RHS")
 	elseif w0 = 18 then
	sertxd ("One person trapped, Car on RHS")
	elseif w0 = 34 then
	sertxd ("One person trapped, Car on RHS")
	elseif w0 = 66 then
	sertxd ("One person trapped, Car on RHS")
	elseif w0 = 130 then
	sertxd ("One person trapped, Car on RHS")
	elseif w0 = 12 then
	sertxd ("One person trapped, Car on USD")
	elseif w0 = 20 then
	sertxd ("One person trapped, Car on USD")
	elseif w0 = 36 then
	sertxd ("One person trapped, Car on USD")
	elseif w0 = 68 then
	sertxd ("One person trapped, Car on USD")
	elseif w0 = 132 then
	sertxd ("One person trapped, Car on USD")
 	elseif w0 = 24 then
	sertxd ("Two people trapped")
	elseif w0 = 40 then
	sertxd ("Two people trapped")
	elseif w0 = 48 then
	sertxd ("Two people trapped")
	elseif w0 = 72 then
	sertxd ("Two people trapped")
	elseif w0 = 80 then
	sertxd ("Two people trapped")
	elseif w0 = 96 then
	sertxd ("Two people trapped")
	elseif w0 = 136 then
	sertxd ("Two people trapped")
	elseif w0 = 144 then
	sertxd ("Two people trapped")
	elseif w0 = 160 then
	sertxd ("Two people trapped")
 	elseif w0 = 192 then
	sertxd ("Two people trapped")
	elseif w0 = 25 then
	sertxd ("Two people trapped, Car on LHS")
	elseif w0 = 41 then
	sertxd ("Two people trapped, Car on LHS")
	elseif w0 = 49 then
	sertxd ("Two people trapped, Car on LHS")
	elseif w0 = 73 then
	sertxd ("Two people trapped, Car on LHS")
	elseif w0 = 81 then
	sertxd ("Two people trapped, Car on LHS")
	elseif w0 = 97 then
	sertxd ("Two people trapped, Car on LHS")
	elseif w0 = 137 then
	sertxd ("Two people trapped, Car on LHS")
	elseif w0 = 145 then
	sertxd ("Two people trapped, Car on LHS")
 	elseif w0 = 161 then
	sertxd ("Two people trapped, Car on LHS")
	elseif w0 = 193 then
	sertxd ("Two people trapped, Car on LHS")
	elseif w0 = 26 then
	sertxd ("Two people trapped, Car on RHS")
	elseif w0 = 42 then
	sertxd ("Two people trapped, Car on RHS")
	elseif w0 = 50 then
	sertxd ("Two people trapped, Car on RHS")
	elseif w0 = 74 then
	sertxd ("Two people trapped, Car on RHS")
	elseif w0 = 82 then
	sertxd ("Two people trapped, Car on RHS")
	elseif w0 = 98 then
	sertxd ("Two people trapped, Car on RHS")
	elseif w0 = 138 then
	sertxd ("Two people trapped, Car on RHS")
 	elseif w0 = 146 then
	sertxd ("Two people trapped, Car on RHS")
	elseif w0 = 162 then
	sertxd ("Two people trapped, Car on RHS")
	elseif w0 = 194 then
	sertxd ("Two people trapped, Car on RHS")
	elseif w0 = 28 then
	sertxd ("Two people trapped, Car on USD")
	elseif w0 = 44 then
	sertxd ("Two people trapped, Car on USD")
	elseif w0 = 52 then
	sertxd ("Two people trapped, Car on USD")
	elseif w0 = 76 then
	sertxd ("Two people trapped, Car on USD")
	elseif w0 = 84 then
	sertxd ("Two people trapped, Car on USD")
	elseif w0 = 100 then
	sertxd ("Two people trapped, Car on USD")
 	elseif w0 = 140 then
	sertxd ("Two people trapped, Car on USD")
	elseif w0 = 148 then
	sertxd ("Two people trapped, Car on USD")
	elseif w0 = 164 then
	sertxd ("Two people trapped, Car on USD")
	elseif w0 = 196 then
	sertxd ("Two people trapped, Car on USD")
	elseif w0 = 56 then
	sertxd ("Three people trapped")
	elseif w0 = 88 then
	sertxd ("Three people trapped")
	elseif w0 = 104 then
	sertxd ("Three people trapped")
	elseif w0 = 112 then
	sertxd ("Three people trapped")
	elseif w0 = 152 then
	sertxd ("Three people trapped")
 	elseif w0 = 168 then
	sertxd ("Three people trapped")
	elseif w0 = 176 then
	sertxd ("Three people trapped")
	elseif w0 = 200 then
	sertxd ("Three people trapped")
	elseif w0 = 57 then
	sertxd ("Three people trapped, Car on LHS")
	elseif w0 = 89 then
	sertxd ("Three people trapped, Car on LHS")
	elseif w0 = 105 then
	sertxd ("Three people trapped, Car on LHS")
	elseif w0 = 113 then
	sertxd ("Three people trapped, Car on LHS")
	elseif w0 = 153 then
	sertxd ("Three people trapped, Car on LHS")
	elseif w0 = 169 then
	sertxd ("Three people trapped, Car on LHS")
 	elseif w0 = 177 then
	sertxd ("Three people trapped, Car on LHS")
	elseif w0 = 201 then
	sertxd ("Three people trapped, Car on LHS")
	elseif w0 = 58 then
	sertxd ("Three people trapped, Car on RHS")
	elseif w0 = 90 then
	sertxd ("Three people trapped, Car on RHS")
	elseif w0 = 106 then
	sertxd ("Three people trapped, Car on RHS")
	elseif w0 = 114 then
	sertxd ("Three people trapped, Car on RHS")
	elseif w0 = 154 then
	sertxd ("Three people trapped, Car on RHS")
	elseif w0 = 170 then
	sertxd ("Three people trapped, Car on RHS")
	elseif w0 = 178 then
	sertxd ("Three people trapped, Car on RHS")
 	elseif w0 = 202 then
	sertxd ("Three people trapped, Car on RHS")
	elseif w0 = 60 then
	sertxd ("Three people trapped, Car on USD")
	elseif w0 = 92 then
	sertxd ("Three people trapped, Car on USD")
	elseif w0 = 108 then
	sertxd ("Three people trapped, Car on USD")
	elseif w0 = 116 then
	sertxd ("Three people trapped, Car on USD")
	elseif w0 = 156 then
	sertxd ("Three people trapped, Car on USD")
	elseif w0 = 172 then
	sertxd ("Three people trapped, Car on USD")
	elseif w0 = 180 then
	sertxd ("Three people trapped, Car on USD")
	elseif w0 = 204 then
	sertxd ("Three people trapped, Car on USD")
 	elseif w0 = 120 then
	sertxd ("Four people trapped")
	elseif w0 = 184 then
	sertxd ("Four people trapped")
	elseif w0 = 216 then
	sertxd ("Four people trapped")
	elseif w0 = 232 then
	sertxd ("Four people trapped")
	elseif w0 = 240 then
	sertxd ("Four people trapped")
	elseif w0 = 121 then
	sertxd ("Four people trapped, Car on LHS")
	elseif w0 = 185 then
	sertxd ("Four people trapped, Car on LHS")
	elseif w0 = 217 then
	sertxd ("Four people trapped, Car on LHS")
	elseif w0 = 233 then
	sertxd ("Four people trapped, Car on LHS")
 	elseif w0 = 241 then
	sertxd ("Four people trapped, Car on LHS")
	elseif w0 = 122 then
	sertxd ("Four people trapped, Car on RHS")
	elseif w0 = 186 then
	sertxd ("Four people trapped, Car on RHS")
	elseif w0 = 218 then
	sertxd ("Four people trapped, Car on RHS")
	elseif w0 = 234 then
	sertxd ("Four people trapped, Car on RHS")
	elseif w0 = 242 then
	sertxd ("Four people trapped, Car on RHS")
	elseif w0 = 124 then
	sertxd ("Four people trapped, Car on USD")
	elseif w0 = 188 then
	sertxd ("Four people trapped, Car on USD")
	elseif w0 = 220 then
	sertxd ("Four people trapped, Car on USD")
 	elseif w0 = 236 then
	sertxd ("Four people trapped, Car on USD")
	elseif w0 = 244 then
	sertxd ("Four people trapped, Car on USD")
	elseif w0 = 248 then
	sertxd ("Five people trapped")
	elseif w0 = 249 then
	sertxd ("Five people trapped, Car on LHS")
	elseif w0 = 250 then
	sertxd ("Five people trapped, Car on RHS")
	else w0 = 252 then
	sertxd ("Five people trapped, Car on USD")
	Endif
 
Top