Sign in

username:

password:



Not a member?

Search basicx



Search tips

Subscribe to basicx



basicx by Keywords

Accelerometer | ADC | ADXL | Adxl20 | AVR | BasicStamp | BX-35 | BX28 | BX35 | COM3 | Compiler | Downloader | EEPROM | Electromagnet | GetADC | GP2D1 | GPS | I2C | IDE | Keypad | LCD | LCD+ | MIDI | Motors | Multitasking | Netmedia | Networking | PCB | PID | PlaySound | PWM | Relays | RTC | Servo | ShiftOut | SitePlayer | SPI | Stack | Timer | USB

Ads

Discussion Groups

Discussion Groups | BasicX | Soundgin control

Discussion forum for the BasicX family of microcontroller chips.

Soundgin control - bonniewietecha - Jul 24 7:38:48 2007

In basic stamp I used the serialout command to control my soundgin
frequency with three 8bit commands as follows.

serout 1,9600,[27,88,64]

Now with the basicx I'm trying to do the same. Would this be correct?
Also what is the argument, where the four is located, used for?

start = 27
os1 = 88
freq = 64

' Put some Pi in the oven.
Call PutQueue(Q, start, 4)
Call PutQueue(Q, os1, 4)
Call PutQueue(Q, freq, 4)



(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )


Re: Soundgin control - Tom Becker - Jul 24 11:15:38 2007

In the PutQueue documentation example that you've referenced, Pi is a
Single-type variable, which occupies four bytes.
Tom



(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )