'08Test4.bas ' gets inputs for 20htmlserver
#picaxe 08m2
#terminal 19200 'turn on terminal after program load--16mHz
'#no_data
'#no_table
symbol pTCPin=4 ' b.6 receive http/TCP
symbol cBaudrate=T19200_16
setfreq m16
pause 16000
sertxd("08Test4",cr,lf)
main:
do
serin [64000,skip], pTCPin, cBaudrate, b0,b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11 ' 8 sec@32mHz
sertxd(b0,b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11," ")
skip:
pause 2000
loop
Symbol oLCDpin7 = outpinB.7 '28 S.7 B.7 for writing to the output pin directly
Symbol oLCD7 = S.7 '28 B.7 S.7
Symbol oLCDRS = S.8 '11 C.0
Symbol oLCDEn = S.9 '12 C.1 S.9 (pwmC.1)
Symbol oLCDBkLite = S.10 '13 C.2 S.10 (pwmC.2) - Used to control backlight brightness
'Symbol = S.11 '16 C.5 hspi sdo
'Symbol = S.12 '15 C.4 hspi sdi / hi2c sda
Symbol oLED = S.13 '14 C.3 hspi sck / hi2c scl
'
' **** Registers ****
'
' Keystroke validation/usage status bits
Symbol tKeyResolved = bit1 'Keypress has been resolved and Key number (1 to 26) identified
Symbol tKeyTimeOut = bit2 'Key has been held and timer has expired
Symbol tKeyDown = bit4 'Key identified was still held at last read
'
' Timer status/control bits
Symbol tOnTimeChgd = bit1 'Used during configuration of On and Off times
Symbol tOffTimeChgd = bit2 'Used during configuration of On and Off times
Symbol tTickFlag = bit3 'Indicates when time is to be rewritten to screen
Perhaps not-so-goody! It was last edited in 2011 and in need of updating for the new forum format.And an oldy but goody.
FYI, at the bottom of every forum page there is an item called "Help" that takes you to a page where BBCODE is explained in detail. One of those items is for the [CODE] item where [CODE=rich] {paste your program items from PE} [/CODE] is necessary to properly show the color version of "Copy for Forum" code.ended up with huge numbers of extra characters appearing
What does the inline code option do?
Puts your code into the current line of text, in a neat little font, without using the entry box and (presumably) without indentation.