diff --git a/docs/assignments/week08.md b/docs/assignments/week08.md index ebeaa7f0e241a296ff348f21976944db8c737d54..aea645a48f507c52baad73aa6f5266c21cf546b4 100644 --- a/docs/assignments/week08.md +++ b/docs/assignments/week08.md @@ -84,6 +84,8 @@ Analog way: you can use only the PWM pins (~) <div style="padding:56.25% 0 0 0;position:relative;"><iframe src="https://player.vimeo.com/video/884249973?badge=0&autopause=0&quality_selector=1&player_id=0&app_id=58479" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" style="position:absolute;top:0;left:0;width:100%;height:100%;" title="IMG_2258"></iframe></div><script src="https://player.vimeo.com/api/player.js"></script> +**CODE** + ``` int signal_pin = 3; //define the pin where the Arduino pin (signal) is connected @@ -119,6 +121,8 @@ I followed this tutorial to program my ATtiny: [How to Program an Attiny85 From <div style="padding:56.25% 0 0 0;position:relative;"><iframe src="https://player.vimeo.com/video/884248390?badge=0&autopause=0&quality_selector=1&player_id=0&app_id=58479" frameborder="0" allow="autoplay; fullscreen; picture-in-picture" style="position:absolute;top:0;left:0;width:100%;height:100%;" title="IMG_2291"></iframe></div><script src="https://player.vimeo.com/api/player.js"></script> +**CODE** + ``` // the setup function runs once when you press reset or power the board void setup() {