4-Digit Display and GrovePi C# library

Grove is a modulated, ready-to-use tool set.
Much like Lego, it takes a building block approach to assembling electronics.

Moderators: lily.li, violet, salmanfarisvp, jeremy882, crail.lyu969

Post Reply
nace
Pre-kindergarten
Pre-kindergarten
Posts: 15
Joined: Mon Jul 30, 2018 3:09 pm

4-Digit Display and GrovePi C# library

Post by nace » Fri Aug 31, 2018 5:59 pm

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!

seeed techsupport team
Staff
Staff
Posts: 44
Joined: Mon Mar 19, 2018 11:40 am

Re: 4-Digit Display and GrovePi C# library

Post by seeed techsupport team » Wed Sep 05, 2018 10:01 am

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

nace
Pre-kindergarten
Pre-kindergarten
Posts: 15
Joined: Mon Jul 30, 2018 3:09 pm

Re: 4-Digit Display and GrovePi C# library

Post by nace » Wed Sep 05, 2018 5:45 pm

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. ;)

bill.yu
Junior-7
Junior-7
Posts: 735
Joined: Mon Apr 02, 2018 11:05 am

Re: 4-Digit Display and GrovePi C# library

Post by bill.yu » Thu Sep 06, 2018 11:28 am

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

nace
Pre-kindergarten
Pre-kindergarten
Posts: 15
Joined: Mon Jul 30, 2018 3:09 pm

Re: 4-Digit Display and GrovePi C# library

Post by nace » Thu Sep 06, 2018 3:54 pm

Thank you for your kind answer and other information!

Post Reply