From c89c0fb67153eb9db4c32a8c066735544c346db2 Mon Sep 17 00:00:00 2001 From: Jiawen Gong <jiawengong1112@gmail.com> Date: Tue, 14 Nov 2023 05:37:27 +0000 Subject: [PATCH] Update file week08.md --- docs/assignments/week08.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/assignments/week08.md b/docs/assignments/week08.md index ebeaa7f..aea645a 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() { -- GitLab