Page 1 of 1

4-Digit Display and GrovePi C# library

Posted: Fri Aug 31, 2018 5:59 pm
by nace
Hello all!

Are there any examples for 4-Digit Display. What we are using is GrovePi library referenced in UWP application. I've already made a search on your github, but was unable to find anything useful.

Code: Select all

#region Assembly GrovePi, Version=1.0.10.0, Culture=neutral, PublicKeyToken=null
//\Lib\GrovePi.dll
#endregion

namespace GrovePi.Sensors
{
    public interface IFourDigitDisplay
    {
        IFourDigitDisplay AllOff();
        IFourDigitDisplay AllOn();
        IFourDigitDisplay Initialise();
        IFourDigitDisplay SetBrightness(byte brightness);
        IFourDigitDisplay SetIndividualSegment(byte segment, byte value);
        IFourDigitDisplay SetLedsOfSegment(byte segment, byte leds);
        IFourDigitDisplay SetScore(byte left, byte right);
    }
}
Any useful documentation for using SetIndividualSegment or SetScore? The task i am trying to accomplish is quite simple - just show the number 1234 on the display.

Thank you for your kind help!

Re: 4-Digit Display and GrovePi C# library

Posted: Wed Sep 05, 2018 10:01 am
by seeed techsupport team
Hi there,

I checked the Grovepi C# library, they includes FourDigitDisplay in
https://github.com/DexterInd/GrovePi/bl ... Factory.cs. thanks.

All supported sensors are available through the DeviceFactory class.

Supported sensors include:

Relay
Led
TemperatureAndHumiditySensor
UltraSonicSensor
AccelerometerSensor
RealTimeClock
BuildLedBar
FourDigitDisplay
ChainableRgbLed
RotaryAngleSensor
Buzzer
SoundSensor
LightSensor
ButtonSensor
RgbLcdDisplay


Bill

Re: 4-Digit Display and GrovePi C# library

Posted: Wed Sep 05, 2018 5:45 pm
by nace
Dear Bill!

Thank your very much for your explanation. I am not sure if you have undertood me correctly. We have UWP application, with referenced GrovePi library. We are already familiar with all the other sensors. What we are curious about is, how this three specific method work / what should be passed in as a parameter to successfully show the result.

Code: Select all

IFourDigitDisplay SetIndividualSegment(byte segment, byte value);
IFourDigitDisplay SetLedsOfSegment(byte segment, byte leds);
IFourDigitDisplay SetScore(byte left, byte right);
We are simply trying to show the number: 1234 on the display. We need an advice what to pass in and which method to use. We were unable to find any useful information (we've also chedked Python and C implementations of Grove).

Anyway, thank you for your fast response. ;)

Re: 4-Digit Display and GrovePi C# library

Posted: Thu Sep 06, 2018 11:28 am
by bill.yu
Dear Nace,

DexterInd writes the library. Please post a question on https://forum.dexterindustries.com/c/grovepi. They will response quickly. thanks for your understanding.

best rgds
Bill

Re: 4-Digit Display and GrovePi C# library

Posted: Thu Sep 06, 2018 3:54 pm
by nace
Thank you for your kind answer and other information!