/v1/parallel
Parallel LEDs
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/ledresistor-api/v1/parallel" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/ledresistor-api/v1/parallel", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/ledresistor-api/v1/parallel");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/ledresistor-api/v1/parallel",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"note": "Each parallel LED gets its own resistor R = (Vsupply − Vf)/I; the supply must deliver n × the per-LED current. Avoid a single shared resistor.",
"inputs": {
"count": 4,
"current_ma": 20,
"led_voltage": 2,
"supply_voltage": 5
},
"total_power_w": 0.4,
"nearest_e12_ohm": 150,
"total_current_ma": 80,
"resistor_per_led_ohm": 150
},
"meta": {
"timestamp": "2026-06-04T18:38:12.596Z",
"request_id": "1f2654ae-1aca-4cf4-a95f-05cffc93133e"
},
"status": "ok",
"message": "Parallel LEDs",
"success": true
}