UpdateReadme
This commit is contained in:
parent
c603fe0ccb
commit
f593efda62
@ -12,7 +12,7 @@ public static void Main(string[] args){
|
|||||||
string apiKey = ":)";
|
string apiKey = ":)";
|
||||||
|
|
||||||
OpenShockHttp openShockHttp = new (intensityRange, durationRange, apiKey);
|
OpenShockHttp openShockHttp = new (intensityRange, durationRange, apiKey);
|
||||||
OpenShockShocker shocker1 = openShockHttp.GetShockers(apiKey).First();
|
OpenShockShocker shocker1 = openShockHttp.GetShockers().First();
|
||||||
shocker1.Control(ControlAction.Vibrate, 20, 1000);
|
shocker1.Control(ControlAction.Vibrate, 20, 1000);
|
||||||
|
|
||||||
shocker1.Dispose();
|
shocker1.Dispose();
|
||||||
@ -20,7 +20,7 @@ public static void Main(string[] args){
|
|||||||
List<SerialPortInfo> serialPorts = SerialHelper.GetSerialPorts();
|
List<SerialPortInfo> serialPorts = SerialHelper.GetSerialPorts();
|
||||||
int selectedPort = 1;
|
int selectedPort = 1;
|
||||||
OpenShockSerial openShockSerial = new(intensityRange, durationRange, serialPorts[selectedPort], apiKey);
|
OpenShockSerial openShockSerial = new(intensityRange, durationRange, serialPorts[selectedPort], apiKey);
|
||||||
OpenShockShocker shocker2 = openShockSerial.GetShockers(apiKey).First();
|
OpenShockShocker shocker2 = openShockSerial.GetShockers().First();
|
||||||
shocker2.Control(ControlAction.Vibrate, 20, 1000);
|
shocker2.Control(ControlAction.Vibrate, 20, 1000);
|
||||||
|
|
||||||
shocker2.Dispose();
|
shocker2.Dispose();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user