emmellsoft / rpi.sensehat Goto Github PK
View Code? Open in Web Editor NEWA complete Windows IoT class library for the Raspberry Pi "Sense HAT" (C#)
License: MIT License
A complete Windows IoT class library for the Raspberry Pi "Sense HAT" (C#)
License: MIT License
Did anyone ported this lib to .net core 2.0?
Thanks for the library, almost everything is working marvelously.
However, I seem to be getting a lot of extraneous key events (key bounce?). Do I need to de-bounce in my app logic?
FYI, RPi 3, W10IoT: 10.0.14393.0, VS2015, and I'm sampling the key updates based on a timer with a 50ms interval. I've also tried 500ms and got the same results.
Is this library tested on a Pi3 and the sensehat?
Can it read all sensors on the board?
I am on 10.0.14393.67
After a build there are lots of complaints about "the type or namespace name 'I2c does not exist in the namespace 'Windows.Devices".
I have uninstalled Windows Iot Project Templates, and reinstalled them. Still no I2c
Hi,
I try to run the demo and I got the following error, any idea someone?
Visual Studio 2017
Targer version: Windows 10 version 1803 (10.0; build 17134)
Microsoft.NETCore.UniversalWindowsPlatform v6.1.7
Windows Iot Core 10.0.17134.1
Sandisk Ultra 16gb microSDHC class 10.
Error:
Exception thrown: 'System.IO.FileNotFoundException' in RTIMULibCS.dll
WinRT information: Slave address was not acknowledged.
Exception thrown: 'RichardsTech.Sensors.SensorException' in RTIMULibCS.dll
Exception thrown: 'RichardsTech.Sensors.SensorException' in System.Private.CoreLib.ni.dll
Hello,
On a project under Windows IOT I try to use in the same time the SenseHat and an Adafruit Motor Hat (Adafruit 2348).
Separately, all works fine but when I try to use the both Hat stacked I have a problem.
The SenseHat are not find any more.
At the begining I have try under Linux a Python and I had the same problem. Adafruit help me with these info :
The Hat spec requires all boards to have an EEPROM, and the goal is for all Hats to populate the EEPROM with the device tree overlay necessary to make the Hat work.
The problem is that all the EEPROMs have the same I2C address, so if you stack Hats, you get an address conflict. Editing /boot/config.txt so it tells the OS what DTOs to use will solve the problem, as long as the correct DTO already exists in /boot/overlays/
Raspbian has DTOs for all the RasPi Foundation Hats, so it's easy to call them out explicitly.
Can you help me too for windows Iot?
Hi
I'm not sure how bothered you are about it, but there's a clear race condition in SenseHatFactory.Create()
Avoiding that, is it ok to read from the sensors on any thread?
Thanks!
There's currently a fork of this project that supposedly works (I wasn't yet able to fully test it). I talked to the owner of the fork and he said that unfortunatelly he can't work on it anymore. He also told me that there was the need to adapt the WiringPi and RaspberryIO libraries to fully support I2C. This means that he had to also fork those projects, change them and do a new build.
Since part of that port is already done, I would suggest to merge both branches and work only on this one (since it's the original). But for that, I would like to have your help, so that we can both see what can be optimized and how so (I have strong c# knowledge, but not familiar with the project).
Hi !
Do you think this would also run (with some small modifications) on Raspian + Mono?
What problems could exists?
Dominik
Starting after update to Windows IoT Core Version 10.0.14366.0 and still with the newest Version 10.0.14376.0 my previously working Demo (and own Application) gets an exception in Method
BootDevice()
on line: I2CSupport.Write(_accelGyroI2CDevice, LSM9DS1Defines.CTRL8, 0x81, "Failed to boot LSM9DS1");
That reads: "The semaphore timeout period has expired.\r\n\r\nAn unexpected error occurred when communicating with the device."
As of now it is not possible for me to make the sensehat run with the library anymore.
I'm Running a "Raspberry Pi 2 Model B"
with the newest IoT Core Build (10.0.14376.0)
and the newest available Library from NuGet (1.0.9) in my own project respectively the demo version from github.
Hi,
I sometimes get the following error when trying to run a project:
Exception thrown: 'RichardsTech.Sensors.SensorException' in System.Private.CoreLib.ni.dll
When this happens I have to restart the Pi, because I cannot run any project on the Pi.
Sometimes I don't get the errors in a while and sometimes I have to restart the Pi each time.
What could be causing this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.