Professional Documents
Culture Documents
3 *
4 2018-4-4
5 from https://github.com/Jan--Henrik/Attiny-PWM-generator/blob/master/Arduino
%20code
7 todo
9 see
10 https://hackingmajenkoblog.wordpress.com/2016/02/01/making-accurate-adc-readings-
on-the-arduino/
11
12 ATtiny connections.
13
14 pin
15 1 nc
17 3 PWM out
18 4 GND
19 5 nc
20 6 nc
21 7 nc
22 8 VCC 5 vdc
23
24
25 */
26
28 const int pinReadDelay = 10; // ms delay to stabilize reading on Arduino ADC when
switching pin-to-pin?
29 const int loopDelay = 10;
30
32
34
35 void setup() {
36 pinMode(analogInput, INPUT);
37 pinMode(PB4, OUTPUT);
38 #ifdef _AVR_IOTN85_H_
43 #endif
44 }
46
47 void loop() {
52 // delay(loopDelay);
53 }