Skip to content

Commit 999db2d

Browse files
Update Lecture1.md
1 parent 0dda5d7 commit 999db2d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

tutorials/Lecture1.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
## Lecture 1 Concepts
44
- Unit Testing
5-
- Parent/Child Class
65
- Generalisation
6+
- Parent/Child Class
77
- Pin & PWM Parent Classes
88
- Instantiation
99
- Inheritance
@@ -14,6 +14,10 @@ Unit testing is the process of writing and running small, isolated tests that ch
1414

1515
Unit testing is especially valuable in embedded systems, such as the Pi Pico, where debugging can be challenging due to limited resources and hardware complexity. By ensuring each component works independently, you can build more complex mechatronic solutions.
1616

17+
## Generalisation
18+
19+
On the Pi Pico, the Pin and PWM libraries are designed to be generalised to provide flexible and reusable interfaces for interacting with the microcontroller’s hardware. The simple `on()`, `off()` or `high()`, `low()` methods are not specific to any hardware but are generalised to the nature of a digital GPIO Pin. As a generalised class is inherited and the classes are extended, they become more specific (less generalised) and functional to specific hardware for which they are designed.
20+
1721
## Parent/Child Classes
1822

1923
A parent/child (or super/sub) class relationship is a key concept in object-oriented programming (OOP), also known as inheritance. The parent class defines common attributes and methods.
@@ -75,10 +79,6 @@ classDiagram
7579
7680
```
7781

78-
## Generalisation
79-
80-
On the Pi Pico, the Pin and PWM libraries are designed to be generalised to provide flexible and reusable interfaces for interacting with the microcontroller’s hardware. The simple `on()`, `off()` or `high()`, `low()` methods are not specific to any hardware but are generalised to the nature of a digital GPIO Pin. As a generalised class is inherited and the classes are extended, they become more specific (less generalised) and functional to specific hardware for which they are designed.
81-
8282
## Pin Library
8383

8484
[Machine.Pin Library Documentation](https://docs.micropython.org/en/latest/library/machine.Pin.html)

0 commit comments

Comments
 (0)