From 6a43ba339545f0ce17bbaac85eccd35b4319de89 Mon Sep 17 00:00:00 2001 From: David Madison Date: Thu, 25 Jan 2024 11:49:55 -0500 Subject: [PATCH] Add attach() call to README snippet This is now required for the library to work (c8d7925). --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e7af4b1..3b47aac 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,9 @@ For more information, [see the article](https://www.partsnotincluded.com/servo-i ServoInputPin<2> servo; -void setup() {} +void setup() { + servo.attach(); +} void loop() { float angle = servo.getAngle(); // get angle of servo (0 - 180)