14 lines
357 B
Plaintext
14 lines
357 B
Plaintext
'Set chip model:
|
|
#chip tiny45, 1
|
|
|
|
'Set the pin direction to output:
|
|
' (PORTB.3 = Pin 2 on ATtiny45)
|
|
Dir PORTB.3 Out
|
|
|
|
'Main routine
|
|
Start:
|
|
Set PORTB.3 ON 'turn LED on
|
|
Wait 100 Ms 'wait 100 milliseconds
|
|
Set PORTB.3 OFF 'turn LED off
|
|
Wait 900 Ms 'wait 900 milliseconds
|
|
Goto Start 'jump back to the start of the program |