Jump to content

Component: SysBlocks (E-blocks 2)

From Flowcode Help
Author Matrix TSL
Version 1.0
Category E-blocks 2


SysBlocks component

Component Source Code

Please click here to download the component source project: FC_Comp_Source_SysBlocks.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_SysBlocks.fcfx

Detailed description

Please click here for a SysBlocks getting started guide.

Examples

No additional examples

Macro reference

Initialise

Initialise
Initialise components 
- VOID Return


LCDClear

LCDClear
 
- VOID Return


LCDWriteString

LCDWriteString
 
- BYTE X
 
- BYTE Y
 
- STRING Data
 
- VOID Return


ReadEncoderCounter

ReadEncoderCounter
Reads the current dial counter This is a counter from -32768 to 32767 
- BYTE Channel
Range: 0-1 
- INT Return


ReadSwitch

ReadSwitch
Samples one of the digital switches 
- BYTE Channel
Range: 0-2 
- BOOL Return


ReadSwitches

ReadSwitches
Samples all of the digital switches and returns as a three bit value. 
- BYTE Return


ResetEncoderCounter

ResetEncoderCounter
Resets the encoder dial counter to zero 
- BYTE Channel
Range: 0-1 
- VOID Return


SetDigitalPotWiper

SetDigitalPotWiper
Sets the value of one of the digital potentiometers. 
- BYTE Channel
Range: 0-5 
- UINT Value
129 Taps Range: 0-128 / 257 Taps Range: 0-256 
- VOID Return


UsbGetByte

UsbGetByte
Reads the next available byte from the circular buffer, Returns 255 if the buffer is empty. 
- UINT Return


UsbGetNumberBytes

UsbGetNumberBytes
Returns the number of valid data bytes currently inside the buffer. 
- UINT Return


UsbLookForValue

UsbLookForValue
Scans the buffer for an array of specific values. Returns 0 if the value is not found. Returns 1 if the value is found. 
- STRING Value
Value to look for, can be a string or byte array, 
- BYTE NumChars
The number of characters you wish to try and match 
- BYTE RemoveContent
0=Leave data alone, 1=Remove data from buffer 
- BYTE ResetFind
0=Continue the find from the last operation, 1=Start again 
- BYTE Return


UsbSendString

UsbSendString
Sends a string to the USB 
- STRING Data
String to send 
- VOID Return


WriteLED

WriteLED
Writes to one of the LEDs as a digital output 
- BYTE Channel
Range: 0-2 
- BOOL Value
0=Off, 1=On 
- VOID Return


WriteLEDs

WriteLEDs
Writes to all of the LEDs as digital outputs 
- BYTE Values
Range: 0 (All Off) - 7 (All On) 
- VOID Return


WriteVU

WriteVU
Writes to one of the 8-bit VU meters 
- BYTE Channel
0=VU_A, 1=VU_B 
- BYTE Value
Range: 0-255 
- VOID Return


WriteVUBargraph

WriteVUBargraph
Outputs a bargraph to the VU allowing for level visualiusation. 
- BYTE Channel
0 = VU_A, 1=VU_B 
- BYTE Value
Range: 0 - 8 
- VOID Return


Property reference

Properties