Skip to content

Adding Tinker Board detection #84

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

Merged
merged 11 commits into from
Jun 26, 2020
Merged

Adding Tinker Board detection #84

merged 11 commits into from
Jun 26, 2020

Conversation

BlitzCityDIY
Copy link
Contributor

Adding detection for the ASUS Tinker Board SBC.
SoC: Rockchip 3288 (RK3288)

Adding detection for the ASUS Tinker Board SBC.
SoC: Rockchip 3288 (RK3288)
@makermelissa
Copy link
Collaborator

Thanks, 2 things you may want to look at:

  1. You will want to make sure it's being detect in the any_embedded_linux function.
  2. There's 2 tinker board variations, as I'm sure you're aware (Tinker Board and Tinker Board S), so maybe structure it so it's easy to add the second one such as creating an any_tinker_board function in the board.py file.

@BlitzCityDIY
Copy link
Contributor Author

okay, thanks! will update.

adding any_asus_tinker_board for embedded linux system identification
@makermelissa
Copy link
Collaborator

It looks like it just needs to be Black formatted. You should be able to install it on your computer with: pip3 install black
Then just run black --target-version=py35 . and it will automatically format your files correctly.

updating chip.py and boards.py to be Black formatted
@BlitzCityDIY
Copy link
Contributor Author

thanks for the info on Black formatting! i'm seeing that pylint error- going to work on it.

fixing pylint errors
Reformatted with Black- sorry for all the back and forth, it's my first time doing something like this.
@@ -119,6 +119,8 @@ def id(self):
board_id = self._clockwork_pi_id()
elif chip_id == chips.RK3308:
board_id = self._rock_pi_id()
elif chip_id == chips.RK3288:
board_id = boards.ASUS_TINKER_BOARD
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean to use _asus_tinker_board_id here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i was having trouble with that earlier trying to get it to pass lint but i think it was more _asus_tinker_board_id function returning something else. it's passing now though so will commit again with that update shortly.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, sounds good. I just wanted to make sure.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, just curious if you were planning on making this change in this pull request?

Changing ASUS_TINKER_BOARD to _ASUS_TINKER_BOARD. Should be last commit, thank you for all your help and guidance!
Changed some things up to have everything match formatting for multiple boards so that more Tinker Board types can be added easily (I'm hoping to add the S after the original Tinker Board is all set)
@BlitzCityDIY
Copy link
Contributor Author

i had to merge to update branches after i had made changes locally- it looks okay but if anything is funky that is probably why and i'll redo. again, i really appreciate your patience and guidance on this!

@makermelissa
Copy link
Collaborator

Hi @BlitzCityDIY, were you planning on updating the code to use _asus_tinker_board_id()? I know you were working on that guitar tuner project, so I understand if this got pushed aside for that. I'm just wondering how we should proceed here. Thanks.

@BlitzCityDIY
Copy link
Contributor Author

Hi @makermelissa ! I have to admit I got a little lost here. I'll work on this this afternoon

@makermelissa
Copy link
Collaborator

Thanks. Let me know if you have any questions.

@BlitzCityDIY
Copy link
Contributor Author

Hi @makermelissa ! when I submitted this it didn't seem to go through the usual checks/processes. Should I try committing again or is it okay?

@makermelissa
Copy link
Collaborator

It's ok. The reason I haven't merged it yet is because I thought you were still working on it since you haven't made use of the _asus_tinker_board_id() function.

Changing to use function _asus_tinker_board_id() in board.py
Copy link
Collaborator

@makermelissa makermelissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@makermelissa makermelissa merged commit 1b43d2a into adafruit:master Jun 26, 2020
@BlitzCityDIY
Copy link
Contributor Author

thank you @makermelissa !! I learned a lot doing this.

@makermelissa
Copy link
Collaborator

You're welcome and thank you for adding this.

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

Successfully merging this pull request may close these issues.

2 participants