Page 16 of 346 Start Back Next End ZBasic System Library 4 ZBasic Microcontrollers Date/Time Routines GetDate() get the month, day, year corresponding to a day number GetDateVdlue() get the month, day, year corresponding to a day number (packed) GetDayNumber() compute the day number corresponding to a day of a year GetDayOfWeek() get the day of the week corresponding to a date value GetDayOfYear() get the ordinal day of the year corresponding to a date value GetElapsedMicroTime() compute an elapsed time relative to previous timing data GetMicroTime() populate a buffer with high resolution timing data GetTime() get the current hour, minute and second GetTimestamp() get the current date and time information GetTimeValue() get the current hour, minute and second (packed) PutDate() set the current month, day, year PutTime() set the current hour, minute and second 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