avr-gcc port jako parametr

Loading thread data ...

Pawel napisał(a):

Definiujesz wskaźnik, a potem tylko przełączasz na który port ma wskazywać. Np dla Mega16 PORTA ma adres 0x3B, a PORTB 0x38.

unsigned int *port;

port = 0x3B;

*port = 0xa0; //wrzucasz cos na PORTA

port = 0x38;

*port = 25; //a teraz na PORTB
Reply to
ARW

Pawel napisał(a):

formatting link
w.

Reply to
Wojtek Kaniewski

Pawel napisał(a):

Będzie

Reply to
ARW

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.