From: Andrea Manni Date: Mon, 3 Apr 2017 12:32:51 +0000 (+0200) Subject: Merge branch 'objects' of kim:/home/git/rover into objects X-Git-Url: http://git.piffa.net/web?a=commitdiff_plain;h=refs%2Fheads%2Fobjects;p=rover Merge branch 'objects' of kim:/home/git/rover into objects --- 7450d19e2b4a144930570d6a8e9c4fd564495615 diff --cc libraries/rover/rover.cpp index b208728,b208728..051a912 --- a/libraries/rover/rover.cpp +++ b/libraries/rover/rover.cpp @@@ -48,6 -48,6 +48,17 @@@ void car::avanti () analogWrite(_enB,velB); } ++void car::stop () { ++// Motor A ++ digitalWrite(_in1,LOW); ++ digitalWrite(_in2,HIGH); ++ analogWrite(_enA,0); ++// Motor B ++ digitalWrite(_in3,LOW); ++ digitalWrite(_in4,HIGH); ++ analogWrite(_enB,0); ++} ++ // Funzioni