Fixed ch32v003 random number example with native Linux and screen. #571
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.
Just started working with this library yesterday, but wanted to throw up a PR for this in case what I have found is a problem and not the norm.
I'm running Ubuntu 24 native, trying to program the CH32V003F4P6, using screen as my tty uART utility. What I found was that the header definitions in the "random number" example didn't work as described, and I had to modify them to be more in line with the uartdemo header definitions. Additionally, simply returning a newline character resulted in suboptimal output from screen for me, which was rectified by switching to a newline followed by a carriage return character.
I am fairly positive that these are all things that people have dealt with, cause this is a fairly popular library and a fairly popular MCU, but I at least wanted to get my opinions out while they were fresh on my mind in case they were valuable. Feel free to tell me I'm dumb and close this as a no fix, I won't be offended.