Need Help Using BS.2 Object for the First Time
· 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)
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