Track Bitcoin prices automatically with an ESP32 and an OLED display using MicroPython or Arduino.
/u/BesBesCat writes:
```
JSONVar getBTC() {
String serverPath = "
http://api.coindesk.com/v1/bpi/currentprice.json";
jsonBuffer = httpGETRequest(serverPath.c_str());
JSONVar myObject = JSON.parse(jsonBuffer);
return myObject;
}
// Use Coindesk's API instead.
```