tutorial slide
tutorial git
homework
GPIO.add_event_detect(GPIO_num, event, callback, time)
tutorial slide
tutorial git
homework
GPIO.add_event_detect(GPIO_num, event, callback, time)
GPIO.setmode(GPIO.BOARD): 主要參考 pin#, Z字形編號
GPIO.setmode(GPIO.BCM): 採 GPIO編號, e.g. GPPIO7
network={ ssid="YOUR WIFI NETWORK NAME" psk="YOUR WIFI PASSWORD" }
sudo raspi-config
arp -na | grep -i b8:27:eb
ssh 192.168.1.111 -l pi
ssh -X 192.168.1.111 -l pi
scp pi@192.168.1.111:tmp.txt ./
import sys import os lib_path = sys.argv[1] exe_path = sys.argv[2] bin_parameters = sys.argv[3] os.environ['LD_LIBRARY_PATH'] = lib_path os.system(exe_path + " " + bin_parameters)
cmake -DCMAKE_BUILD_TYPE=Debug/Release ..
function(dump_cmake_variables) get_cmake_property(_variableNames VARIABLES) list (SORT _variableNames) foreach (_variableName ${_variableNames}) if (ARGV0) unset(MATCHED) string(REGEX MATCH ${ARGV0} MATCHED ${_variableName}) if (NOT MATCHED) continue() endif() endif() message(STATUS "${_variableName}=${${_variableName}}") endforeach() endfunction()
set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON)
ADD_DEFINITIONS( -std=c++11 # or -std=c++0x )