L

AVRを買いに行って、LEDチカチカができた。

C
/*
* HelloWorldApplication.c
*
* Created: 2015/05/18 20:51:35
* Author: akihiro
*/
#include <avr/io.h>
#include <util/delay.h>

int main(void)
{
    DDRB = 0xff;
    while(1) {
        //TODO:: Please write your application code
        PORTB ^= 0x01;
        _delay_ms(100);
    }
}
クリックして展開し、詳細を表示

著作権表示

著者: Akihiro Yamamoto

リンク: https://ak1211.com/posts/23/

ライセンス: CC BY-NC-SA 4.0

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. Please attribute the source, use non-commercially, and maintain the same license.

コメント

検索を開始

キーワードを入力して記事を検索

↑↓
ESC
⌘K ショートカット