13 of 323
ZBasic System Library 3 ZX Microcontroller Family Input/Output Routines ADCtoCom1() stream analog conversion data to Com1 BusRead() read data from a bus-oriented device BusWrite() write data to a bus-oriented device CloseI2C() deinitialize an I2C communication channel ClosePWM() deinitialize a 16-bit PWM channel ClosePWM8() deinitialize an 8-bit PWM channel CloseSPI() deinitialize an SPI communication channel CloseX10() deinitialize an X-10 communication channel Com1toDAC() receive stream of analog conversion data CountTransitions() count transitions on an input pin DACPin() produce an analog voltage on an output pin DefineBus() specify the parameters for accessing a bus-oriented device DefineSPI() specify the parameters for software-based SPI communication DefineX10() specify the communication parameters for an X-10 channel FreqOut() produce a dual-frequency sine wave on an output pin Get1Wire() receive a bit using the 1-Wire protocol Get1WireByte() receive a byte using the 1-Wire protocol Get1WireData() receive one or more bytes using the 1-Wire protocol GetADC() perform an analog to digital conversion on an input GetPin() read the state of an input pin I2CCmd() send/receive data over an I2C channel I2CGetByte() receive a byte on an I2C channel I2CPutByte() send a byte on an I2C channel I2CStart() create a Start condition on an I2C channel I2CStop() create a Stop condition on an I2C channel InputCapture() record the high/low times of a pulse train on an input pin InputCaptureEx() record the high/low times of a pulse train on an input pin OpenI2C() prepare for I2C communication with an external device OpenI2CSlave() activate I2C slave mode OpenSPI() prepare for SPI communication with an external device OpenSPISlave() activate SPI slave mode OpenPWM() prepare for 16-bit PWM generation OpenPWM8() prepare for 8-bit PWM generation OpenX10() prepare an X-10 communication channel for use OutputCapture() produce a pulse train OutputCaptureEx() produce a pulse train on any output pin PlaySound() reproduce sampled audio on an output pin PortBit() compose a designator for a specific bit in an I/O port PortMask() compute the bitmask for the port with which a pin is associated PulseIn() measure a pulse width on an input pin PulseOut() generate a pulse on an output pin Put1Wire() send a bit using the 1-Wire protocol Put1WireByte() send a byte using the 1-Wire protocol Put1WireData() send one or more bytes using the 1-Wire protocol PutDAC() produce an analog voltage on an output pin PutPin() configure an I/O pin PWM() initiate 16-bit PWM generation or change the duty cycle PWM8() initiate 8-bit PWM generation or change the duty cycle RCTime() measure an RC charge/discharge time Reset1Wire() send a reset signal using the 1-Wire protocol ShiftIn() perform synchronous serial input ShiftInEx() perform synchronous serial input with more configurability ShiftOut() perform synchronous serial output