Skip to content

Instantly share code, notes, and snippets.

View fabulousduck's full-sized avatar
💭
building compilers and assemblers

Ryan Vlaming fabulousduck

💭
building compilers and assemblers
View GitHub Profile
#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <string>
#include <wiringPi.h>
std::string morseString;
bool exec = false;
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
}
}