Instructions Circuit Diagram
- 79 -
IMPORTANT HINT
The letter v at the beginning of YETI function names is a valuable
programmer’s hint, indicating a function, which will not be retur-
ning a value!
YETI will switch on its right ‘eye’
#This program will swich on YETI’s right ‘eye’
#include“YETI.h” //loaddenitionsandfunctions
int main(void){ //main function entry
vInitYeti(); //initialize all microprocessor modules in
//the YETI
vFrontLEDs(RIGHT); //swich on YETI’s right ‘eye’-LED
return 0; //terminating the main function and
//returning a value 0
} //end of the main function
#include “YETI.h”
Atthislocationthecompilerwillinsertle‘YETI’h’,containingallde-
nitions for functions, e.g. function ‘vYetiInit()’. Coding lines for functions
willbefoundinle‘YETI.c’.
vInitYeti();
This is a special function, initiating all microcontroller and YETI modu-
les. The function may be called by a statement ‘vInitYeti();’ at the very
beginninginYETIprogramsanditscodingistobefoundinle‘YETI.
c’.