Skip to content

Instantly share code, notes, and snippets.

@hsgw
hsgw / gist:779a2d369f59c28536db
Created July 12, 2015 12:11
read touch panel
float readTouchPanel(PinName a, PinName b....){
DigitalOut dout(a);
AnalogIn ain(b);
dout = 1;
return ain.read();
}
import requests
api_token = "yourApiToken"
ret = requests.post("http://api.justyo.co/yoall/", data={'api_token': api_token})
print ret;
//foo.h
class foo {
public:
foo();
inline void hoge(){
printf("%f",v); //何故か0になる 多分初期化タイミングが違うけど何故?
};
private:
static const float v;
}