I want to start building my first robot. I think I'm going to make something similar to Stampy. I need some help though.
sensor_left=
a2dConvert8bit(5);
sensor_right=
a2dConvert8bit(4);
LED_on(); and LED_off();
Turns on and off your LED. The LED is on port D4.
By bringing
port D4 low, you are turning on the LED.
a2dInit(); // initialize analog to digital converter (ADC)
a2dSetPrescaler(ADC_PRESCALE_DIV32); // configure ADC scaling
a2dSetReference(ADC_REFERENCE_AVCC);I understand the rest of the code, I just wonder if these commands are universal or not, and where I can find a list.
If I buy a different microcontroller, will it tell me what these commands will be called in the manual? I've checked a couple manuals online and I can't seem to find a listing of these and what commands I can use. I don't want to be dependent on someone else's program, I'd rather write my own and buy any microcontroller without worrying about compatibility.
I can't seem to find the words this late at night, so I'm sorry if this is confusing. I have programmed other things before, and I understand the logic and concept, I just don't get where these commands are listed (I assume they are specific to their controller? Assuming is never good which is why I've come here.
).
Any help would be appreciated.
Orrin
P.S.: Great Website!