-
Posts
267 -
Joined
-
Last visited
Content Type
Profiles
Forums
Gallery
Everything posted by Cosmik42
-
Oh I found it by downloading the WeDo 2.0 Official SDK. They have a dedicated Characteristic just for disconnecting: private const string WEDO2_DISCONNECT = "0000152B-1212-efde-1523-785feabcd123"; // "152B" The call looks like this: WriteMessage(new byte[0], CharacteristicDisconnect);
-
Ah good, glad you found something! I am still trawling through that document and adding support for various features to my library. :) I do wish it was more detailed into the various commands that can be sent to the various attached devices. While it does a pretty good job of detailing the protocol, it mentions very little about sensor modes and message parsing, special motor control modes (ie. swing mode), etc. Any idea how to do this but for WeDo 2.0 Hub? I am finally implementing it and can't seem to find the 'Shutdown' call.
-
Has anyone in this forum connected to a SBrick+ programmatically to read sensor data? To my surprise, the data is raw voltage from the sensor, making it sensible to battery level, and I can't figure out a relationship between battery level and the data I am getting from the sensors making impossible to properly calibrate it when battery is not fully charged. Help! :D
-
V0.8 is out - 02/02/19 ---------------------------- - Remote Control Support - LED Color Configuration - Allow to start and stop Bluetooth Scanning - Allow to disconnect single devices - Programming: * Support for Custom Trigger Events * Change the color of LEDs programmatically - Self-Driving module: * Implement Green/Red lights based on Section occupation. * Fix a bug with looped Paths Download here => https://www.dropbox.com/sh/8dtjo22d4ddjcj0/AAAHCxMamxemVQ67vIoyPcb6a?dl=1
-
Ok, the current documentation from Lego doesn't help here. Have anyone of you managed to subscribe to the left (+ / -) and right (+ / -) buttons of a PUP Remote? EDIT: Found it. It was under 'Sensor Message'.
-
Here is a hot fix: V7.0.1 - Programming: * Fix a bug preventing the access of custom code with events. - Self-Driving module: * Fix a bug preventing the deletion of Paths. * Fix a bug with 'Clear 2 Sections' in the Self-Driving Module Link: https://www.dropbox.com/sh/axyjdb1gaebdcfi/AADJwkedu3jbu7gQYCqwY9Goa?dl=1 Ok, so wait, I can arrange this quickly and put in V0.7.1 Done. This version now reverts to multi-windows.
-
V0.7 is out! - Programming: * Plenty of new properties are now available * You can name sequences * You can customize distance/color trigger cooldown - Self-Driving module: * You can now customize clearing time and 'stop needed ahead' speed * Add capacity to wait for the next 2 sections to clear * Allow to run code when next section releases * Speed Coefficient, to slow or accelerate trains based on battery level. Download it here: https://www.dropbox.com/sh/c4wi20c540zncsr/AADdfH97vKmAWdL-KJgPypSda?dl=1
-
this sounds great. It would be awsome to have a property to set the value for the cooldown programmatically. Running fast --> short cooldown, running slow --> bigger cooldown Hub[0].setCooldown("A",2000); Every illegal number should cause an outputmessage and set it to default. That took me 1 minute :D Final form is this one: Hub[0].SetSensorCooldown("A", 2000); Will be available in the next version, hopefuly today!
-
Such an original concept! Congrats!