Set-up MacMini 1.4Ghz Intel Core i5 4GB (OS X El Capitan 10.11.2)

$ sudo easy_install pip $ sudo pip install -U setuptools already installed on El Cap $ sudo pip install pyserial install MariaDB as that is what is installed on pew == make sure Xcode is uptodate or install it   (this triggered an OS install, do it) $ xcode-select –install install homebrew $ ruby -e… Continue reading Set-up MacMini 1.4Ghz Intel Core i5 4GB (OS X El Capitan 10.11.2)

Light sensor Python script

“””script to read a Light Dependent Resistor on GPIO pin 11 must be run in command line: –login as root >sudo su — run python command from directory >python lightsensor.py — ctrl-C to quit “”” #!/usr/bin/python import time import os import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) def LDRtime(LDRpin): reading = 0 GPIO.setup(LDRpin, GPIO.OUT) GPIO.output(LDRpin, GPIO.LOW) time.sleep(0.1)… Continue reading Light sensor Python script