Animales Extintos

Páginas: 7 (1594 palabras) Publicado: 28 de noviembre de 2012
Parameters
Bool - is a value of either TRUE or FALSE
String - is a value of readable characters. This value is indicated with surrounding
quotes
Integer - is a 32 bit (unsigned) number. Hex values are automatically converted
Data - is an array of bytes. Can be specified with 0x80;0x81;0x82 etc.

Functions
Command:
Parameters:
Syntax:
Description:

Settings:

Examples:

Command:Parameters:
Returns:
Description:

Examples:
Command:
Parameters:
Description:
Examples:

SetParam
Integer, Integer
Setting, Value
Sets a device parameter on the board (firmware controlled). The
delays are set in milliseconds and is the amount of time the AVR
should wait between read or write instructions. The main purpose
of this command is to fine tune performance; the faster thedevice
operates, the higher the error rate is. This can also affect different
target devices differently.
1: Intel Flash delay
2: AMD Flash delay
3: Memory read delay
4: Memory read mode
5: Flash base location
SetParam(1, 30)
#Sets the Intel flash delay to 30
ms
Ejctrl
Integer
Integer
Sends a JTAG control message to the target device. These types of
commands are very dependant onthe target device. This can be
used to stop (0x10000) or start (0x0) the target processor. The
result of the command is returned.
Ejctrl(0x10000)
#Stops the target processor
Pause
Integer
Waits the specified amount of time (in milliseconds), useful only
in scripts.
Pause(1000)
#Waits 1 second

Display Commands

Command:
Parameters:

writeline
String

Description:
Examples:Displays a message to the console.
writeline("this is only a test")

Command:
Parameters:
Description:
Examples:

msgbox
String
Displays a message to the user using a pop-up box.
msgbox("Hello World!")

Command:
Parameters:
Returns:
Description:
Examples:

mode
None
String
Returns a string indicating which mode BlackcatUSB is in.
#Returns "JTAG"
mode()

Command:Parameters:
Returns:

Examples:

ask
String
Bool
Asks the user a yes or no question and returns that value. You can
use this in a if statement to make conditional sections.
ask("Continue script?")

Command:
Parameters:
Description:
Examples:

status
String
This sets the status text (the bottom bar of the software).
status("script is complete")

Description:

Tab Commands
These arefor creating a application specific tab that allows you easy access to commands from the GUI

Command:
Parameters:
Returns:
Description:
Examples:

Tab.Create
String
Integer
Creates a application specific tab. Returns the index of the tab.
Tab.Create("My Device")

Command:
Parameters:
Syntax:
Description:
Examples:

Tab.AddGroup
String, Integer, Integer, Integer, IntegerName of group, (X-axis), (Y-axis), Length, Height
Creates a group box on the tab.
Tab.AddGroup("Feature",10,10,420,140)

Command:
Parameters:
Description:
Examples:

Tab.AddBox
String, String, Integer, Integer
Creates a input box on your tab.
Tab.AddBox("BXNAME","default text",30,110)

Command:

Tab.AddText

Parameters:
Description:
Examples:

String, String, Integer, IntegerCreates a text label on your tab.
Tab.AddBox("txtName","What to say",30,110)

Command:
Parameters:

Tab.AddImage
String, String, Integer, Integer
Adds a image to your tab from the specified file (in your scripts
folder)
Tab.AddImage("ImgName","logo.gif",20,20)

Description:
Examples:
Command:
Parameters:

Examples:

Tab.AddButton
Event, String, Integer, Integer
Adds a buttonto your tab. The specified event is called when the
user clicks on the button.
Tab.AddButton(HelloWorld,"Click Me!",20,20)

Command:
Parameters:
Description:
Examples:

Tab.Remove
String
Removes any previously added object from your tab.
Tab.Remove("ImgName")

Command:
Parameters:
Description:
Examples:

Tab.SetText
String, String
Changes the text of any previously created...
Leer documento completo

Regístrate para leer el documento completo.

Estos documentos también te pueden resultar útiles

  • Animales extintos
  • Animales extintos
  • Animales extintos
  • Animales extintos
  • animales extintos
  • animales extintos
  • animales extintos
  • Animales extintos

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS