uni

Thing1's amazing uni repo
Log | Files | Refs

commit d524e233454e6048afa46064c4207ad8bf0b1743
parent 7ed2183d5a12d280189b50fd3a151a9e84ea8f8a
Author: thing1 <thing1@seacrossedlovers.xyz>
Date:   Tue, 28 Oct 2025 12:55:12 +0000

had lectures

Diffstat:
ACS12020/27.10.25.md | 38++++++++++++++++++++++++++++++++++++++
ACS18120/28.10.25.md | 4++++
AMP10610/27.10.25.md | 5+++++
3 files changed, 47 insertions(+), 0 deletions(-)

diff --git a/CS12020/27.10.25.md b/CS12020/27.10.25.md @@ -0,0 +1,38 @@ +27/10/25 +======== + +Numeric Literals +---------------- + +- numbers can be followed by the letters `f`, `L`, `UL` or some other things, to specify the type +- numbers can be sepcified in dec, oct, hex, bin + - `0324` is oct + - `0xF3` is hex + - `0b010101` is bin +- numbers can be secified in scientific notation like so, `1.532e23` + + +Permanent Storage +----------------- + +- EEPROM is a tiny hard-drive + +- `#include <EEPROM.h>` +- `byte read(int addr)` +- `void write(int addr, byte value)` +- `void update(int addr, byte value)` +- `int length()` + +- update is better the write + +- Some preprocessor trickery could be used to make this work like a memory allocator + +- the EEPROM can be used as an array, called `EEPROM` + - this would be nicer for the preprocessor trickery + +- someone else already did this + - `put(int addr, value)` + - `get(int addr, value)` + - these are most likely defined as overloaded functions, not pre processor macros, meaning structs wont work + - get is doing some wacky c++ stuff to not require an `&` + diff --git a/CS18120/28.10.25.md b/CS18120/28.10.25.md @@ -0,0 +1,4 @@ +28/10/25 +======== + + diff --git a/MP10610/27.10.25.md b/MP10610/27.10.25.md @@ -0,0 +1,5 @@ +27/10/25 +======== + +- tutor's email is ror24@aber.ac.uk (rosemary) +-