Add direction descriptions
This commit is contained in:
parent
9df16a82c4
commit
26ee30d1e9
@ -78,11 +78,13 @@ void handleEncoderMovement()
|
||||
{
|
||||
if (diff > 0)
|
||||
{
|
||||
// right turn
|
||||
selectedIndex = (selectedIndex + 1) % 8;
|
||||
inputPattern = ((inputPattern << 1) | 1) & 0xFF;
|
||||
}
|
||||
else
|
||||
{
|
||||
//left turn
|
||||
selectedIndex = (selectedIndex + 7) % 8;
|
||||
inputPattern = ((inputPattern << 1) | 0) & 0xFF;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user