4-Digit Display and GrovePi C# library

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]
#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);
}
}
[/code]

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!

Hi there,



I checked the Grovepi C# library, they includes FourDigitDisplay in

<LINK_TEXT text=“https://github.com/DexterInd/GrovePi/bl … Factory.cs”>https://github.com/DexterInd/GrovePi/blob/master/Software/CSharp/GrovePi/DeviceFactory.cs</LINK_TEXT>. 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

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.

</s>IFourDigitDisplay SetIndividualSegment(byte segment, byte value); IFourDigitDisplay SetLedsOfSegment(byte segment, byte leds); IFourDigitDisplay SetScore(byte left, byte right);<e>

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. :wink:

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

Thank you for your kind answer and other information!