Go Down

Topic: Arduino.h (Read 488 times) previous topic - next topic

cbrandy

Hi all.
Now I´m getting really good in C. And now I wanna try too make my own products. So I started with a plain atmega32 chip.
But programming without arduino, is harder than I thought. Cause basic input and output is different than arduino.
When I use pinMode(Pin, INPUT); it´s kind of a function to set up the input pin. example:
PINB = 0b&01000000. This set up the input 2 as hight.

So my question. How is the pinMode, digitalread, digitalwrite ++++ is made?

CrossRoads

Check out the arduino core files here,
http://www.avr-developers.com/
may help you out.
Also, the code behind the Arduino functions is already on your computer, look thru the installed code files.
Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Go Up