commit b929e8b424b9b63ba014961f45ac793c65b38be9
parent 59b08a04a92f65e0c14ed6def675d7532028931f
Author: thing1 <thing1@seacrossedlovers.xyz>
Date: Fri, 31 Oct 2025 17:01:11 +0000
lectures
Diffstat:
6 files changed, 96 insertions(+), 0 deletions(-)
diff --git a/CS12020/31.10.25.md b/CS12020/31.10.25.md
@@ -0,0 +1,51 @@
+31/10/25
+========
+
+Clocks
+------
+
+- `void delay(int ms)` will stop the program for ms number of ms
+- `void delayMicroseconds(int us)` will stop the program for us number of us
+- `long millis()` number of ms since the system powered on
+- `long micros()` number of us since the system powered on
+
+Digital I/O
+-----------
+
+- `INPUT` is an input
+- `OUTPUT` is an output
+- `INPUT_PULLUP` is an inverted input
+
+- `void pinMode(int pin, int mode)` sets a pin to a mode
+- `void digitalWrite(int pin, int state)` sets an output pin to a given state
+ - the states are `HIGH` (5v) and `LOW` (0v)
+
+- pins shouldn't draw or sink more than 40mA
+- 300mA is the max current draw for the whole board
+
+- the builtin LED has a constant pin number, `LED_BUILTIN`
+
+- `bool digitalRead(int pin)` reads a pins value
+ - `HIGH` is anything greater than 3v
+ - `LOW` is anything lower than 2v
+ - anything between 3v and 2v will result in undefined behaviour
+
+Analog I/O
+----------
+
+- no real analog output, uses PWM and quickly switches to emulate
+ - the frequency is about 1KHZ
+
+- `analogWrite(int pin, byte value)` will set the pin to the value, only works on analog pins
+ - writing to a non analog pin will cause an on/off state
+ - value is an 8 bit value
+
+- `int analogRead(int pin)` will give you a value from the ADC
+ - input is handled by a 10 bit ADC, so the output can be between 0 and 1024 in software
+ - the pins have the names `A0`, `A1`, `A2`, ...
+
+Interrupts
+----------
+
+- RTFM
+
diff --git a/CS18120/31.10.25.md b/CS18120/31.10.25.md
@@ -0,0 +1,4 @@
+31/10/25
+========
+
+
diff --git a/CS18120/pres/notes.md b/CS18120/pres/notes.md
@@ -0,0 +1,22 @@
+notes for presentation
+======================
+
+- latex + beamer!
+- meet next wednesday same time, same place
+ - plan rehersals for closer to the time
+
+- intro should be short and sweet ~ 3mins
+
+- codenames - lucas ~ 6 mins
+- send a message - lucas
+ - bring up the stats in this section
+
+- quiz - jaidia ~ 6 mins
+- zoom - jaidia
+
+- bitoblisk - dean
+- device - dean
+
+- conclusion should be lots of stats, overview of the day ~ 7 mins
+ - show how the day was succesful, making connections with group
+
diff --git a/MP10610/30.10.25.md b/MP10610/30.10.25.md
@@ -0,0 +1,12 @@
+30/10/25
+========
+
+- see FIG1 for integrating from first principles
+ - the sum is the sum of n x^2 terms
+ - could be solved with the limit rule
+- see FIG2 for the definition of an integral
+ - delta x is the width of the rectangles used
+ - delta x = (b - a) / n
+- see FIG3 is the fundamental rule of calculus
+ - assuming f(x) is continuous between a, b then F(x) is also continuous between a, b
+ - basically this says that the integral can move to the derivative and vise versa
diff --git a/PH16210/30.10.25.md b/PH16210/30.10.25.md
@@ -0,0 +1,5 @@
+30/10/25
+========
+
+- FIG1 shows the sum formula for the talor series
+-
diff --git a/build b/build
@@ -1,5 +1,7 @@
#!/bin/sh
+./clean
+
names=$(find ./ | grep "\.md")
for name in $names; do