Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iom16.h>
- int main( void ){
- DDRD=255;
- PORTA=1;
- bool ijungtas = false;
- while(true){
- if (!(PINA&1)){
- if(ijungtas==false){
- PORTD=255;
- ijungtas=true;
- }else{
- PORTD=0
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement