Two displays using SevSeg.h?

Is it possible to use the SevSeg.h library for more than one display?

SevSeg sevseg1, sevseg2;

How many display devices are there in your Display Unit-1 and Display Unit-2. Which Arduino (UNO/NANO/MEGA) are you using?

Welcome to the forum

I have no experience of the library, but almost certainly it won't work like that, but this might

SevSeg sevseg1;
SevSeg sevseg2;

I want to use it for MH-Tiny.

The compiler should probably not care if you write it on one line or two. My concern is whether the library supports it.

By principle, any number of objects can be created from the given SevSeg class name. So, the following declartion is valid and compiles alright.

SevSeg sevseg1, sevseg2;

It may compile OK, but does it create 2 objects ?

Let me test it and put the answer.

I'd love for you to test it if you have time. So far I have used SevSeg.h in one of my projects for only one display. Otherwise, I found the SevenSeg.h library and it definitely works there.

I asked you to tell me how many display devices you have in each display and which Arduino you are using. This is to see if you can drive all those devices by a single object.

I want to use two displays, 4 and 3 digits and MH-Tiny controller.

what is MH-Tiny Controller? Please, give a link to its data sheets.

https://handsontec.com/dataspecs/module/Arduino/Arduino%20Tiny%2088.pdf

Ok! This is Arduino IDE compatiable and uses the 8-bit AVR MCU. You have only 7 display devices distributed over tow distinct display units. You can drive them very well using only one object of type SevSeg. Can you post some codes that you have written. I have experince woking with SevSeg.h Library.

The Tutorial of the this link may be helpful for you.

So far, I only have the code for my older project, which measures the temperatures at five locations of the hot water tank and calculates from them what percentage the tank is full of heat. This has worked well for me for over a year. I installed PV panels and in the summer I heat the tank from these panels. I need it to inform me of the current performance and switch the load for me so that the heat production is as efficient as possible. I'll write the code, that's not a problem, I was just wondering if I could conveniently display two independent numbers using SevSeg.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.