Prop Quickstart with Human Interface Board
FRC2370
Posts: 128
I have the BST software (using a Mac) and am totally new to Propeller programming, but when i load this code:
CON _clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
SERIAL_BAUD = 115_200
CODES_PER_LINE = 32
DATA_PIN = 26 ' Should be pulled high to 3.3V with 10K resistor.
'As used on Demo Board
CLOCK_PIN = 27 ' Should be pulled high to 3.3V with 10K resistor.
'As used on Demo Board
OBJ
Term : "Parallax Serial Terminal"
Kb : "pedals"
PUB Start
'start the tv terminal
Term.Start(SERIAL_BAUD)
Term.Str(string("Pedals...", Term#NL))
'start the keyboard
Kb.Start(DATA_PIN, CLOCK_PIN)
'echo keystrokes in hex
repeat
repeat CODES_PER_LINE
Term.Char("$") ' hex indicator in Spin
Term.hex(Kb.Getkey, 4)
Term.Char(" ")
Term.Char(Term#NL)
and it says theres an error Term "Parallax Serial Terminal". whats this mean?
CON _clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
SERIAL_BAUD = 115_200
CODES_PER_LINE = 32
DATA_PIN = 26 ' Should be pulled high to 3.3V with 10K resistor.
'As used on Demo Board
CLOCK_PIN = 27 ' Should be pulled high to 3.3V with 10K resistor.
'As used on Demo Board
OBJ
Term : "Parallax Serial Terminal"
Kb : "pedals"
PUB Start
'start the tv terminal
Term.Start(SERIAL_BAUD)
Term.Str(string("Pedals...", Term#NL))
'start the keyboard
Kb.Start(DATA_PIN, CLOCK_PIN)
'echo keystrokes in hex
repeat
repeat CODES_PER_LINE
Term.Char("$") ' hex indicator in Spin
Term.hex(Kb.Getkey, 4)
Term.Char(" ")
Term.Char(Term#NL)
and it says theres an error Term "Parallax Serial Terminal". whats this mean?
Comments
The object files have to be either in the same directory as your source file(s) or in the library directory which is set in one of the preferences windows.
BST doesn't come with Parallax Serial Terminal.spin. Here's a copy.
Parallax Serial Terminal.spin
I wish this was not the case. I installed PropTool on a school PC, and took the library home for my Mac.
As far as I know, the basic library isn't hosted anywhere.