This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <stdio.h> | |
#include <iostream> | |
#include <string> | |
#include <wiringPi.h> | |
std::string morseString; | |
bool exec = false; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void move(String dir) { | |
Node currentNode = this.head; | |
String currentDir = dir; | |
while(currentNode != null) { | |
currentNode.dir = currentDir; //set the dir of the previous | |
currentDir = currentNode.dir; //set the currentDir so the next one in line can use it | |
currentNode.block.moveBlockDir(currentNode.dir); //move the block of the body part on the frame | |
currentNode = currentNode.next; //set the next so we can get the next node in the linked list | |
} | |
} |
OlderNewer