summaryrefslogtreecommitdiffstats
path: root/Kod/bilbana/yc4/display
diff options
context:
space:
mode:
authorDavid Thorén <davth346@student.liu.se>2019-11-13 12:32:01 +0100
committerDavid Thorén <davth346@student.liu.se>2019-11-13 12:32:01 +0100
commit83c1ee0a3f2d57d887d38fafb74f4967271c4a84 (patch)
treecd4b5697ba1cc0a6bf29951d700d672da395f8b8 /Kod/bilbana/yc4/display
parentf735459829046e9e2a9911d8cf31546a5bebefee (diff)
downloadtfyy51-83c1ee0a3f2d57d887d38fafb74f4967271c4a84.tar.gz
Add function to convert bytes -> num
Diffstat (limited to 'Kod/bilbana/yc4/display')
-rw-r--r--Kod/bilbana/yc4/display/get_num.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/Kod/bilbana/yc4/display/get_num.m b/Kod/bilbana/yc4/display/get_num.m
new file mode 100644
index 0000000..e90e0c7
--- /dev/null
+++ b/Kod/bilbana/yc4/display/get_num.m
@@ -0,0 +1,3 @@
+function num = get_num(bytes)
+num = bytes(1) + bytes(2) * 256;
+end \ No newline at end of file