# apt-get install libevent-dev
2016年1月14日 星期四
2016年1月5日 星期二
ImportError: No module named serial
# apt-get install python-serial
References :
python - ImportError: No module named serial - Stack Overflow
2016年1月1日 星期五
在 Arduino 使用 SoftwareSerial
由於 Arduino UNO, Nano, Pro mini 只有一組 Serial Port,若接上 RS232 設備後則無法透過電腦 debug,所以可透過 SoftwareSerial 使用其他 port 來連接設備
References :
小狐狸事務所: Arduino 串列埠測試 (UART)
Arduino - SoftwareSerialExample
References :
小狐狸事務所: Arduino 串列埠測試 (UART)
Arduino - SoftwareSerialExample
2015年12月31日 星期四
2015年12月30日 星期三
Google SpreadSheet Address to Latitude / Longitude
function getLatLong(adress) {
try{
if(adress=="")return("");
var geo = Maps.newGeocoder().geocode(adress);
if(geo.status=="OK"){
var lng = geo.results[0].geometry.viewport.southwest.lng;
var lat = geo.results[0].geometry.viewport.southwest.lat;
return([lat,lng]);
}
else{
return("error");
}
}
catch(err){
return(err);
}
}
A | B | C
1 Taipei | =TRANSPOSE(getLatLong(A1)) | 2
3
References :
How to get Latitude and Longitude for Addresses?
2015年12月28日 星期一
strtok warning
warning: initialization makes pointer from integer without a cast
References :
Error: Assignment makes pointer from Integer without a cast... in C Prog - Stack Overflow
#include <string.h>
References :
Error: Assignment makes pointer from Integer without a cast... in C Prog - Stack Overflow
訂閱:
文章 (Atom)