I'm up early as we're heading off to a spider show todaypjjones wrote:what a speedy reply at 8:30 on a Sunday Morning :¬)
Pretty much, yes. http://exhibition.thebts.co.uk/ (not for arachnophobes)pjjones wrote:he he he
SPIDER SHOW ?? Is that what it sounds like?
We currently have over 50 (live) tarantulas of various sizes, possibly to be closer to 60 by the end of the day.I had a 5" tarantula in a frame once (dead!)
Shame, I cant find it anywhere, someone pinched I think.
have a good day and thanx :¬)
(hope you read this before 4pm)
They are mostly harmless. Some might give a small bite if they feel threatened, but they are unlikely to use venom and none of ours have ever done that.
Code: Select all
import uinput import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) #GPIO.BCM uses the GPIO port name for reference GPIO.setup(26, GPIO.IN, pull_up_down=GPIO.PUD_UP) device = uinput.Device([uinput.KEY_ENTER]) # Boolean to keep track of the button Enter = False while True: if (not Enter) and (not GPIO.input(26)): # Big Red Button pressed Enter = True device.emit(uinput.KEY_ENTER, 1) # press ENTER keyboard button if Enter and GPIO.input(26): # Big Red Button released Enter = False device.emit(uinput.KEY_ENTER, 0) # ENTER keyboard button released time.sleep(0.2) # Poll every 200ms