Secret Labs LLC Netduino Go Potentiometer Module
DiverseNur 2 Stück an Lager beim Lieferanten
Produktinformationen
Netduino Go! - Potentiometer-Modul
Beispielcode:
using Microsoft.SPOT;
namespace Modul_Tests {
public class Programm {
public static void Main() {
NetduinoGo.RgbLed led = new NetduinoGo.RgbLed();
NetduinoGo.Potentiometer pot = new NetduinoGo.Potentiometer();
// pot.GetValue() - Gibt einen Float-Wert von 0 bis 1 zurück.
while (true) {
led.SetColor(0, 0, (byte)(pot.GetValue() * 255));
}
}
}
}
Code mit Methode zur Festlegung eines benutzerdefinierten Bereichs:
using Microsoft.SPOT;
namespace Modul_Tests {
public class Programm {
public static void Main() {
NetduinoGo.RgbLed led = new NetduinoGo.RgbLed();
NetduinoGo.Potentiometer pot = new NetduinoGo.Potentiometer();
while (true) {
led.SetColor(0, 0, (byte)(Map(pot.GetValue(), 0, 1, 0, 255)));
}
}
// Wird verwendet, um einen Wertebereich linear auf einen anderen Bereich abzubilden.
public static float Map(float input, float inMin, float inMax, float outMin, float outMax) {
return ((input - inMin) * (outMax - outMin) / (inMax - inMin) + outMin);
}
}
}.
Kompatible Hardware | Diverse |
Artikelnummer | 5998855 |
Hersteller | Secret Labs LLC |
Kategorie | Elektronikmodul |
Herstellernr. | P00000315 |
Release-Datum | 29.8.2012 |
Kompatible Hardware | Diverse |
Modultyp | Diverse |
CO₂-Emission | 0.82 kg |
Klimabeitrag | CHF 0.11 |
Produkte vergleichen
Passend dazu
Bewertungen & Meinungen
Garantiefallquote
So oft weist ein Produkt dieser Marke in der Kategorie «Elektronikmodul» innerhalb der ersten 24 Monate einen Defekt auf.
Quelle: Digitec Galaxus- Secret Labs LLCUngenügende Daten
- 1.Purecrea0 %
- 1.Tru Components0 %
- 3.Whadda0.1 %
- 4.Adafruit0.2 %
Garantiefalldauer
So lange dauert eine Abwicklung ab Ankunft bei der Servicestelle bis Wiedererhalt in Arbeitstagen im Durchschnitt.
Quelle: Digitec Galaxus- Secret Labs LLCUngenügende Daten
- 1.Raspberry Pi0 Tage
- 2.WaveShare1 Tag
- AdafruitUngenügende Daten
- ArduinoUngenügende Daten
Rückgabequote
So oft wird ein Produkt dieser Marke in der Kategorie «Elektronikmodul» retourniert.
Quelle: Digitec Galaxus- Secret Labs LLCUngenügende Daten
- 1.Purecrea0 %
- 1.Tru Components0 %
- 3.Whadda0.2 %
- 4.Adafruit0.6 %