From c899eb8386e3e976260c7769bdcd65e034959f67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Sun, 27 Oct 2019 14:09:36 +0100 Subject: First wave of function --- Kod/bilbana/yc4/display/get_bytes.m | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 Kod/bilbana/yc4/display/get_bytes.m (limited to 'Kod/bilbana/yc4/display/get_bytes.m') diff --git a/Kod/bilbana/yc4/display/get_bytes.m b/Kod/bilbana/yc4/display/get_bytes.m new file mode 100644 index 0000000..76efc9c --- /dev/null +++ b/Kod/bilbana/yc4/display/get_bytes.m @@ -0,0 +1,3 @@ +function bytes = get_bytes(num): + bytes = [mod(num, 256), num ./ 256]; +end -- cgit v1.2.1