Component: Formula AllCode API (AllCode): Difference between revisions
Appearance
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable"" |
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;" align="center"" to "width="10%" align="center" class="mtx-class-macrohead"" |
||
| Line 85: | Line 85: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Backwards''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Backwards''' | ||
|- | |- | ||
| Line 104: | Line 104: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CardBitmap''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CardBitmap''' | ||
|- | |- | ||
| Line 133: | Line 133: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CardCreate''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CardCreate''' | ||
|- | |- | ||
| Line 152: | Line 152: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CardErase''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CardErase''' | ||
|- | |- | ||
| Line 171: | Line 171: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CardInit''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CardInit''' | ||
|- | |- | ||
| Line 185: | Line 185: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CardOpen''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CardOpen''' | ||
|- | |- | ||
| Line 204: | Line 204: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CardPlayback''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CardPlayback''' | ||
|- | |- | ||
| Line 223: | Line 223: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CardReadByte''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CardReadByte''' | ||
|- | |- | ||
| Line 237: | Line 237: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CardRecordMic''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CardRecordMic''' | ||
|- | |- | ||
| Line 271: | Line 271: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CardWriteByte''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''CardWriteByte''' | ||
|- | |- | ||
| Line 290: | Line 290: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''EncoderRead''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''EncoderRead''' | ||
|- | |- | ||
| Line 309: | Line 309: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''EncoderReset''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''EncoderReset''' | ||
|- | |- | ||
| Line 323: | Line 323: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Forwards''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Forwards''' | ||
|- | |- | ||
| Line 342: | Line 342: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetConsoleHandle''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetConsoleHandle''' | ||
|- | |- | ||
| Line 356: | Line 356: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetProp''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''GetProp''' | ||
|- | |- | ||
| Line 375: | Line 375: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDBacklight''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDBacklight''' | ||
|- | |- | ||
| Line 394: | Line 394: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDClear''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDClear''' | ||
|- | |- | ||
| Line 408: | Line 408: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDDrawLine''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDDrawLine''' | ||
|- | |- | ||
| Line 442: | Line 442: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDDrawPixel''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDDrawPixel''' | ||
|- | |- | ||
| Line 471: | Line 471: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDDrawRect''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDDrawRect''' | ||
|- | |- | ||
| Line 505: | Line 505: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDPrintNumber''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDPrintNumber''' | ||
|- | |- | ||
| Line 534: | Line 534: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDPrintString''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDPrintString''' | ||
|- | |- | ||
| Line 563: | Line 563: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDVerbose''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LCDVerbose''' | ||
|- | |- | ||
| Line 582: | Line 582: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LEDOff''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LEDOff''' | ||
|- | |- | ||
| Line 601: | Line 601: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LEDOn''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LEDOn''' | ||
|- | |- | ||
| Line 620: | Line 620: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LEDWrite''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''LEDWrite''' | ||
|- | |- | ||
| Line 639: | Line 639: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Left''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Left''' | ||
|- | |- | ||
| Line 658: | Line 658: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PlayNote''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''PlayNote''' | ||
|- | |- | ||
| Line 682: | Line 682: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadAllSensors''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadAllSensors''' | ||
|- | |- | ||
| Line 696: | Line 696: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadAllValue''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadAllValue''' | ||
|- | |- | ||
| Line 715: | Line 715: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadAxis''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadAxis''' | ||
|- | |- | ||
| Line 734: | Line 734: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadBearing''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadBearing''' | ||
|- | |- | ||
| Line 748: | Line 748: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadIR''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadIR''' | ||
|- | |- | ||
| Line 767: | Line 767: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadLight''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadLight''' | ||
|- | |- | ||
| Line 781: | Line 781: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadLine''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadLine''' | ||
|- | |- | ||
| Line 800: | Line 800: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadMic''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadMic''' | ||
|- | |- | ||
| Line 814: | Line 814: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadSwitch''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadSwitch''' | ||
|- | |- | ||
| Line 833: | Line 833: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Right''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Right''' | ||
|- | |- | ||
| Line 852: | Line 852: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SampleAccel''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SampleAccel''' | ||
|- | |- | ||
| Line 866: | Line 866: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SampleMag''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SampleMag''' | ||
|- | |- | ||
| Line 880: | Line 880: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ServoAutoMoveToPosition''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ServoAutoMoveToPosition''' | ||
|- | |- | ||
| Line 904: | Line 904: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ServoDisable''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ServoDisable''' | ||
|- | |- | ||
| Line 923: | Line 923: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ServoEnable''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ServoEnable''' | ||
|- | |- | ||
| Line 942: | Line 942: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ServoSetAutoMoveSpeed''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ServoSetAutoMoveSpeed''' | ||
|- | |- | ||
| Line 961: | Line 961: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ServoSetPosition''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ServoSetPosition''' | ||
|- | |- | ||
| Line 985: | Line 985: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetLogoSpeed''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetLogoSpeed''' | ||
|- | |- | ||
| Line 1,004: | Line 1,004: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetMotors''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetMotors''' | ||
|- | |- | ||
| Line 1,028: | Line 1,028: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetProp''' | | width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''SetProp''' | ||
|- | |- | ||
Revision as of 14:17, 13 July 2026
| Author | Matrix Ltd |
| Version | 1.2 |
| Category | AllCode |
Formula AllCode API component
A simulation only component to allow the Formula AllCode robot to be controlled via it's API interface and Bluetooth data connection without having to compile or re-program the robot.
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
Backwards
| Backwards | |
| Drives the robot backwards - waits for the distance to be traversed before returning | |
| Distance | |
| Distance in mm | |
| Return | |
CardBitmap
| CardBitmap | |
| Displays a monochrome bitmap read from the card on the LCD | |
| X | |
| Range 0-127 | |
| Y | |
| Range 0-31 | |
| Filename | |
| Return | |
CardCreate
| CardCreate | |
| Attempts to create a file on the SD card 255=Error, 1=File Already Exists, 0=Create OK | |
| Filename | |
| Return | |
CardErase
| CardErase | |
| Attempts to delete an existing file on the SD card 255=Error, 1=File not found, 0=Delete OK | |
| Filename | |
| Return | |
CardInit
| CardInit | |
| Attempts to startup the SD card 255=No Card, 254=Init Fail, 0=Init OK | |
| Return | |
CardOpen
| CardOpen | |
| Attempts to open an existing file on the SD card 255=Error, 1=File not found, 0=Open OK | |
| Filename | |
| Return | |
CardPlayback
| CardPlayback | |
| Plays back a .Wav file audio stream from the card | |
| Filename | |
| Return | |
CardReadByte
| CardReadByte | |
| Reads a byte from the currently open file. Starts at the beginning of the file and auto increments to the end | |
| Return | |
CardRecordMic
CardWriteByte
| CardWriteByte | |
| Appends a byte to the end of the currently open file | |
| Data | |
| Return | |
EncoderRead
| EncoderRead | |
| Reads one of the motor encoder counters. Approx 0.328296mm of travel per encoder unit. | |
| index | |
| 0=Left, 1=Right | |
| Return | |
EncoderReset
| EncoderReset | |
| Resets the motor encoder counters | |
| Return | |
Forwards
| Forwards | |
| Drives the robot forwards - waits for the distance to be traversed before returning | |
| Distance | |
| Distance in mm | |
| Return | |
GetConsoleHandle
| GetConsoleHandle | |
| Gets the handle to the console allowing data displaying on the panel etc. | |
| Return | |
GetProp
| GetProp | |
| Allows the property filter for the COM port list to be copied to a parent component. | |
| PropName | |
| Return | |
LCDBacklight
| LCDBacklight | |
| Allows the LCD backlight brighntess to be adjusted | |
| Intensity | |
| Range 0-100, 0=Off, 1=Min Brightness, 100=Max Brightness | |
| Return | |
LCDClear
| LCDClear | |
| Clears the LCD | |
| Return | |
LCDDrawLine
| LCDDrawLine | |
| Allows a single pixel width line to be drawn on the LCD | |
| X1 | |
| X Pixel 0-127 | |
| Y1 | |
| Y Pixel 0-31 | |
| X2 | |
| X Pixel 0-127 | |
| Y2 | |
| Y Pixel 0-31 | |
| Return | |
LCDDrawPixel
| LCDDrawPixel | |
| Allows a single pixel on the LCD to be set or cleared | |
| X | |
| X Pixel 0-127 | |
| Y | |
| Y Pixel 0-31 | |
| State | |
| 0=White (Off), 1=Black (On) | |
| Return | |
LCDDrawRect
| LCDDrawRect | |
| Allows a rectangle to be drawn on the LCD | |
| X1 | |
| X Pixel 0-127 | |
| Y1 | |
| Y Pixel 0-31 | |
| X2 | |
| X Pixel 0-127 | |
| Y2 | |
| Y Pixel 0-31 | |
| Return | |
LCDPrintNumber
| LCDPrintNumber | |
| Prints a 16-bit signed number to the LCD | |
| X | |
| X Pixel 0-127 | |
| Y | |
| LCD Y coordinate 0-31 | |
| Number | |
| Range -32768 to 32767 | |
| Return | |
LCDPrintString
| LCDPrintString | |
| Prints a string to the LCD | |
| X | |
| X Pixel 0-127 | |
| Y | |
| LCD Y Coordinate 0-31 | |
| Data | |
| Return | |
LCDVerbose
| LCDVerbose | |
| Allows the LCD to automatically report the API commands as they get processed. Default - verbose on | |
| State | |
| 0=Off 1=On | |
| Return | |
LEDOff
| LEDOff | |
| Clears a single LED 0-7 | |
| index | |
| Range: 0-7 | |
| Return | |
LEDOn
| LEDOn | |
| Sets a single LED 0-7 | |
| index | |
| Range: 0-7 | |
| Return | |
LEDWrite
| LEDWrite | |
| Sets the value of the LEDs as an 8-bit output | |
| Value | |
| LED value 0=All Off, 255 = All On | |
| Return | |
Left
| Left | |
| Rotates the robot left - waits for the angle to be traversed before returning | |
| Angle | |
| Angle to turn in degrees | |
| Return | |
PlayNote
| PlayNote | |
| Plays a note using the speaker on the FA | |
| Note | |
| Range 1 to 65535 in Hz | |
| Delay | |
| Number of milliseconds to play the note for | |
| Return | |
ReadAllSensors
| ReadAllSensors | |
| Samples all of the robot's sensors at once, storing the values locally | |
| Return | |
ReadAllValue
| ReadAllValue | |
| Reads a single value stored from the read all command Index dictates which sensor value to read | |
| Index | |
| 0=SW, 1-8=IR, 9-10=Line, 11=Light, 12=Mic, 13-15=Accel | |
| Return | |
ReadAxis
| ReadAxis | |
| Reads a single X/Y/Z axis from the accelerometer sensor. | |
| index | |
| 0=X, 1=Y, 2=Z | |
| Return | |
ReadBearing
| ReadBearing | |
| Reads the compass bearing based on the degrees clockwise from magnetic north. | |
| Return | |
ReadIR
ReadLight
| ReadLight | |
| Reads the light sensor 0-4095 - 4095 = Max Brightness | |
| Return | |
ReadLine
| ReadLine | |
| Reads one of the IR line sensors 0-1 0=Left, 1=Right | |
| index | |
| 0=Left, 1=Right | |
| Return | |
ReadMic
| ReadMic | |
| Reads the microphone sensor 0 - 4095 | |
| Return | |
ReadSwitch
| ReadSwitch | |
| Read the switch value | |
| index | |
| 0 (left) or 1 (right) | |
| Return | |
Right
| Right | |
| Rotates the robot right - waits for the angle to be traversed before returning | |
| Angle | |
| Angle to turn in degrees | |
| Return | |
SampleAccel
| SampleAccel | |
| Samples the accelerometer 0 = no new data, 1 = new data available | |
| Return | |
SampleMag
| SampleMag | |
| Samples the magnetometer 0 = no new data, 1 = new data available | |
| Return | |
ServoAutoMoveToPosition
| ServoAutoMoveToPosition | |
| Allows one of the servo positions to move gradually to a new position | |
| Channel | |
| Range 0-3 | |
| Position | |
| Range 0-255 | |
| Return | |
ServoDisable
| ServoDisable | |
| Allows one of the servo outputs 0-3 to be disabled | |
| Channel | |
| Range 0-3 | |
| Return | |
ServoEnable
| ServoEnable | |
| Allows one of the servo outputs 0-3 to be enabled | |
| Channel | |
| Range 0-3 | |
| Return | |
ServoSetAutoMoveSpeed
| ServoSetAutoMoveSpeed | |
| Changes the speed of the auto movements Default - 1 | |
| Speed | |
| Range 1-50 | |
| Return | |
ServoSetPosition
| ServoSetPosition | |
| Allows one of the servo positions to be assigned | |
| Channel | |
| Range 0-3 | |
| Position | |
| Range 0-255 | |
| Return | |
SetLogoSpeed
| SetLogoSpeed | |
| Sets the speed of logo movements | |
| Speed | |
| Logo Speed 1-100 - Default 40 | |
| Return | |
SetMotors
| SetMotors | |
| Sets the motor speeds without feedback Range -100 to 100 | |
| Left | |
| Range -100 to 100 | |
| Right | |
| Range -100 to 100 | |
| Return | |
SetProp
| SetProp | |
| Allows the COM port property to be set from a parent component. | |
| PropName | |
| PropVal | |
| Return | |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_FormulaAllCode_API.fcsx
Please click here to view the component source code (Beta): FC_Comp_Source_FormulaAllCode_API.fcsx