mirror of
https://github.com/caperren/school_archives.git
synced 2025-11-09 21:51:15 +00:00
These are all design documents that I thought I had lost. It's may make me cringe, but it's still cool to use it to see how far I've come.
16 lines
172 B
C++
16 lines
172 B
C++
|
|
int mot = 0;
|
|
int pot = A1;
|
|
|
|
|
|
void setup() {
|
|
pinMode(mot, OUTPUT);
|
|
pinMode(pot, INPUT);
|
|
}
|
|
|
|
|
|
void loop() {
|
|
analogWrite(mot, analogRead(pot)/4);
|
|
}
|
|
|