Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/p/i/piface-HEAD/python/demos/simon.py   piface(Download)
		pfio.digital_write(pin_number+2,1)			# light up the buttons pressed
		if event != pfio.get_pin_bit_mask(i):	
			game = 0					# if any wrong buttons were pressed end the game

src/p/i/piface-HEAD/python/demos/whackAMole.py   piface(Download)
		if in_bit_pattern > 0:
			if in_bit_pattern == pfio.get_pin_bit_mask(current):	# check that only the correct button was hit
				pfio.digital_write(current+2, 0)		# turn off hit light