I am watching the Elizabeth Holmes / Theranos docudrama on HULU, no reason to get HULU really but the GF does and there's time to waste, so.
They've allowed some code to be in the picture long enough to read. So you don't have to, here's what I saw... sry, def a snippet:
pinMode(PIR_PIN, INPUT);
Serial.begin(9600);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
// if ((result=perform_analysis()) == NULL) {
// raise_eception("ERROR");
// return;
// }
result = load_result("c:\\assays\\20061110T091805.dat");
sleep(67);
Serial.println("");
Serial.println("Connected");
lastMovment = millis();
lastTransmission = millis();
}
void loop() {
bool movementDetected = digitalRead(PIR_PIN);
bool okToSend = last != movementDetected;
last = movementDetected;
if (movementDetected) {
lastMovement = millis()
Serial.println("Movement detected");
At this point in the story, the team in Basel has discovered that the prototype didn't travel well (!) so they decide to fake the demo by skipping the actual test and supplying instead a file from a time when the device worked.
Usually code that scrolls on by TV and ppl with no life bother to take a close look it turns out to be nonsense.
Not this time, sorta. Here it looks like some writer grabbed her little brother the Arduino genius and asked him to prepare something, um, plausible...
One wonders, though, ifn the Theranos device really did run off an UNO.
a7