Flowcode Project File Parser

Ben Rowland 2019 (C) Matrix TSL


Target Device

PIC.16F.16F877A

Constants

SIGNED INT ADC_IRR     SIGNED INT ADC_LDR     BOOL false     SIGNED INT ADC_IRL     SIGNED INT ADC_IRF     SIGNED INT ADC_MIC     BOOL true    

Globals

BYTE POut     SIGNED LONG Rotation     HANDLE ConsoleHandle     SIGNED LONG Movement     BYTE x     HANDLE position_handle     BYTE tmr_running    

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

PlayNote

Return:     VOID
Params:     BYTE Note     UNSIGNED INT Delay_ms    
Vars:     UNSIGNED INT inv_note     UNSIGNED INT delayus     UNSIGNED INT delayms     UNSIGNED INT loop    

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

Ev_Timer

Return:     UNSIGNED LONG
Params:     UNSIGNED LONG TimerID    
Vars:     FLOAT rot     FLOAT mov     HANDLE hFF     HANDLE hL     HANDLE hr    

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

LEDOn

Return:     VOID
Params:     BYTE LED    
Vars:     BYTE temp    

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

PlayNote_Sim

Return:     VOID
Params:     BYTE Note     UNSIGNED INT Delay_ms    
Vars:     HANDLE SoundH     BYTE Buffer     UNSIGNED INT Idx     FLOAT Val     FLOAT Tone     UNSIGNED INT Count    

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

CheckIR_Sim

Return:     BYTE
Params:     BYTE Sensor    
Vars:     UNSIGNED INT reading    

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

FF_SampleADC

Return:     VOID
Params:     BYTE Channel    
Vars:     BYTE cnt    

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

Ev_Stop

Return:     UNSIGNED LONG

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

Forward_Sim

Return:     VOID
Params:     BYTE Power    

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

SpinLeft_Sim

Return:     VOID
Params:     BYTE Power    

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

Stop

Return:     VOID

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

LEDOff

Return:     VOID
Params:     BYTE LED    
Vars:     BYTE temp    

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

ReadMic

Return:     SIGNED INT

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

ReadSwitch

Return:     BYTE
Params:     BYTE Switch    

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

SpinLeft

Return:     VOID
Params:     BYTE Power    
Vars:     BYTE motor_left     BYTE motor_right     BYTE scaleFactor     UNSIGNED INT scaleVal    

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

Ev_Pause

Return:     UNSIGNED LONG

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

Forward

Return:     VOID
Params:     BYTE Power    
Vars:     BYTE power_l     BYTE power_r     BYTE scaleFactor     UNSIGNED INT scaleVal    

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

Reverse_Sim

Return:     VOID
Params:     BYTE Power    

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

Ev_Property

Return:     UNSIGNED LONG

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

ReadLineSensor_Sim

Return:     BYTE
Params:     BYTE Sensor    
Vars:     BYTE temp     HANDLE tree_handle    

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

ReadIRSensor_Sim

Return:     UNSIGNED INT
Params:     BYTE Sensor    
Vars:     BYTE temp     HANDLE tree_handle     FLOAT Distance     FLOAT DX     FLOAT DY     FLOAT DZ     HANDLE Collision_handle    

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

ReadLineSensor

Return:     BYTE
Params:     BYTE Sensor    

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

Sim_Scan_Objects_In_Group

Return:     BOOL
Vars:     HANDLE tree_handle     HANDLE scan_handle     BYTE children     STRING Name     BYTE Test    

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

SpinRight

Return:     VOID
Params:     BYTE Power    
Vars:     BYTE motor_left     BYTE motor_right     BYTE scaleFactor     UNSIGNED INT scaleVal    

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

CheckIR

Return:     BYTE
Params:     BYTE Sensor    
Vars:     BYTE Found     UNSIGNED INT Thresh    

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

FF_ReadADC

Return:     UNSIGNED INT

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

Stop_Sim

Return:     VOID

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

ReadIRSensor

Return:     UNSIGNED INT
Params:     BYTE Sensor    
Vars:     BYTE Found    

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

SetMotors

Return:     VOID
Params:     SIGNED INT Left_Power     SIGNED INT Right_Power    
Vars:     BYTE motor_left     BYTE motor_right     UNSIGNED INT power     BYTE scaleFactor     UNSIGNED INT scaledVal    

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

Reverse

Return:     VOID
Params:     BYTE Power    
Vars:     BYTE power_l     BYTE power_r     BYTE scaleFactor     UNSIGNED INT scaleVal     UNSIGNED INT Bal    

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

WaitForSwitch

Return:     VOID
Params:     BYTE Switch    
Vars:     BYTE Wait    

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

ReadLDR

Return:     SIGNED INT

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

Ev_Start

Return:     UNSIGNED LONG

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

Main

Return:     VOID

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

SpinRight_Sim

Return:     VOID
Params:     BYTE Power    

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

FF_SetDutyCycle

Return:     VOID
Params:     BYTE DutyL     BYTE DutyR    

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

Ev_Resume

Return:     UNSIGNED LONG

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

SetMotors_Sim

Return:     VOID
Params:     SIGNED INT Left_Power     SIGNED INT Right_Power    
Vars:     BYTE Dir_L     BYTE Dir_R     SIGNED LONG temp     SIGNED INT Pwr_L     SIGNED INT Pwr_R    

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

WriteLEDs

Return:     VOID
Params:     BYTE LED_Byte    

Your browser does not support the HTML5 canvas tag.

PlayNote    /    Ev_Timer    /    LEDOn    /    PlayNote_Sim    /    CheckIR_Sim    /    FF_SampleADC    /    Ev_Stop    /    Forward_Sim    /    SpinLeft_Sim    /    Stop    /    LEDOff    /    ReadMic    /    ReadSwitch    /    SpinLeft    /    Ev_Pause    /    Forward    /    Reverse_Sim    /    Ev_Property    /    ReadLineSensor_Sim    /    ReadIRSensor_Sim    /    ReadLineSensor    /    Sim_Scan_Objects_In_Group    /    SpinRight    /    CheckIR    /    FF_ReadADC    /    Stop_Sim    /    ReadIRSensor    /    SetMotors    /    Reverse    /    WaitForSwitch    /    ReadLDR    /    Ev_Start    /    Main    /    SpinRight_Sim    /    FF_SetDutyCycle    /    Ev_Resume    /    SetMotors_Sim    /    WriteLEDs    /    Initialise

Initialise

Return:     VOID
Vars:     BYTE Press    

Your browser does not support the HTML5 canvas tag.

Verison History

Version 0.6
12/09/19 BR - Created initial recursive parser
14/09/19 BR - Added support for disabled icons
18/09/19 BR - Fixed decision icon parsing
19/09/19 BR - Added switch icon support
23/09/19 BR - Fixed recursive loop spacing
27/09/19 BR - Further tweaked spacing and added Macro menu
30/09/19 BR - Improved all string spacing
01/10/19 BR - Improved While icon support