[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/JavaScriptIOT/Arduinojs/master/simulation.h [Back]  [Original]

//Functionality: Initial the broad
int init(void)
{
	return 1;
}
//Functionality: Control the led
//Argument:
//id: The id of led can be 0-3
//r: The red color of led
//g: The greem color of led
//b: The blue color of led
void led(int id, char r, char g, char b)
{

}

//Functionality: Control the IO port a
//Argument:
//id: use 0-26
//value: Can be 1 or 0
void ioa(int id, int value)
{

}

//Functionality: Control the IO port b
//Argument:
//id: use 0-26
//value: Can be 1 or 0
void iob(int id, int value)
{

}

//Functionality: print the string to the console
//Argument:
//format:output format string
int print(const char* format, ...)
{
	return 1;
}

//Functionality: Sleep for seconds
//Argument:
//seconds The seconds for sleeping

//Functionality: Sleep for micro seconds
//Argument:
//usecods: The micro seconds for sleeping


Web Proxy Viewer  |  New URL  |  Original Page