Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Board revision [b03114/BCM2711] #16

Open
dahousecat opened this issue Mar 23, 2021 · 3 comments
Open

Support for Board revision [b03114/BCM2711] #16

dahousecat opened this issue Mar 23, 2021 · 3 comments

Comments

@dahousecat
Copy link

No description provided.

@calcinai
Copy link
Owner

I'll sort this out tonight.

@dahousecat
Copy link
Author

Appears to be a simple fix. I just created Board/v4/B.php and pretty much copied the V3 B file:

<?php

/**
 * @package    calcinai/phpi
 * @author     Michael Calcinai <[email protected]>
 */

namespace Calcinai\PHPi\Board\V4;

use Calcinai\PHPi\Board;
use Calcinai\PHPi\Board\Feature;

class B extends Board
{

    use Feature\SoC\BCM2837;
    use Feature\HDMI;
    use Feature\Ethernet;
    use Feature\Header\J8;

    public static function getBoardName()
    {
        return '4 Model B';
    }
}

And updated the factory method:


case 'b03114':
                return new Board\V4\B($loop);

@calcinai
Copy link
Owner

@dahousecat exactly!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants