Coding Challenge #117: Seven-Segment Display
In this coding challenge, I create a Seven-Segment Display with the p5.js library. Code: https://thecodingtrain.com/challenges/117-seven-segment-display πΉοΈ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/O25p3JYxT π₯ Previous video: https://youtu.be/--6eyLO78CY?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH π₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH References: π Seven-segment display on Wikipedia: https://en.wikipedia.org/wiki/Seven-segment_display π¦ #thisdot7segment: https://twitter.com/hashtag/thisdot7segment Videos: π₯ What's The Longest Word You Can Write With Seven-Segment Displays?: https://www.youtube.com/watch?v=zp4BMR88260 π΄ Coding Train Live 156: https://youtu.be/b8RwO1k9DXc?t=7442s Related Coding Challenges: π #119 Binary to Decimal Conversion: https://youtu.be/meGcdIoTYgw π #120 Bit Shifting: https://youtu.be/oCBlwsY8sR4 Timestamps: 0:00 Welcome! 1:53 Let's talk about the seven segments 2:49 Let's start coding! 8:02 Explaining the idea of bit shifting and bitwise AND operation 10:36 Implementing the hexadecimal encodings for the display 12:44 Making a function to get the correct color value for a segment 15:21 Displaying all the numbers one by one 16:45 Seven-Segment Display! 17:44 Thank you for watching! Editing by Mathieu Blanchette Animations by Jason Heglund Music from Epidemic Sound π Website: http://thecodingtrain.com/ πΎ Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide π© Suggest Topics: https://github.com/CodingTrain/Suggestion-Box π‘ GitHub: https://github.com/CodingTrain π¬ Discord: https://thecodingtrain.com/discord π Membership: http://youtube.com/thecodingtrain/join π Store: https://standard.tv/codingtrain ποΈ Twitter: https://twitter.com/thecodingtrain πΈ Instagram: https://www.instagram.com/the.coding.train/ π₯ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH π₯ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA π p5.js: https://p5js.org π p5.js Web Editor: https://editor.p5js.org/ π Processing: https://processing.org π Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new #bitwiseoperations #bitwiseand #javascript #p5js
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.