-
-
Notifications
You must be signed in to change notification settings - Fork 512
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
Add support for several boards #1850
Open
rcky844
wants to merge
13
commits into
revoxhere:master
Choose a base branch
from
rcky844:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rcky844
changed the title
Add support for Nordic Semiconductor nRF5 based boards
Add support for several boards
Jan 10, 2025
Hey, I assume you have checked whether your changes to the AVR code don't break compatibility with existing boards (eg. typical Arduinos)? |
Please don't merge this yet, I will inform you when it is ready. |
This patch is in-sync with the patch at ricaun/ArduinoUniqueID#30, which adds support for getting unique ID for Nordic Semiconductor nRF5 based boards, including the BBC Micro:bit. Signed-off-by: Ricky Cheung <[email protected]>
Some boards have trouble pulling themselves out of reset mode after receiving DTR signal, particularly those attached to external programmer ICs (e.g. CHA340). This can be addressed by pulling the RTS signal LOW. RTS refers to "Require ToSend" and indicates to the device that its host is ready to receive information. It is indicated by a LOW signal, which pyserial does not appear to send by default. Signed-off-by: Ricky Cheung <[email protected]>
Based on official Arduino_code miner, with modifications to support the chipset's primitive Arduino BSP. Signed-off-by: Ricky Cheung <[email protected]>
Make green LED for idle, and red LED for hashing Signed-off-by: Ricky Cheung <[email protected]>
Signed-off-by: Ricky Cheung <[email protected]>
Display a count showing mined shares on the matrix display, and have it wrap around 0 - 9 to prevent blocking when scrolling the display. Signed-off-by: Ricky Cheung <[email protected]>
Boards like the BBC Microbit could only do ~2000 H/s at difficulty of 128, but it is assigned a difficulty of 512, which results in immediate shares rejection. As indicated by the naming, "ARM" as starting difficulty is available, so use that instead. Signed-off-by: Ricky Cheung <[email protected]>
Signed-off-by: Ricky Cheung <[email protected]>
Also refactor and split the functions into three Signed-off-by: Ricky Cheung <[email protected]>
This change simplifies the code without causing much performance degradation. Signed-off-by: Ricky Cheung <[email protected]>
@revoxhere This batch of commits are ready, please review though. |
ultoa() is not always available on some boards as it is non-standard. Provide our own copy of the function to convert nonce into string. Signed-off-by: Ricky Cheung <[email protected]>
Signed-off-by: Ricky Cheung <[email protected]>
Signed-off-by: Ricky Cheung <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This patch introduces support for several boards. They are listed below:
A separate patch in the AVR miner script is needed to enable support for WinnerMicro W80x.