-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Guides: Introduce C Tutorial #21434
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
Guides: Introduce C Tutorial #21434
Conversation
I have decided to make a different PR the head of this Tutorial wave as it made more sense chronologically. I will convert this into a draft till the other PR has been merged/is close to it. |
e77a073
to
e484faf
Compare
One day I will PR something without whitespace issues, today isn't that day 😛 |
9e54709
to
e82e71b
Compare
I rebased the branch now that both parents have been merged and this PR should be reviewable 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use this one weird trick, to save ~46 MB of data! You might also use AV1 instead of x265, as @bergzand suggested. It's royalty free.
cd doc/guides/c_tutorials/img/gpio/
// Reduce filesize by 99.34%
ffmpeg -i 05_working_video.mp4 -filter:v scale=1080:-2 output.mp4
ffmpeg -i output.mp4 -vf "crop=1080:1300:0:0" -vcodec libx265 -crf 28 output2.mp4
mv output2.mp4 05_working_video.mp4
rm output.mp4
// Reduce by 81.35%
ffmpeg -i 08_buttons.mp4 -vcodec libx265 -crf 28 output.mp4
mv output.mp4 08_buttons.mp4
// For asthetics
ffmpeg -i 04_code.png -vf "crop=772:450:0:0" 04_code2.png
mv 04_code2.png 04_code.png
Not done with the review yet. I don't know if I am a fan of screenshots from VSCode? What do they add of value? Showing the code? We can do just that without an image.
Ty for the commands. When I initially wrote that guide I was thinking of some people that barely had any experience with vscode and needed some visual guidance to understand what they are even doing in vscode (As happened in the riot uni project) but the screenshots also add a really annoying maintenance burden when you change something so I'm not really against removing them. |
As a small info as to why the PR is currently stale, I'm trying to get my bachelor's project to a point where I can confidently register it without fearing the deadline, I will come back to this after that (Hopefully soon-ish). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please squash 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't really go through the written documentation yet, just some observations from the code.
Looks like I was sloppy during the review. Sorry. The files were marked as reviewed - so I thought I finished, but that clearly wasn't the case. |
I ran the
|
Im also to blame, I should have retroactively applied the requested changes from #21545 here now that I know more about the formatting guidelines 😅 |
I used this as a chance to improve the explanations of the examples with a lot more comments, better to do it now than later 👍 |
I dont really understand what that means 😅 |
This PR should now be ready for re-review 👍 Ty for all the feedback |
The merge failed because the I did that for your examples and posted the results. Three files were generated and I printed the contents of the files, so you can copy&paste them. In the review-mode of Github I can't propose a new file (I think?), therefore this way. |
Blame is a strong word in this case. You always learn something new, but you can't (or shouldn't) reiterate old code every time you learn something new. Then you'd never get done 😅 |
00a5913
to
fef0c7e
Compare
This should now also be fixed 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found some time to go through the actual written documentation.
Perhaps I missed some of the Roter Faden, but I'm still half asleep 😴
So if any of the review comments don't make sense, blame it on that.
This should cover all your review feedback 🙏 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please squash 👍
The two holy words everyone wants to hear, ty 🥳 |
examples/guides: Introduce tutorial references doc/guides/tutorial: Introduce code_folder for all tutorials
fc6947a
to
8cdb2d9
Compare
"Changes Requested", yeah you can have that too 😈 |
He giveth and he taketh away ⛪ |
Contribution description
This is the first wave
of manythat introduce brand new beginner tutorials to RIOT. The aim of this PR is to introduce the C Tutorials covering some of the most basic things from Threads to GPIO.Testing procedure
Every tutorial within this PR is covered by an example that is 1:1 reproducible by following the tutorial. This means that all guides are cross-checked with the linked examples and all examples are built as usual which should avoid long term de-synchronization.
Issues/PRs references
Disclaimer: This depends on #21404!
This also depends on #21436