Sunday, May 31, 2015

Detours

This evening I put together an app using an Adafruit PIR (motion) sensor on Win10 for IoT on Raspberry Pi 2. It almost worked the first time, but edge detection in the ValueChanged event on GpioPin gets its value inverted at times. Turns out it's a known issue. My workaround: in the event handler use sender.Read() to get the pin value.

I'll be glad to see this fixed.

Oh, also--the motion sensor prefers 5V over 3.3V. Just sayin'.

Sunday, May 03, 2015

Enable "Developer Mode" on Windows 10 build 10074

Here's the trick as currently documented here, as the method to do so through the settings window do not work (for me, Settings, For Developers crashes the settings application):


For Windows 10 desktop
Use gpedit.msc to set the group policies to enable your device, unless you have Windows 10 Insider Preview Home Edition. If you do have Home Edition, you need to use regedit or PowerShell commands to set the registry keys directly to enable your device.
Dn706236.wedge(en-us,WIN.10).gifUse gpedit to enable your device
  1. Open a cmd prompt with administrator privileges.
  2. Run Gpedit.msc.
  3. Go to Local Computer Policy > Computer Configuration > Administrative Templates > Windows Components > App Package Deployment
  4. Edit the policies to enable the following:
    • Allow all trusted apps to install (Enables your device for sideloading apps)
    • Allows development of Windows Store apps and installing them from an integrated development environment (IDE) (Enables your device for development from Visual Studio)
  5. Reboot your machine.


Other methods to do so using regedit and PowerShell are found at the same link.