{"id":29022871,"url":"https://github.com/tiryoh/avr-sample","last_synced_at":"2025-07-14T22:36:54.566Z","repository":{"id":13516194,"uuid":"16207252","full_name":"Tiryoh/AVR-Sample","owner":"Tiryoh","description":"Simple Sample Program of AVR","archived":false,"fork":false,"pushed_at":"2017-02-22T19:34:56.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-02T01:59:00.685Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"google/go-github","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tiryoh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-24T14:48:13.000Z","updated_at":"2024-05-02T01:59:00.686Z","dependencies_parsed_at":"2022-07-21T13:02:26.313Z","dependency_job_id":null,"html_url":"https://github.com/Tiryoh/AVR-Sample","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Tiryoh/AVR-Sample","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tiryoh%2FAVR-Sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tiryoh%2FAVR-Sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tiryoh%2FAVR-Sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tiryoh%2FAVR-Sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tiryoh","download_url":"https://codeload.github.com/Tiryoh/AVR-Sample/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tiryoh%2FAVR-Sample/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261990350,"owners_count":23241187,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-26T03:04:00.271Z","updated_at":"2025-06-26T03:04:00.893Z","avatar_url":"https://github.com/Tiryoh.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AVR-Sample\r\n\r\n## What's this?\r\n\r\nSample Program for AVR.\r\n\r\n* ATtiny2313\r\n* ATtiny13A\r\n* ATmega168\r\n* ATmega328P\r\n* etc...\r\n\r\n## LISENCE\r\n\r\nThis repository is released under the MIT License, see [LICENSE](./LICENSE.md).\r\n\r\n***\r\n\r\nSample.c\r\n\r\n```\r\n#include \u003cavr/io.h\u003e\r\n\r\nint main(void){\r\n    \r\n    /***** IN *****/\r\n    DDRD = 0x00;  //すべてに\"0\"を入れてるので\"入力\"指定。\r\n    PORTD = 0xFF;  //\"1\"を入れると内部プルアップ。\r\n    \r\n    \r\n    /***** OUT *****/\r\n    DDRB = 0xFF;  //すべてに\"1\"を入れてるので\"出力\"指定。\r\n    PINB = 0x00;  //\"1\"を入れると出力が反転。\r\n    \r\n    //出力レジスタは\"PORT\"\r\n    //入力レジスタは\"PIN\"\r\n    \r\n    PORTB = 0x00;  //初期化\r\n    \r\n    while(1){\r\n        if( PIND == 0x04 ){  //*0000100\r\n            PORTB = 0x03 ;   //00000011\r\n        }\r\n        if( PIND == 0x0C ){  //*0001100\r\n            PORTB = 0x02 ;   //00000010\r\n        }\r\n        if( PIND == 0x1C ){  //*0011100\r\n            PORTB = 0x01 ;   //00000001\r\n        }\r\n        if( PIND == 0x3C ){  //*0111100\r\n            PORTB = 0x00 ;   //00000000\r\n        }\r\n    }\r\n    return 0;\r\n}\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiryoh%2Favr-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftiryoh%2Favr-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftiryoh%2Favr-sample/lists"}