Steward
分享是一種喜悅、更是一種幸福
微處理器 - Microchip ATtiny85 - C/C++ - Button
Button腳位

Register

main.c
#include <avr/io.h>
#include <util/delay.h>
int main(void)
{
DDRB = 0x02;
PORTB = 0x03;
while (1) {
PORTB = (PINB & 0x01) ? 0x01 : 0x03;
}
return 0;
}
完成
