|
Namazu for hns による簡易全文検索 詳しくは 詳細指定/ヘルプを参照して下さい |
||||||||||||||||||||||||||||||||||||||||||||||
2012年02月08日(水) 旧暦 [n年日記] [更新:"2012/02/08 09:42:31"]#1 [AVR] ATmega168P で LED を点滅
思い直して、簡単なものをやり直したら、点滅した。
(AVR Studio 4.0 で build と書込)
#include <avr/io.h> #include <util/delay.h> int main(void) { DDRB = ~0b11111110; //portB-0 output for(;;) { PORTB = 0b00000001; //portB-0 を出力 _delay_ms(500); //0.5sec 待 PORTB = 0b00000000; //portB-0 を出力 _delay_ms(500); //0.5sec 待 } }後から見つけた関連記事 AVRの導入とLEDチカチカ ( つっこみ )
|
最近の日記 2025年06月13日 ・Let's Note CF-SV8 ・ 2025年02月13日 ・dvipdfmx ICC profile format spec. version 4.3.0 2025年01月29日 ・ham/wsjtx 2025年01月27日 ・wip/wsjtx 5.4.2 2025年01月25日 ・ham/wsjtx | ||