Skip to content

private virtual BlackCoreGPIO? #8

Description

@gitaaronc

Hi,

Great wrapper for GPIO pin control using sysfs! You've saved me a lot of time coding.
I would like to Inherit from BlackGPIO, unfortunately my compiler won't stand for it.

Hierarchy would like similar to this:
class BlackCore{}
class BlackCoreGPIO : private virtual BlackCore{}
class BlackGPIO : private virtual BlackCoreGPIO{}
class MyGPIO : private BlackGPIO{}

I've intentionally left out the initialization/parameter details of the base classes in the above examples.

Perhaps I am not Inheriting properly. Are you able to subclass BlackGPIO?
I can if I modify:
class BlackGPIO : virtual private BlackCoreGPIO {
to read
class BlackGPIO : private BlackCoreGPIO {
in the V3 library file BlackGPIO.h

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions