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

If you are interested #3

Open
fdufnews opened this issue Sep 3, 2023 · 0 comments
Open

If you are interested #3

fdufnews opened this issue Sep 3, 2023 · 0 comments

Comments

@fdufnews
Copy link

fdufnews commented Sep 3, 2023

Hi,
I like very much the idea of accessing the pinout of the development boards I use at the command line so I was interested with picopins.
I tried to add some boards I am currently using and found it a little cumbersome to change data and some parts of code to create a new board pinout.
So I splitted the code in two.

  • one is the part that displays the pinout with little modification to what you have made. It is a class named showpins that the boards will inherit from. The major change I made is adding a loop that walk through a list of lists describing the LEDs and associated GPIOs that are on the board as it was the part that bothered me when creating new boards
  • the second is the definition of the board, it only contains data defining the board and an instance of the showpins class

Now, adding a new board is just modifying a string and some lists, no more code to change.
If you want, you can have a look at the code here: https://github.com/fdufnews/pinouts
Regards

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

1 participant