Shop OBEX P1 Docs P2 Docs Learn Events
Need Help Using BS.2 Object for the First Time — Parallax Forums

Need Help Using BS.2 Object for the First Time

MikerocontrollerMikerocontroller Posts: 310
edited 2010-01-24 03:06 in Propeller 1
· Hello, I'm trying to write my first Program using the BS.2 Functions library.· I compiled the application with this code as the top object file.· Can you tell me what is missing here?· I get an error code for the FREQOUT method call:· "expected variable or expression"

CON
··· _clkmode = xtal1 + pll16x
··· _xinfreq = 5_000_000
····················
OBJ
··· BS2 : "BS2_Functions"
PUB Start
··· BS2.start (31,30)······· ' Initialize BS2 Object timing, Rx and Tx pins for DEBUG
··· FREQOUT(11, 1000, 3000)· ' Play 3000 Hz. tone, 1 sec. duration, pin 11 ( left channel)

Comments

Sign In or Register to comment.