Skip to content

Instantly share code, notes, and snippets.

@lostcaggy
lostcaggy / README.md
Created August 17, 2019 12:12 — forked from willprice/README.md
Install OpenCV 4.1.0 for Raspberry Pi 3 or 4 (Raspbian Buster)

Install OpenCV 4.1.0 on Raspbian Buster

$ chmod +x *.sh
$ ./download-opencv.sh
$ ./install-deps.sh
$ ./build-opencv.sh
$ cd ~/opencv/opencv-4.1.0/build
$ sudo make install
class Serialcom1 < ArduinoSketch
#Serial coms example, read value from sensor
#page 69 Getting started with arduino
input_pin 0, :as => :sensor
serial_begin :rate => 19200
class Analoginput06b < ArduinoSketch
#Example 06B Set the brightness of the LED to a brighness specified by the value
#of the analgue input
#page 67 Getting started with arduino
output_pin 9, :as => :led #pin for led
@val = 0
class Analoginput < ArduinoSketch
#Example 06A Blink LED at a rate specified by the value of an analogue input
#from Page 66 of Getting started with Arduino
output_pin 13, :as => :led
@val = 0
def loop
class Ledpwmbutton < ArduinoSketch
#Turn on LED when the button is pressed and keep it on after is is
#released, if the button is held brightness changes
#page 61 of getting started with arduino
output_pin 9, :as => :led #pin for led
input_pin 7, :as => :button_one, :device => :button #input pin of pushbutton
class Analogled < ArduinoSketch
#Example 04 fade an LED in and out
#from page 59 of Getting started with Arduino
output_pin 9, :as => :led
@i = 1
def loop
while @i < 255 do
class Pushbutton < ArduinoSketch
# Page 42 of Getting started with Arduino, using a pushbutton to
#control an led
output_pin 13, :as => :led
input_pin 7, :as => :button_one, :device => :button
def loop
led.toggle if read_input button_one