File: blink.py

package info (click to toggle)
expeyes 4.8.8%2Brepack-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 85,276 kB
  • sloc: python: 33,528; ansic: 9,754; xml: 1,010; makefile: 828; javascript: 824; sh: 580; asm: 202; php: 1
file content (14 lines) | stat: -rw-r--r-- 189 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14

#Connect LEDs from PB0..PB7 to Ground via 5k resistors.

import time
from kuttyPy import *

setReg(DDRD,255)

while 1:
	setReg(PORTD, 255)
	time.sleep(1)
	setReg(PORTD, 0)
	time.sleep(1)